Hi,

I have a setup to load test my Asterisk server, and do have a script INVITE
and injecting data with CSV file.

When I try to execute the same, am getting 401 error with error in call_id.
Basically call_id is autogenarted by From, To header if am not wrong.

Attached is my script.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<!--
SEQUENTIAL
Gopal;2001
Murali;1777
-->

<!--./sipp -i 192.168.0.87 -p 6060 -sf call_injection.xml -inf data_invite_inject.txt -m 2 -l 1 -d 2000 192.168.0.54 -trace_err-->

<!--./sipp -sf myscenario.xml -t ui -inf database.csv -ip_field 2 192.168.1.1-->

<scenario name="Call Establishment Injection">
<send retrans="500">
    <![CDATA[

      INVITE sip:[field1]@[remote_ip]:[remote_port] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port]
      From: [field0] <sip:[field1]@[local_ip]:[local_port]>;tag=[call_number]
      To: [field0] <sip:[field1]@[remote_ip]:[remote_port]>
      Call-ID: [call_id]
      CSeq: 1 INVITE
      Contact: sip:[field1]@[local_ip]:[local_port]
      Max-Forwards: 70
      Subject: Performance Test
      Content-Type: application/sdp
      Content-Length: [len]

      v=0
      o=user1 53655765 2353687637 IN IP4 127.0.0.1
      s=-
      t=0 0
      c=IN IP4 [media_ip]
      m=audio [media_port] RTP/AVP 0
      a=rtpmap:0 PCMU/8000
    ]]>
  </send>
  <recv response="100"
          optional="true">
  </recv>
  
  <recv response="180" optional="true">
  </recv>
  <recv response="200" rtd="true">
  </recv>
  
  <send>
      <![CDATA[
  
        ACK sip:[field1]@[remote_ip]:[remote_port] SIP/2.0
        Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
        From: [field0] <sip:[field1]@[local_ip]:[local_port]>;tag=[call_number]
        To: [field0] <sip:[field1]@[remote_ip]:[remote_port]>[peer_tag_param]
        Call-ID: [call_id]
        CSeq: 1 ACK
        Contact: sip:[field1]@[local_ip]:[local_port]
        Max-Forwards: 70
        Subject: Performance Test
        Content-Length: 0
  
      ]]>
    </send>
	<pause/>
	<send retrans="500">
      <![CDATA[
  
		BYE sip:[field1]@[remote_ip]:[remote_port] SIP/2.0
        Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
        From: [field0] <sip:[field1]@[local_ip]:[local_port]>;tag=[call_number]
		To: [field0] <sip:[field1]@[remote_ip]:[remote_port]>[peer_tag_param]
        Call-ID: [call_id]
        CSeq: 2 BYE
        Contact: sip:[field1]@[local_ip]:[local_port]
        Max-Forwards: 70
        Subject: Performance Test
        Content-Length: 0
 
     ]]>
   </send>
 
   <recv response="200" crlf="true">
   </recv>
   <!-- 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"/>
   <pause milliseconds="2000"/>
</scenario>
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to