Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1801237
  • 博文数量: 286
  • 博客积分: 3713
  • 博客等级: 少校
  • 技术积分: 2275
  • 用 户 组: 普通用户
  • 注册时间: 2012-01-11 09:47
个人简介

http://blog.chinaunix.net/uid/16979052.html

文章分类

全部博文(286)

文章存档

2018年(1)

2017年(16)

2016年(9)

2015年(17)

2014年(15)

2013年(112)

2012年(116)

分类: LINUX

2013-03-25 10:06:07

    SipP是一款sip协议测试工具,其功能十分强大,可以实现单网卡绑定多IP进行sip协议的注册、呼叫测试。

    不论是在Windows系统还是linux系统,要实现sipp的这个功能都要先把系统的网卡绑定多IP。

1.绑定多IP这里不写了,我的博客里有一篇文章专门介绍linux系统绑定多IP《linux系统绑定多IP》

2.修改SipP的配置文件


要修改的sipp文件有两个 register.xmlusers.csv

1.修改register.xml文件

 

   

 

      REGISTER sip:[remote_ip] SIP/2.0

      Via: SIP/2.0/[transport] [field2]:5080

      To:

      From:

      Contact: ;transport=[transport]

      Expires: 2000000

      Call-ID: [call_id]

      CSeq: 2 REGISTER

      Content-Length: 0

    ]]>

 

红色部分为修改的内容。也就是把所有原来是[local_ip]的地方替换成[field2],把所有[local_port]的地方替换成5080

3.修改users.csv增加field2 为主机ip地址

SEQUENTIAL

3601;[authentication username=3601 password=111111];192.168.82.1

3602;[authentication username=3602 password=111111];192.168.82.2

3603;[authentication username=3603 password=111111];192.168.82.3

3604;[authentication username=3604 password=111111];192.168.82.4

3605;[authentication username=3605 password=111111];192.168.82.5

3606;[authentication username=3606 password=111111];192.168.82.6

3607;[authentication username=3607 password=111111];192.168.82.7

3608;[authentication username=3608 password=111111];192.168.82.8

3609;[authentication username=3609 password=111111];192.168.82.9

3610;[authentication username=3610 password=111111];192.168.82.10

启动注册的命令为
./sipp -sf register.xml -inf users.csv  -p 5080 -t ui -ip_field 2 192.168.81.3


阅读(2964) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~