Hi Sree,
moving the ' optional="true" ' attribute from the <recv request=OPTIONS
...> to the <recv request=INVITE ...> should do the trick.
The reason is that at a point in a scenario where several different
incoming messages are acceptable, all of them except the last one in the
list must have the ' optional="true" ' attribute.
P.
Dne 30.12.2015 v 13:13 SREE RAGHURAM PATTABHI napsal(a):
Hi,
I am working on SIPp (new bee).
I have a scenario where in the B party side, I expect either INVITE or
OPTIONS message and I need to send the corresponding response to A
party/proxy.
Below is my Test script. I have a problem that the test case is made
as successful only when INVITE comes and success is not counted when
the OPTIONS message is received; in the statistics (Screen #2). (The
OPTIONS message is created and sent by my application periodically
where as INVITE passes through my application/proxy).
Could you please help me here to make sure that the OPTIONS message as
well would be counted as success.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<scenario>
<recv request="INVITE" crlf="true" rrs="true" timeout="15000"
next="1">
<action>
<ereg regexp="INVITE
sip:122316112345...@mgcf.com:45090;transport=TCP*" search_in="msg"
check_it="true" assign_to="1" />
<log message="From is [last_From]. Custom header is [$1]"/>
</action>
</recv>
<recv request="OPTIONS" crlf="true" rrs="true" timeout="15000"
next="2" optional="true">
</recv>
<label id="1"/>
<!-- Send the 200 -->
<send crlf="true" next="3">
<![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-Type: application/sdp
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>
<label id="2"/>
<!-- Send the 200 -->
<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-Type: application/sdp
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>
<label id="3"/>
<recv request="ACK" crlf="true">
</recv>
</scenario>
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--
Thanks,
Sree
------------------------------------------------------------------------------
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users
------------------------------------------------------------------------------
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users