Peter,
I think I got this right, but still get the same message. I included
the script and command.
Let me know if you see anything wrong with this.
Michael
<?xml version="1.0" encoding="ISO-8859-1" ?>
<scenario name="Basic UAS responder">
<!-- By adding rrs="true" (Record Route Sets), the route sets
-->
<!-- are saved and used for following messages sent. Useful to test
-->
<!-- against stateful SIP proxies/B2BUAs.
-->
<recv request="INVITE" crlf="true">
</recv>
<!-- The '[last_*]' keyword is replaced automatically by the
-->
<!-- specified header if it was present in the last message received
-->
<!-- (except if it was a retransmission). If the header was not
-->
<!-- present or if no message has been received, the '[last_*]'
-->
<!-- keyword is discarded, and all bytes until the end of the line
-->
<!-- are also discarded.
-->
<!--
-->
<!-- If the specified header was present several times in the
-->
<!-- message, all occurences are concatenated (CRLF seperated)
-->
<!-- to be used in place of the '[last_*]' keyword.
-->
<pause milliseconds = "15000"/>
<send>
<![CDATA[
SIP/2.0 100 Trying
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_Cseq:]
User-Agent: Phunky Scenario
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
Content-Length: 0
]]>
</send>
<pause/>
<send>
<![CDATA[
SIP/2.0 180 Ringing
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_Cseq:]
User-Agent: Phunky Scenario
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
Content-Length: 0
]]>
</send>
<pause/>
<send retrans="500">
<![CDATA[
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_Cseq:]
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
Content-Type: application/sdp
Content-Length: 136
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 request="ACK"
optional="true"
rtd="true"
crlf="true">
</recv>
<label id="1"/>
<!-- Keepalive Invite>
<recv request="INVITE"
optional="true"
rtd="true"
next="2">
</recv>
<label id="3"/>
<recv request="BYE">
</recv>
<send>
<![CDATA[
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_Cseq:]
[last_CSeq:]
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
Content-Length: 0
]]>
</send>
<pause milliseconds="1" next="3"/>
<label id="2"/>
<send>
<![CDATA[
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_Cseq:]
[last_CSeq:]
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
Content-Length: 0
]]>
</send>
<pause milliseconds="1" next="3"/>
<!-- Keep the call open for a while in case the 200 is lost to be
-->
<!-- able to retransmit it if we receive the BYE again.
-->
<pause milliseconds="150000"/>
<!-- 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>
[EMAIL PROTECTED] sipp]#
[EMAIL PROTECTED] sipp]#
[EMAIL PROTECTED] sipp]#
[EMAIL PROTECTED] sipp]#
[EMAIL PROTECTED] sipp]# ./sipp -p 5060 -i 208.178.211.190 -sf
server2-keepalives.xml -s 5555554321 -mp 8000 -mi 208.178.211.190 -m 1
2006-10-24 08:48:13: <recv> before <send> sequence without a mandatory
message. Please remove one 'optional=true'..
[EMAIL PROTECTED] sipp]#
-----Original Message-----
From: Peter Higginson [mailto:[EMAIL PROTECTED]
Sent: Monday, October 23, 2006 9:43 AM
To: Miller, Michael L. (Detroit); [email protected]
Subject: RE: [Sipp-users] Keepalive Script
What you need to do is put a label 1 before the optional receive, a
next="2"
in the optional receive and then send the 200 reply to the optional
INVITE
from label 2 at the end with next="1". (Not forgetting to put label 3 at
the
very end and a pause with a next="3" after the 200 to BYE.) That way the
next command after the optional receive will be receive of the BYE -
which
is mandatory (as SIPP requires). See the documentation for more help on
use
of next and label.
Peter
Peter Higginson
Newport Networks Ltd,
Direct line 01494 470694
http://www.newport-networks.com/
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Miller,
Michael L. (Detroit)
Sent: 23 October 2006 12:17
To: [email protected]
Subject: [Sipp-users] Keepalive Script
I'm looking for a way to include support into a normal Server script in
which I might receive an optional Invite for a keepalive that a 200 ok
needs to be sent. If I try, I get a message when the script starts that
saids "<recv> before <send> sequence without a mandatory message."
Remote SIPp UAS
|(1) INVITE |
|-------------------->|
|(2) 180 |
|<--------------------|
|(3) 200 |
|<--------------------|
|(4) ACK |
|-------------------->|
| |
|(5) INVITE (Optional)| -----+
|-------------------->| |
| | +---- Loop until I get a bye
|(6) 200 (Optional) | |
|<--------------------| -----+
| |
|(7) BYE |
|-------------------->|
|(8) 200 |
|<--------------------|
Thanks ahead of time.
Michael
------------------------------------------------------------------------
-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users
---------------
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and delete this e-mail. Any
unauthorized copying, disclosure or distribution of the contents in this
e-mail is strictly forbidden.
---------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users