当前位置: 首页 > news >正文

SIPp uac.xml 之我见

https://sipp.sourceforge.net/doc/uac.xml.html

这个 uac.xml 有没有问题呢?

有!

问题之一是:

<recv response="200" rtd="true" rrs="true">  

要加 rrs, 仔细看注释就能看到

问题之二是:

ACK sip:[service]@[remote_ip]:[remote_port] SIP/2.0

这是不对的,应该是 ACK [next_url] SIP/2.0

问题之三还是 ACK 发的不对,要加 [routes] 头

还有,encoding 配置为 UTF-8 更好,这样可以增加中文注释

至于为什么,多看看自然就知道了

附完整的 uac.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd"><!-- This program is free software; you can redistribute it and/or      -->
<!-- modify it under the terms of the GNU General Public License as     -->
<!-- published by the Free Software Foundation; either version 2 of the -->
<!-- License, or (at your option) any later version.                    -->
<!--                                                                    -->
<!-- This program is distributed in the hope that it will be useful,    -->
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of     -->
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      -->
<!-- GNU General Public License for more details.                       -->
<!--                                                                    -->
<!-- You should have received a copy of the GNU General Public License  -->
<!-- along with this program; if not, write to the                      -->
<!-- Free Software Foundation, Inc.,                                    -->
<!-- 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA             -->
<!--                                                                    -->
<!--                 Sipp default 'uac' scenario.                       -->
<!--                                                                    --><scenario name="Basic Sipstone UAC"><!-- In client mode (sipp placing calls), the Call-ID MUST be         --><!-- generated by sipp. To do so, use [call_id] keyword.                --><send retrans="500"><![CDATA[INVITE sip:[service]@[remote_ip]:[remote_port] SIP/2.0Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]To: sut <sip:[service]@[remote_ip]:[remote_port]>Call-ID: [call_id]CSeq: 1 INVITEContact: sip:sipp@[local_ip]:[local_port]Max-Forwards: 70Subject: Performance TestContent-Type: application/sdpContent-Length: [len]v=0o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]s=-c=IN IP[media_ip_type] [media_ip]t=0 0m=audio [media_port] RTP/AVP 0a=rtpmap:0 PCMU/8000]]></send><recv response="100"optional="true"></recv><recv response="180" optional="true"></recv><!-- By adding rrs="true" (Record Route Sets), the route sets         --><!-- are saved and used for following messages sent. Useful to test   --><!-- against stateful SIP proxies/B2BUAs.                             --><recv response="200" rtd="true" rrs="true"></recv><!-- Packet lost can be simulated in any send/recv message by         --><!-- by adding the 'lost = "10"'. Value can be [1-100] percent.       --><send><![CDATA[ACK sip:[next_url] SIP/2.0Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]Call-ID: [call_id]CSeq: 1 ACK[routes]Contact: sip:sipp@[local_ip]:[local_port]Max-Forwards: 70Subject: Performance TestContent-Length: 0]]></send><!-- This delay can be customized by the -d command-line option       --><!-- or by adding a 'milliseconds = "value"' option here.             --><pause/><!-- The 'crlf' option inserts a blank line in the statistics report. --><send retrans="500"><![CDATA[BYE sip:[service]@[remote_ip]:[remote_port] SIP/2.0Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]Call-ID: [call_id]CSeq: 2 BYEContact: sip:sipp@[local_ip]:[local_port]Max-Forwards: 70Subject: Performance TestContent-Length: 0]]></send><recv response="200" crlf="true"></recv><!-- definition of the response time repartition table (unit is ms)   --><ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/><!-- definition of the call length repartition table (unit is ms)     --><CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/></scenario>

http://www.lryc.cn/news/438673.html

相关文章:

  • 引领智能家居新风尚,WTN6040F门铃解决方案——让家的呼唤更动听
  • Android 蓝牙服务启动
  • 【安全系列--处理挖矿】
  • SpringBoot集成Thymeleaf模板引擎,为什么使用(详细介绍)
  • Docker突然宣布:涨价80%
  • 工厂方法模式和抽象工厂模式
  • 【星海出品】go语言环境兼install
  • Spring 源码解读:自定义实现BeanPostProcessor的扩展点
  • Spring Boot-分布式系统问题
  • 面试题总结(三) -- 内存管理篇
  • Qt 定时器-定时备份
  • 天融信把桌面explorer.exe删了,导致开机之后无windows桌面,只能看到鼠标解决方法
  • 视频分割操作教程
  • 唯品会大数据面试题及参考答案(3万字长文)
  • 使用容器技术快速入门MinIO
  • ros2教程(一):使用python和C++发布摄像头原始图像和压缩图像
  • 【自动化测试】UI自动化的分类、如何选择合适的自动化测试工具以及其中appium的设计理念、引擎和引擎如何工作
  • 深入理解Python中的“_,”:一个实用的语法特性
  • Mac清理其他文件:释放存储空间的高效指南
  • html+css+js网页设计 旅游 龙门石窟4个页面
  • CISSP一站通关
  • Golang | Leetcode Golang题解之第406题根据身高重建队列
  • 【我的Android进阶之旅】解决CardView四个圆角有白边的问题
  • 学习笔记JVM篇(四)
  • 828 华为云征文|华为 Flexus 云服务器搭建萤火商城 2.0
  • centos7安装MySQL5.7.44
  • HTTP 请求处理的完整流程到Servlet流程图
  • spingboot中创建简单的WebSocket服务和使用OKHttp创建socket客户端接收数据
  • Redis入门2
  • 嵌入式Linux:信号是什么?