Linux-SIPp3.3测试FreeSwitch-(四)UAS-1

上一篇 / 下一篇  2013-11-28 16:18:44 / 个人分类:sipp

# Author:fairylly

调试uas流程时,推荐调试方案:eyebeam主叫(或其它VOIP工具)+uas被叫;

uacuas单方都确认调试通过后,再使用:uac主叫+uas被叫;

 

reg.xml流程


uas.xml流程:


reg.sh文件内容如下:

./sipp -i 192.168.146.101 -sf reg.xml -inf uas.csv 192.168.148.43:5060 -l 1 -trace_msg -trace_screen -trace_err -p 12346 -m 1 -aa

参数解释同uac流程;

 

性能测试过程中,一直要修改测试用户数,可考虑参照如下修改reg.sh脚本,-l-m参数使用变更代替:

#!/bin/bash

# Author:fairylly

执行脚本时,未输入参数,提示:please input call number!,并退出

if [[ $# -eq 0 ]]

then

        echo "please input call number!"

        exit 1

fi

# m变量使用命令行传递的第一个位置参数

m=$1

./sipp -i 192.168.146.101 -sf reg.xml -inf uas.csv 192.168.148.43:5060 -l 1 -trace_screen -trace_err -p 12346 -m 1 -aa

 

使用方法:./reg.sh 100,表示最大同时注册100个用户;

 

reg.xml文件内容如下:

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE scenario SYSTEM "sipp.dtd">

<scenario name="Register">

    <!-- send register -->

    <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]@[remote_ip]:[remote_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: 3600

     ]]>

  </send>

 

  <recv response="401" auth="true" next="1"></recv>

  

  <!--   send register 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]@[remote_ip]:[remote_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]

       [field2]

       Content-Length: 0

       Expires: 3600

     ]]>

  </send>

  <recv response="200"></recv>

 

  <pause milliseconds="3000"/>

 

  <!-- 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>



uas_noreg.sh文件内容如下:

./sipp -i 192.168.146.101 -sf uas_noreg.xml -inf uas.csv 192.168.148.43:5060 -l 1 -trace_msg -trace_screen -trace_err -p 12346 -m 1 -aa

参数解释同uac流程;

 

性能测试过程中,一直要修改测试用户数,可考虑参照如下修改uas_noreg.sh脚本,-l-m参数使用变更代替:

#!/bin/bash

# Author:fairylly

执行脚本时,未输入参数,提示:please input call number!,并退出

if [[ $# -eq 0 ]]

then

        echo "please input call number!"

        exit 1

fi

# m变量使用命令行传递的第一个位置参数

m=$1

 

./sipp -i 192.168.146.101 -sf uas_noreg.xml -inf uas.csv 192.168.148.43:5060 -l $m -trace_screen -trace_err -p 12346 -m $m -aa

 

使用方法:./uas_noreg.sh 100,表示最大同时被叫100个用户;


TAG: freeswitch Linux linux sipp SIPP uas 测试

 

评分:0

我来说两句

Open Toolbar