Hi,

I am using SIPP scripts (attached) where I simulate a A party CANCEL
scenario.
On receiving CANCEL at B party side, 487 is sent back to application where
the application should send 487 back to A party. But, at the A party 408 is
received instead of 487.

However, I tested this scenario using PureTest and that worked as expected.

Any help on this is much appreciated. Am I missing some tags or message
format is wrong?

Below is the SIPp screen data where the test case is executed:


*B party---------------*

                                 Messages  Retrans   Timeout
Unexpected-Msg
  ----------> INVITE             1         0         0         0

  <---------- 100                1         0

  <---------- 180                1         0

  ----------> CANCEL        1         0         0         0

  <---------- 200                1         0

  <---------- 487                1         0

  ----------> ACK                1         0         0         0

------------------------------ Test Terminated
--------------------------------



*A Party------------*

                                 Messages  Retrans   Timeout
Unexpected-Msg
      INVITE ---------->         1         0

         100 <----------         1         0         0         0
         180 <----------         1         0         0         0
       Pause [   3000ms]   1                             0
      CANCEL ---------->     1         0

         200 <----------          1         0         0         0
         487 <----------          0         0         0         1
         ACK ---------->        0         0
------------------------------ Test Terminated
--------------------------------


----------------------------- Statistics Screen ------- [1-9]: Change
Screen --
  Start Time             | 2016-01-06   20:53:04.858797 1452093784.858797
  Last Reset Time        | 2016-01-06   20:53:08.005545 1452093788.005545
  Current Time           | 2016-01-06   20:53:08.008142 1452093788.008142
-------------------------+---------------------------+--------------------------
  Counter Name           | Periodic value            | Cumulative value
-------------------------+---------------------------+--------------------------
  Elapsed Time           | 00:00:00:002000           | 00:00:03:149000
  Call Rate              |    0.000 cps              |    0.318 cps
-------------------------+---------------------------+--------------------------
  Incoming call created  |        0                  |        0
  OutGoing call created  |        0                  |        1
  Total Call created     |                           |        1
  Current Call           |        0                  |
-------------------------+---------------------------+--------------------------
  Successful call        |        0                  |        0
  Failed call            |        0                  |        1
-------------------------+---------------------------+--------------------------
  Call Length            | 00:00:00:000000           | 00:00:03:037000
------------------------------ Test Terminated
--------------------------------

2016-01-06      20:53:08.000062 1452093788.000062: Aborting call on
unexpected message for Call-Id '1-11854@10.184.46.83': while expecting
'487' (index 6), received 'SIP/2.0 408 Request Timeout
To: Callee02 <sip:319112345...@ims.network.com>;tag=proxy408-58e10ce4
Via: SIP/2.0/TCP 10.184.46.83:25090;branch=z9hG4bK-11854-1-0
CSeq: 1 INVITE
Content-Length: 0
Call-ID: 1-11854@10.184.46.83
From: Caller01 <sip:916112345...@ims.network.com>;tag=1


-- 
Thanks,
Raghu,
09886828155
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<scenario>
  <send crlf="true">
    <![CDATA[
                 INVITE sip:+316112345602@[remote_ip]:45090 SIP/2.0
                 Call-Id: [call_id]
                 CSeq: 1 INVITE
                 Max-Forwards: 70
                 Route: <sip:[remote_ip]:[remote_port];lr>
                 Contact: sip:[local_ip]:[local_port];transport=[transport]
                 From: Caller01 <sip:916112345...@ims.network.com>;tag=[call_number]
                 To: Callee02 <sip:319112345...@ims.network.com>
                 Content-Type: application/sdp
                 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
                 Content-Length: [len]

                 v=0
                 o=user1 53655765 2353687637 IN IP4 [local_ip]
                 s=-
                 c=IN IP4 [media_ip]
                 t=0 0
                 m=audio [media_port] RTP/AVP 0
                 a=rtpmap:0 PCMU/8000
    ]]>
  </send>

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

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

  <pause milliseconds="3000"/>
 <send crlf="true">
    <![CDATA[
      CANCEL sip:+316112345602@[remote_ip]:45090 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: 70
      Route: <sip:[remote_ip]:[remote_port];lr>
      Content-Length: 0
    ]]>
  </send>
  
  <recv response="200" rrs="true">
  </recv>

  <recv response="487" rrs="true">
  </recv>

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

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

     <recv request="INVITE" crlf="true" rrs="true">	 
		<action>
			<ereg regexp="INVITE sip:122316112345...@mgcf.com:45090*" search_in="msg" check_it="true" assign_to="1" />
			<log message="From is [last_From]. Custom header is [$1]"/>
		</action>
      </recv>

	<send crlf="true">
  <![CDATA[  
    
			SIP/2.0 100 Trying
			[last_Via:]
			[last_From:]
			[last_To:];tag=[call_number]
			[last_Call-ID:]
			[last_CSeq:]
			Contact: <sip:[local_ip]:[local_port];transport=[transport]>
                 	Content-Length: 0
    		]]>
  </send>


	<send crlf="true">
  		<![CDATA[  
    
			SIP/2.0 180 Ringing
			[last_Via:]
			[last_From:]
			[last_To:];tag=[call_number]
			[last_Call-ID:]
			[last_CSeq:]
			Contact: <sip:[local_ip]:[local_port];transport=[transport]>
                 	Content-Length: 0
    		]]>
  	</send>

  
		<recv request="CANCEL" crlf="true" >
		</recv>

		<send crlf="true">
    		<![CDATA[  
    
			SIP/2.0 200 OK
			[last_Via:]
			[last_From:]
			[last_To:];tag=[call_number]
			[last_Call-ID:]
                        [routes]
			[last_CSeq:]
			Contact: <sip:[local_ip]:[local_port];transport=[transport]>
                 	Content-Length: 0
    		]]>
		</send>
	
		<send crlf="true">
                <![CDATA[

                        SIP/2.0 487 Request Terminated
                        [last_Via:]
                        [last_From:]
                        [last_To:];tag=[call_number]
                        [last_Call-ID:]
                        CSeq: 1 INVITE
                        Contact: <sip:[local_ip]:[local_port];transport=[transport]>
                        Content-Length: 0
                ]]>
		</send>
		
		    <recv request="ACK" crlf="true">
	</recv>

</scenario>
------------------------------------------------------------------------------
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to