Hi All,
I'm trying to create a simple UA that receives SUBSCRIBE and sends 200OK
and NOTIFY.
I want it to be able to handle retransmissions:
1. Resending the 200OK upon an incoming retransmission of the SUBSCRIBE.
2. Retransmitting the NOTIFY until receiving its response.
The problem is that once I send the NOTIFY with retrans="500", SIPP stops
handling the retransmission of the SUBSCIRIBE, considering it an unexpected
message.
I've tried adding an optional recv for the SUBSCRIBE after the NOTIFY, but
it doesn't executes the jump (using "next") while retransmitting the NOTIFY.
When setting retrans="0" for the NOTIFY, my demand 1 is achieved, but
demand 2 is not addressed.
Is there a way to achieve both?
This is the script I'm using:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<scenario name="UAS">
<recv request="SUBSCRIBE">
<action>
<ereg regexp="sip:[^\>]*" search_in="hdr" header="Contact:"
check_it="true" assign_to="orig_contact" />
<ereg regexp=".*" search_in="hdr" header="To:" check_it="true"
assign_to="orig_to" />
<ereg regexp=".*" search_in="hdr" header="From:" check_it="true"
assign_to="orig_from" />
</action>
</recv>
<send>
<![CDATA[
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
Expires: 190
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
Content-Length: [len]
]]>
</send>
<send retrans="500" start_txn="notify1">
<![CDATA[
NOTIFY [$orig_contact] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: [$orig_to];tag=[call_number]
To: [$orig_from]
[last_Call-ID:]
CSeq: [cseq] NOTIFY
Max-Forwards: 70
Subject: Performance Test
Event: telephone-event;duration=300
Subscription-State: Active;expires=190
Content-Type: application/dtmf-relay
Content-Length: [len]
]]>
</send>
<recv response="200" response_txn="notify1">
</recv>
<pause milliseconds="1000"/>
</scenario>
Thanks,
Yehoshua
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users