Hi Sakharam,

Thank you for pointing out the mistake in my script.

I also did some more modifications to the script for handling scenarios
where fmtp attribute is also present for example -
SEQUENTIAL
102;a=rtpmap:102 G7221/16000;a=fmtp:102 bitrate=32000
9;a=rtpmap:9 G722/8000
0;a=rtpmap:0 PCMU/8000
8;a=rtpmap:8 PCMA/8000
18;a=rtpmap:18 G729/8000;a=fmtp:18 annexb=no


Invite SDP -

      v=0
      o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
      s=-
      c=IN IP[media_ip_type] [media_ip]
      t=0 0
      m=audio [media_port] RTP/AVP [field0]
      [field1]
      [field2]

    ]]>
  </send>

Attaching the script and CSV file for your reference.

Thanks,
Anjana



On Thu, Mar 13, 2014 at 12:42 PM, Sakharam Thorat <
sakharam.tho...@outlook.com> wrote:

>  [image: Boxbe] <https://www.boxbe.com/overview> Sakharam Thorat (
> sakharam.tho...@outlook.com) added themselves to your Guest 
> List<https://www.boxbe.com/approved-list?tc_serial=16608546234&tc_rand=828312230&utm_source=stf&utm_medium=email&utm_campaign=ANNO_TEST&utm_content=001&token=SX46X5qbqvZlfG7%2Fruz1gaGhssvQ%2FDQgSujJ8nS8BTEHtJDkPk9odH5S5iOq7HyU&key=%2FUfVAOC9pkLdBOP1jC9bL96qBXPJkzH8M1sZ9dktIi0%3D>|
>  Remove
> them<https://www.boxbe.com/anno?action=remove&tc_serial=16608546234&tc_rand=828312230&utm_source=stf&utm_medium=email&utm_campaign=ANNO_TEST&utm_content=001&token=SX46X5qbqvZlfG7%2Fruz1gaGhssvQ%2FDQgSujJ8nS8BTEHtJDkPk9odH5S5iOq7HyU&key=%2FUfVAOC9pkLdBOP1jC9bL96qBXPJkzH8M1sZ9dktIi0%3D>|
>  Block
> them<https://www.boxbe.com/anno?action=add&disp=b&tc_serial=16608546234&tc_rand=828312230&utm_source=stf&utm_medium=email&utm_campaign=ANNO_TEST&utm_content=001&token=SX46X5qbqvZlfG7%2Fruz1gaGhssvQ%2FDQgSujJ8nS8BTEHtJDkPk9odH5S5iOq7HyU&key=%2FUfVAOC9pkLdBOP1jC9bL96qBXPJkzH8M1sZ9dktIi0%3D>
>
>
> Anjana,
>
> Please correct  following line in your .xml.
>
>  Your xml have
>
> *"m=audio [media_port] RTP/AVP [field0]      [field1]"*
>
> This Should be
>
>
> *m=audio [media_port] RTP/AVP [field0] a= [field1]*
>
> I tested in my lab please find log below
>
> _H4)E@@ZR"INVITE sip:service@172.17.1.4:5060 SIP/2.0
> Via: SIP/2.0/UDP 172.17.1.82:5061;branch=z9hG4bK-8831-1-0
> From: sipp <sip:sipp@172.17.1.82:5061>;tag=1
> To: sut <sip:service@172.17.1.4:5060>
> Call-ID: 1-8831@172.17.1.82
> CSeq: 1 INVITE
> Contact: sip:sipp@172.17.1.82:5061
> Max-Forwards: 70
> Subject: Performance Test
> Content-Type: application/sdp
> Content-Length:   140
>
> v=0
> o=user1 53655765 2353687637 IN IP4 172.17.1.82
> s=-
> c=IN IP4 172.17.1.82
> t=0 0
> m=audio 6000 RTP/AVP 102
> a=rtpmap:102 G7221/16000
>
> please reffer attached  xml,  and .pcap(apply filter sip)
>
>
> Best Regards,
> Sakharam Thorat.
>
>
> ------------------------------
> Date: Thu, 13 Mar 2014 11:28:42 +0530
> From: linkanj...@gmail.com
> To: sipp-users@lists.sourceforge.net
> Subject: [Sipp-users] Fwd: Problem with CSV file.
>
>
> Hello All,
>
> Objective of my test - Each time make use of a different audio codec to
> make a call from SIPP to DUT.
>
> For this I have created a CSV file and a Cancel_codec.xml file attached
> for your reference above.
>
> Problem I am facing - I get "Invalid SDP line (no '=' delimiter) error. I
> am attaching the screen shot and wireshark trace for your reference above.
>
> Command to run the script -
> sipp.exe -sf cancel_codec.xml -inf cod.csv -m 5 -r 100 -rp 10000
> 172.24.145.166 -i 172.24.145.162 -d 0 -trace_err
>
> Kindly help me solve this problem or propose a better way to do this.
>
> My CSV file looks like this -
> SEQUENTIAL
> 102;rtpmap:102 G7221/16000
> fmtp:102 bitrate=32000
> 9;a=rtpmap:9 G722/8000
> 0;a=rtpmap:0 PCMU/8000
> 8;a=rtpmap:8 PCMA/8000
>
>
> And my send Invite Request looks like this -
>  <send retrans="500">
>     <![CDATA[
>
>       INVITE sip:[service]@[remote_ip]:[remote_port] SIP/2.0
>       Via: 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: [cseq] INVITE
>       Contact: sip:sipp@[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=-
>       c=IN IP[media_ip_type] [media_ip]
>       t=0 0
>       m=audio [media_port] RTP/AVP [field0]
>       [field1]
>
>     ]]>
>   </send>
>
>
> Thanking you,
> Anjana
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is
> the definitive new guide to graph databases and their applications. Written
> by three acclaimed leaders in the field, this first edition is now
> available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________ Sipp-users mailing list
> Sipp-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sipp-users
>
>
<?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 '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.0
      Via: 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: [cseq] INVITE
      Contact: sip:sipp@[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=-
      c=IN IP[media_ip_type] [media_ip]
      t=0 0
      m=audio [media_port] RTP/AVP [field0]
      [field1]
	  [field2]

    ]]>
  </send>

 <recv response="100">
    <action>
      <ereg regexp=";branch=[^;]*" search_in="hdr" header="Via" check_it="false" assign_to="1"/>
    </action>
  </recv>  
   
 <recv response="486" optional="true" next="Send_OK_FOR_BUSY">
  </recv>

 <recv response="180" next="Send_CANCEL">
  </recv>  

 <label id="Send_OK_FOR_BUSY"/>
   <send next="EOF">
    <![CDATA[

      ACK sip:[remote_ip]:[remote_port] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port][$1]
      [last_From:]
      [last_To:]
      Call-ID: [call_id]
      CSeq: [cseq] ACK
      Contact: sip:[local_ip]:[local_port]
      Max-Forwards: 10
      Content-Length: 0

    ]]>
  </send>

 
  <!-- This delay can be customized by the -d command-line option       -->
  <!-- or by adding a 'milliseconds = "value"' option here.             -->

  <!-- The 'crlf' option inserts a blank line in the statistics report. -->
 
 <label id="Send_CANCEL"/>
 
<pause milliseconds = "3000"/>  
  
  <send retrans="500">
    <![CDATA[

      CANCEL sip:[remote_ip]:[remote_port] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port][$1]
      [last_From:]
      [last_To:]
      Call-ID: [call_id]
      CSeq: [cseq] CANCEL
      Contact: sip:[local_ip]:[local_port]
      Max-Forwards: 10
      Content-Length: 0

    ]]>
  </send>

  <recv response="200">
  </recv>
  
  <recv response="487"/> 
  
  <send next="EOF">
    <![CDATA[

      ACK sip:[remote_ip]:[remote_port] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port][$1]
      [last_From:]
      [last_To:]
      Call-ID: [call_id]
      CSeq: [cseq] ACK
      Contact: sip:[local_ip]:[local_port]
      Max-Forwards: 10
      Content-Length: 0

    ]]>
  </send>

  

   <label id="EOF"/>
   <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>


SEQUENTIAL
102;a=rtpmap:102 G7221/16000;a=fmtp:102 bitrate=32000
9;a=rtpmap:9 G722/8000
0;a=rtpmap:0 PCMU/8000
8;a=rtpmap:8 PCMA/8000
18;a=rtpmap:18 G729/8000;a=fmtp:18 annexb=no
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to