sipp 注册脚本测试服务端含(401)注册流程(UAC )
UAC 脚本
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!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 'branchc' scenario. -->
<!-- -->
<scenario name="branch_client">
<send retrans="500">
<![CDATA[
REGISTER sip:[remote_ip] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number]
To: [field0] <sip:[field0]@[remote_ip]:[remote_port]>
Call-ID: [call_id]
CSeq: 1 REGISTER
Contact: sip:[field0]@[local_ip]:[local_port]
Content-Length: 0
Expires: 60
]]>
</send>
<recv response="401" auth="true" next="1">
</recv>
<!-- send invite with authentication messages -->
<label id="1"/>
<send retrans="500">
<![CDATA[
REGISTER sip:[field0]@[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port]
From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number]
To: [field0] <sip:[field0]@[remote_ip]:[remote_port]>
Call-ID: [call_id]
CSeq: 2 REGISTER
Contact: sip:[field0]@[local_ip]:[local_port]
[field1]
Content-Length:0
Expires: 60
]]>
</send>
<recv response="200" next="2">
</recv>
<label id="2"/>
<pause milliseconds="1"/>
<!-- 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>
csv场景文件 建立一个文件 reg.csv
再新建一个文件 如auto_user
粘贴以下内容
#!/bin/bash
#
#----------This program is to auto-create sip account----------
#History 2011-6-9
i=300000
echo "SEQUENTIAL" > reg.csv
while [ $i != 300100 ]
do
i=$(($i+1))
echo "$i;[authentication username=$i password=1234]" >> reg.csv
done
运行此脚本 即可自动创建用户
再次打开后发现 reg.csv内容
SEQUENTIAL
300001;[authentication username=300001 password=1234]
300002;[authentication username=300002 password=1234]
300003;[authentication username=300003 password=1234]
300004;[authentication username=300004 password=1234]
300005;[authentication username=300005 password=1234]
300006;[authentication username=300006 password=1234]
300007;[authentication username=300007 password=1234]
300008;[authentication username=300008 password=1234]
..........
运行 ./sipp -sf register_auth.xml -inf reg.csv -i 本地IP -p 本地端口 -m 3000 -r 300 目的IP:目的端口
sipp 注册脚本测试服务端含(401)注册流程(UAC )相关推荐
- Nacos注册中心8-Server端(处理注册请求)
0. 环境 nacos版本:1.4.1 Spring Cloud : 2020.0.2 Spring Boot :2.4.4 Spring Cloud alibaba: 2.2.5.RELEASE 测 ...
- 爬虫---ins注册脚本
访问这个网站首先要解决qiang的问题,这里就跳过了 重点: 1.该网站手机号可以重复注册,但是应该有一个预警机制,将失效的账号以邮件的方式发出来 2.爬取该网站最好尽量多的备手机号,100往上最好 ...
- UpdatePanel 后台注册脚本失效
原本使用 ClientScript.RegisterStartupScript 在一个"新增"按钮的事件中注册脚本,后来才发现调用前台js方法时候失效,后来网上查相关博客后才知道, ...
- 关天asp.net ajax beta中在updatepnael中注册脚本的解决方案
最近也在看一些asp.net ajax 的资料,在网上看到很多人都在问如何在updatepanel中注册脚本,我也试了一下,不过总是不行,就看了好多资料,最后才知道自己没有完全理解 ScriptMan ...
- 动态向客户端注册脚本文件
//向客户端注册脚本文件 public static bool RegistScript(Page page, string path) { bool isRe ...
- HTML5期末大作业:在线电影网站设计——电影速递网(12页面)含登录注册HTML+CSS+JavaScript
HTML5期末大作业:在线电影网站设计--电影速递网(12页面)含登录注册HTML+CSS+JavaScript 临近期末, 你还在为HTML网页设计结课作业,老师的作业要求感到头大?HTML网页作业 ...
- 无法导入.reg:指定的文件不是注册脚本。你在注册表编辑器中只能导...解决办法(非常实用)
最近使用到了注册脚本的导入,但是每次导入都会报错:无法导入F:\桌面\wechat.reg:指定的文件不是注册脚本.你在注册表编辑器中只能导入二进位注册文件.reg!!! ...
- facebook注册脚本
抱歉,我无法提供注册脚本的信息.我可以为您提供关于如何在 Facebook 上注册的信息: 打开浏览器并访问 www.facebook.com. 在页面的右上角,点击"注册"按钮. ...
- Android Binder通信原理(五):Java 端的service 注册和获取
源码基于:Android R 0. 前言 在阐述相关的知识点,先整理个框架图,后面带着框架图来分析过程: Java 端对于binder 使用大致分为: Java client Java service ...
最新文章
- 专访 | 社科学院和美术学院毕业生与大数据的故事【第一届数据故事计划】
- python装饰器实例-python 装饰器的使用示例
- 嵌入式开发中使用DDD进行调试
- 《Redis官方文档》事件库
- JUST技术:管理海量空间数据的利器-空间填充曲线
- 面经——Linux相关
- Java继承_java练习本(20190617)
- 基于Java+SpringBoot+vue+element实现火车订票平台管理系统
- 一键卡iPhoneQQ在线
- 企业集团合并财务报表
- 洛伦兹吸引子 matlab,使用Matplotlib画洛伦兹吸引子 | 学步园
- android 时钟翻转,旋转时钟游戏
- dbind-WARNING **: Error retrieving accessibility bus address
- 电脑远程桌面怎么关闭计算机,远程控制电脑怎么关闭
- 网络对抗技术 实验三
- 洛谷P3373线段树
- 微信小程序中如何打开公众号文章(node版)
- Debian参考手册读书摘要
- 电子学会2021年3月青少年软件编程(图形化)等级考试试卷(二级)答案解析
- 华为路由器接口如何区分_华为路由的线路输出的两种不同方法简介
热门文章
- 一切都结束了。OI退役感言。
- 10、Health Check、及机制Liveness 探测、机制Readiness 探测、在Scale Up(伸缩)中使用Health Check、
- 用二分法编写猜数字游戏(含:猜电脑随机数,和用户自己想的数字)python
- [附源码]计算机毕业设计springboot家庭医生签约服务管理系统
- Redis快速入门,一篇带你系统入门,学会即加薪
- 【Ubuntu18.04 无法找到终端 ifconfig 命令】
- oxidized配置(docker版)
- 更换内存条、固态硬盘、双系统配置全纪录
- Java爬虫初学——爬取BT电影天堂电影的磁力链接并筛选下载
- mac Vim/Vi Insert模式 ESC 按键无效的解决办法