From 7fd7e53acb9ba13ddbbc7d19053898a884bc0e3f Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Wed, 21 Oct 2009 02:37:52 +0000 Subject: More ticket #937 (presence revamping): - Added couple of SIPp scenario files to test various retry scenarios: - uas-subscribe-refresh-481.xml: client should resubscribe immediately on receiving 481 on resubscription - uas-subscribe-terminated-retry.xml: client should resubscribe upon receiving NOTIFY with some specific termination reasons - Added log message when PJSUA-LIB is resubscribing automatically due to above git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2959 74dad513-b988-da41-8d7b-12977e46ad98 --- .../scripts-sipp/uas-subscribe-refresh-481.xml | 116 ++++++++++++++++++++ .../uas-subscribe-terminated-retry.xml | 120 +++++++++++++++++++++ 2 files changed, 236 insertions(+) create mode 100644 tests/pjsua/scripts-sipp/uas-subscribe-refresh-481.xml create mode 100644 tests/pjsua/scripts-sipp/uas-subscribe-terminated-retry.xml (limited to 'tests/pjsua') diff --git a/tests/pjsua/scripts-sipp/uas-subscribe-refresh-481.xml b/tests/pjsua/scripts-sipp/uas-subscribe-refresh-481.xml new file mode 100644 index 00000000..5f116501 --- /dev/null +++ b/tests/pjsua/scripts-sipp/uas-subscribe-refresh-481.xml @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Content-Length: 0 + Expires: 60 + ]]> + + + + ;tag=[call_number] + To[$3] + Call-ID: [call_id] + Cseq: 1 NOTIFY + Contact: sip:sipp@[local_ip]:[local_port] + Max-Forwards: 70 + Event: presence + Subscription-State: active;expires=50 + Content-Type: application/pidf+xml + + + + + + open + + + + ]]> + + + + + + + + + + + + + + + + Content-Length: 0 + ]]> + + + + + + + + + + + + + diff --git a/tests/pjsua/scripts-sipp/uas-subscribe-terminated-retry.xml b/tests/pjsua/scripts-sipp/uas-subscribe-terminated-retry.xml new file mode 100644 index 00000000..4843cc37 --- /dev/null +++ b/tests/pjsua/scripts-sipp/uas-subscribe-terminated-retry.xml @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Content-Length: 0 + Expires: 60 + ]]> + + + + ;tag=[call_number] + To[$3] + Call-ID: [call_id] + Cseq: 1 NOTIFY + Contact: sip:sipp@[local_ip]:[local_port] + Max-Forwards: 70 + Event: presence + Subscription-State: active;expires=50 + Content-Type: application/pidf+xml + + + + + + open + + + + ]]> + + + + + + + + + + + + + ;tag=[call_number] + To[$3] + Call-ID: [call_id] + Cseq: 3 NOTIFY + Contact: sip:sipp@[local_ip]:[local_port] + Max-Forwards: 70 + Event: presence + Subscription-State: terminated;reason=probation;retry-after=5 + Content-Length: 0 + ]]> + + + + + + + + + + + + + + + + + -- cgit v1.2.3