Linux-SIPp3.3测试FreeSwitch-(三)UAC-2

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

# Author:fairylly

uac.xml文件内容如下:

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

<!DOCTYPE scenario SYSTEM "sipp.dtd">

<scenario name="UAC with media">

  <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" next="2">

  </recv>

 

  <!-- invite(1) -->

  <label id="2"/>

  <send retrans="500">

     <![CDATA[

        INVITE sip:[field1]@[remote_ip]:[remote_port] 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: [field1] <sip:[field1]@[remote_ip]:[remote_port]>

        Call-ID: [call_id]

        CSeq: 1 INVITE

        Contact: sip:[field0]@[local_ip]:[local_port]

        Max-Forwards: 70

        Subject: Performance Test

        Content-Type: application/sdp

        Content-Length: [len]

 

        v=0

        o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]

        s=-

b=AS:84

        c=IN IP[local_ip_type] [local_ip]

        t=0 0

a=X-nat:0

        m=audio [auto_media_port] RTP/AVP 98

        a=sendrecv

        a=rtpmap:98 iLBC/8000

        a=fmtp:98 mod=30

 

     ]]>

  </send>

  <recv response="100" optional="true"></recv>

  <recv response="407" auth="true" next="3"></recv>

 

  <!-- ack(1) -->

  <label id="3"/>

  <send>

    <![CDATA[

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

[last_Via:]

From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number]

To: [field1] <sip:[field1]@[remote_ip]:[remote_port]>[peer_tag_param]

Call-ID: [call_id]

CSeq: 1 ACK

Contact: sip:[field0]@[local_ip]:[local_port]

Max-Forwards: 70

Subject: Performance Test

Content-Length: 0

     ]]>

  </send>

 

 

  <!-- invite(2) -->

  <send retrans="500">

     <![CDATA[

INVITE sip:[field1]@[remote_ip]:[remote_port] 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: [field1] <sip:[field1]@[remote_ip]:[remote_port]>

        Call-ID: [call_id]

        CSeq: 2 INVITE

        Contact: sip:[field0]@[local_ip]:[local_port]

        Max-Forwards: 70

        Subject: Performance Test

[field2]

        Content-Type: application/sdp

        Content-Length: [len]

 

        v=0

        o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]

        s=-

b=AS:84

        c=IN IP[local_ip_type] [local_ip]

        t=0 0

a=X-nat:0

        m=audio [auto_media_port] RTP/AVP 98

        a=sendrecv

        a=rtpmap:98 iLBC/8000

        a=fmtp:98 mod=30

 

     ]]>

  </send>

 

  <recv response="100" optional="true"></recv>

  <recv response="180" optional="true"></recv>


  <recv response="183" optional="true"></recv>

 

  <recv response="200" rtd="true" next="4"></recv>


TAG: freeswitch Linux linux sipp SIPP uac 测试

 

评分:0

我来说两句

Open Toolbar