Hi
This one worked for me
I hope it will be helpful for you too
Regards,
Evgeny Miloslavsky
Systest Engineer
Juniper Networks Solutions Israel LTD.
Office: 972-9-9717320/2355
________________________________
From: Wei Sun [mailto:[email protected]]
Sent: Monday, January 19, 2009 4:42 AM
To: [email protected]
Subject: [Sipp-users] multiple NOTIFY in one XML script?
hey everyone,
does anyone know how to put multiple NOTIFY message in a single XML
script? I am trying to test NOTIFY with different options. so instead
write lots XML scenario scripts, can I just write one XML script, with
sipp as uas sending multiple NOTIFY. they will have same call ID but
different Cseq. eg:
<send>
<![CDATA[
NOTIFY sip:[servi...@[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port]
From: sipp <sip:s...@[local_ip]:[local_port]>;tag=[call_number]
To: <sip:[servi...@[remote_ip]:[remote_port]>
Call-ID: [call_id]
CSeq: 1 NOTIFY
....
]]>
</send>
<recv response="200" crlf="true">
</recv>
<pause milliseconds="2000"/>
<send>
<![CDATA[
NOTIFY sip:[servi...@[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port]
From: sipp <sip:s...@[local_ip]:[local_port]>;tag=[call_number]
To: <sip:[servi...@[remote_ip]:[remote_port]>
Call-ID: [call_id]
CSeq: 2 NOTIFY
.....
]]>
<recv response="200" crlf="true">
</recv>
I tried this but it doesn't work. for the 2nd OK sipp receives, sipp
complains " Discarding message which can't be mapped to a known SIPp
call".
any help is appreciated.
======
Make it as simple as possible, but not simpler. -Albert Einstein
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<scenario name="Basic UAS responder">
<recv request="SUBSCRIBE" crlf="true">
<action>
<ereg regexp="sip:[^;>]+" search_in="hdr" header="Contact: " case_indep="true" assign_to="1"/>
<ereg regexp=".*" search_in="hdr" header="From:" case_indep="true" assign_to="2"/>
<ereg regexp=".*" search_in="hdr" header="To:" case_indep="true" assign_to="3"/>
</action>
</recv>
<send>
<![CDATA[
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:];tag=SIPpTag01[call_number]
[last_Call-ID:]
[last_CSeq:]
Contact: <sip:sipp-ua...@[local_ip]:[local_port];transport=[transport]>
Expires: 600
Content-Length: [len]
]]>
</send>
<!-- Delay the NOTIFY a bit so the capture will get the answer of UAC first and then send the NOTIFY -->
<pause milliseconds="1000"/>
<send>
<![CDATA[
NOTIFY [$1] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From:[$3];tag=SIPpTag01[call_number]
To:[$2]
[last_Call-ID:]
CSeq: 2 NOTIFY
Contact: sip:sipp-ua...@[local_ip]:[local_port]
Max-Forwards: 70
Event:presence
Subscription-State: active;expires=599
Content-Type: application/pidf+xml
Content-Length: [len]
]]>
</send>
<recv response="100" optional="true">
</recv>
<recv response="200">
</recv>
<pause milliseconds="1000"/>
<send>
<![CDATA[
NOTIFY [$1] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From:[$3];tag=SIPpTag01[call_number]
To:[$2]
[last_Call-ID:]
CSeq: 3 NOTIFY
Contact: sip:sipp-ua...@[local_ip]:[local_port]
Max-Forwards: 70
Event:presence
Subscription-State: terminated
Content-Length: [len]
]]>
</send>
<recv response="100" optional="true">
</recv>
<recv response="200">
</recv>
<pause milliseconds="4000"/>
<!-- 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>
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users