SIPp使用经验

编程入门 行业动态 更新时间:2024-10-20 00:37:48

SIPp使用<a href=https://www.elefans.com/category/jswz/34/1770055.html style=经验"/>

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使用经验

本文发布于:2023-12-04 11:51:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1660821.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:经验   SIPp

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!