码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • SIPp使用经验


    • xml文件,建议``,不建议`ISO-8859-1`
    • 命令行传key参数
    1. sipp -key contact_port 9999 ...
    2. <send retrans="500">
    3. <![CDATA[
    4. REGISTER sip:[field1]:[remote_port] SIP/2.0
    5. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch];rport
    6. Max-Forwards: 70
    7. From: <sip:[field0]@[field1]>;tag=[pid]SIPpTag00-1
    8. To: <sip:[field0]@[field1]>
    9. Call-ID: [call_id]
    10. CSeq: [cseq] REGISTER
    11. Contact: <sip:sipp@[local_ip]:[contact_port]>
    12. Expires: 300
    13. Content-Length: 0
    14. User-Agent: SIPp
    15. ]]>
    16. </send>
    • uas send bye

    uas send bye的关键是互换from标签和to标签

    • uac.xml vs uac_proxy.xml

    差别是rrs和route的处理

    • do_while循环
    1. # 开始
    2. <nop>
    3. <action>
    4. <assign assign_to="i" value="0"/>
    5. <assign assign_to="nloops" value="10"/>
    6. </action>
    7. </nop>
    8. <label id="reg_loop"/>
    9. ...
    10. <nop hide="true">
    11. <action>
    12. <add assign_to="i" value="1"/>
    13. <log message="i=[$i]"/>
    14. <log message="nloops=[$nloops]"/>
    15. <!-- if i>=nloops then tmp = true -->
    16. <test assign_to="tmp" variable="i" compare="greater_than_equal" variable2="nloops"/>
    17. </action>
    18. </nop>
    19. ...
    20. <nop hide="true" next="reg_done" test="tmp"/>
    21. <nop hide="true" next="reg_loop"/>
    22. <label id="reg_done"/>
    23. ...
    • SIPp传输模式,这个设计和实现都非常棒
    1. -t Set the transport mode:
    2. - u1: UDP with one socket (default),
    3. - un: UDP with one socket per call,
    4. - ui: UDP with one socket per IP address. The IP addresses must be defined
    5. in the injection file.
    6. - t1: TCP with one socket,
    7. - tn: TCP with one socket per call,
    8. - c1: u1 + compression (only if compression plugin loaded),
    9. - cn: un + compression (only if compression plugin loaded). This plugin is
    10. not provided with SIPp.
    • tls

    sipp  -t l1 -tls_key key.pem -tls_cert cert.pem  -rtp_echo ...
     

  • 相关阅读:
    vue3 封装自定义指令,监听元素宽高的变化
    大规模 IoT 边缘容器集群管理的几种架构-3-Portainer
    安全巡检管理系统—隐患排查治理
    C 回调函数,接口 函数指针作为函数的参数 函数指针作为结构体成员
    通过match看rust
    java基于Android校园闲置资料共享系统uniapp小程序
    G1D21-作业-AttacKG&SVM&kg_book&偷懒哈哈哈
    Element UI搭建首页导航和左侧菜单以及Mock.js和(组件通信)总线的运用
    如何使用Linux DataEase数据可视化分析工具结合内网穿透实现远程办公
    总结git常用命令
  • 原文地址:https://blog.csdn.net/qq_56167818/article/details/133910796
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号