summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2013-09-04 10:07:45 +0000
committerLiong Sauw Ming <ming@teluu.com>2013-09-04 10:07:45 +0000
commit387149bb4509fa04c19f71e7bfad587a6c9fc843 (patch)
treecd79753bfc6b686453f354e4f9c4161beed2ce04 /tests
parentef6704f279e8a331a8783f067bec99718940c83a (diff)
Closed #1696: IP change detection (Contact rewrite method) based on REGISTER final response
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4586 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'tests')
-rw-r--r--tests/pjsua/scripts-sipp/uas-register-ip-change.xml52
1 files changed, 30 insertions, 22 deletions
diff --git a/tests/pjsua/scripts-sipp/uas-register-ip-change.xml b/tests/pjsua/scripts-sipp/uas-register-ip-change.xml
index c663c747..2c984bed 100644
--- a/tests/pjsua/scripts-sipp/uas-register-ip-change.xml
+++ b/tests/pjsua/scripts-sipp/uas-register-ip-change.xml
@@ -7,7 +7,7 @@
<send>
<![CDATA[
- SIP/2.0 401 Unauthorized
+ SIP/2.0 100 Trying
[last_Via:];received=1.1.1.1;rport=1111
[last_From:]
[last_To:];tag=[call_number]
@@ -18,111 +18,119 @@
]]>
</send>
+ <pause milliseconds="2000"/>
+
+ <send>
+ <![CDATA[
+ SIP/2.0 401 Unauthorized
+ [last_Via:];received=2.2.2.2;rport=2222
+ [last_From:]
+ [last_To:];tag=[call_number]
+ [last_Call-ID:]
+ [last_CSeq:]
+ WWW-Authenticate: digest realm="test"
+ Content-Length: 0
+ ]]>
+ </send>
+
<recv request="REGISTER" crlf="true">
</recv>
<send>
<![CDATA[
- SIP/2.0 200 OK
- [last_Via:];received=1.1.1.1;rport=1111
+ SIP/2.0 401 Unauthorized again
+ [last_Via:];received=3.3.3.3;rport=3333
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
[last_Contact:]
+ WWW-Authenticate: digest realm="test", stale=true
Content-Length: 0
]]>
</send>
- <!-- REREGISTER -->
+
<recv request="REGISTER" crlf="true">
</recv>
<send>
<![CDATA[
SIP/2.0 200 OK
- [last_Via:];received=1.1.1.1;rport=1111
+ [last_Via:];received=4.4.4.4;rport=4444
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
[last_Contact:]
- Subject: Reregister due to IP change, this has two Contacts
Content-Length: 0
]]>
</send>
+ <!-- IP CHANGE FOR 200/OK -->
- <!-- REFRESH, GOT IP CHANGE AGAIN -->
<recv request="REGISTER" crlf="true">
</recv>
<send>
<![CDATA[
- SIP/2.0 200 OK
- [last_Via:];received=2.2.2.2;rport=2222
+ SIP/2.0 401 Unauthorized
+ [last_Via:];received=5.5.5.5;rport=5555
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
[last_Contact:]
- Subject: Refresh, got IP change again
+ WWW-Authenticate: digest realm="test"
Content-Length: 0
]]>
</send>
-
- <!-- REREGISTER -->
<recv request="REGISTER" crlf="true">
</recv>
<send>
<![CDATA[
- SIP/2.0 200 OK
- [last_Via:];received=2.2.2.2;rport=2222
+ SIP/2.0 401 Nasty Unauthorized
+ [last_Via:];received=6.6.6.6;rport=6666
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
[last_Contact:]
- Subject: Reregister due to IP change to 2.2.2.2, this has two Contacts
+ WWW-Authenticate: digest realm="test", stale=true
Content-Length: 0
]]>
</send>
-
- <!-- WHATEVER -->
<recv request="REGISTER" crlf="true">
</recv>
<send>
<![CDATA[
SIP/2.0 200 OK
- [last_Via:];received=2.2.2.2;rport=2222
+ [last_Via:];received=8.8.8.8;rport=8888
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
[last_Contact:]
- Subject: Whatever 1
Content-Length: 0
]]>
</send>
- <!-- WHATEVER -->
<recv request="REGISTER" crlf="true">
</recv>
<send>
<![CDATA[
SIP/2.0 200 OK
- [last_Via:];received=2.2.2.2;rport=2222
+ [last_Via:];received=8.8.8.8;rport=8888
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
[last_Contact:]
- Subject: Whatever 2
Content-Length: 0
]]>
</send>