经验"/>
SIPp使用经验
- xml文件,建议`<?xml version="1.0" encoding="UTF-8" ?>`,不建议`ISO-8859-1`
- 命令行传key参数
sipp -key contact_port 9999 ...<send retrans="500"><![CDATA[REGISTER sip:[field1]:[remote_port] SIP/2.0Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch];rportMax-Forwards: 70From: <sip:[field0]@[field1]>;tag=[pid]SIPpTag00-1To: <sip:[field0]@[field1]>Call-ID: [call_id]CSeq: [cseq] REGISTERContact: <sip:sipp@[local_ip]:[contact_port]>Expires: 300Content-Length: 0User-Agent: SIPp]]></send>
- uas send bye
uas send bye的关键是互换from标签和to标签
- uac.xml vs uac_proxy.xml
差别是rrs和route的处理
- do_while循环
# 开始<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"/>...
- SIPp传输模式,这个设计和实现都非常棒
-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 definedin 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 isnot provided with SIPp.
- tls
sipp -t l1 -tls_key key.pem -tls_cert cert.pem -rtp_echo ...
更多推荐
SIPp使用经验
发布评论