- sipp -key contact_port 9999 ...
-
-
- <send retrans="500">
-
- <![CDATA[
-
- REGISTER sip:[field1]:[remote_port] SIP/2.0
- Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch];rport
- Max-Forwards: 70
- From: <sip:[field0]@[field1]>;tag=[pid]SIPpTag00-1
- To: <sip:[field0]@[field1]>
- Call-ID: [call_id]
- CSeq: [cseq] REGISTER
- Contact: <sip:sipp@[local_ip]:[contact_port]>
- Expires: 300
- Content-Length: 0
- User-Agent: SIPp
-
- ]]>
-
- </send>
uas send bye的关键是互换from标签和to标签
差别是rrs和route的处理
- # 开始
-
- <nop>
- <action>
- <assign assign_to="i" value="0"/>
- <assign assign_to="nloops" value="10"/>
- </action>
- </nop>
-
- <label id="reg_loop"/>
-
- ...
-
- <nop hide="true">
- <action>
- <add assign_to="i" value="1"/>
- <log message="i=[$i]"/>
- <log message="nloops=[$nloops]"/>
- <!-- if i>=nloops then tmp = true -->
- <test assign_to="tmp" variable="i" compare="greater_than_equal" variable2="nloops"/>
- </action>
- </nop>
-
-
- ...
- <nop hide="true" next="reg_done" test="tmp"/>
- <nop hide="true" next="reg_loop"/>
-
- <label id="reg_done"/>
-
- ...
- -t Set the transport mode:
- - u1: UDP with one socket (default),
- - un: UDP with one socket per call,
- - ui: UDP with one socket per IP address. The IP addresses must be defined
- in the injection file.
- - t1: TCP with one socket,
- - tn: TCP with one socket per call,
- - c1: u1 + compression (only if compression plugin loaded),
- - cn: un + compression (only if compression plugin loaded). This plugin is
- not provided with SIPp.
sipp -t l1 -tls_key key.pem -tls_cert cert.pem -rtp_echo ...