Ignore:
Timestamp:
Sep 4, 2013 10:07:45 AM (11 years ago)
Author:
ming
Message:

Closed #1696: IP change detection (Contact rewrite method) based on REGISTER final response

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/tests/pjsua/scripts-sipp/uas-register-ip-change.xml

    r4547 r4586  
    88  <send> 
    99    <![CDATA[ 
     10      SIP/2.0 100 Trying 
     11      [last_Via:];received=1.1.1.1;rport=1111 
     12      [last_From:] 
     13      [last_To:];tag=[call_number] 
     14      [last_Call-ID:] 
     15      [last_CSeq:] 
     16      WWW-Authenticate: digest realm="test" 
     17      Content-Length: 0 
     18    ]]> 
     19  </send> 
     20 
     21  <pause milliseconds="2000"/> 
     22 
     23  <send> 
     24    <![CDATA[ 
    1025      SIP/2.0 401 Unauthorized 
    11       [last_Via:];received=1.1.1.1;rport=1111 
     26      [last_Via:];received=2.2.2.2;rport=2222 
    1227      [last_From:] 
    1328      [last_To:];tag=[call_number] 
     
    2439  <send> 
    2540    <![CDATA[ 
     41      SIP/2.0 401 Unauthorized again 
     42      [last_Via:];received=3.3.3.3;rport=3333 
     43      [last_From:] 
     44      [last_To:];tag=[call_number] 
     45      [last_Call-ID:] 
     46      [last_CSeq:] 
     47      [last_Contact:] 
     48      WWW-Authenticate: digest realm="test", stale=true 
     49      Content-Length: 0 
     50    ]]> 
     51  </send> 
     52 
     53 
     54  <recv request="REGISTER" crlf="true"> 
     55  </recv> 
     56 
     57  <send> 
     58    <![CDATA[ 
    2659      SIP/2.0 200 OK 
    27       [last_Via:];received=1.1.1.1;rport=1111 
     60      [last_Via:];received=4.4.4.4;rport=4444 
    2861      [last_From:] 
    2962      [last_To:];tag=[call_number] 
     
    3568  </send> 
    3669 
    37   <!-- REREGISTER --> 
     70  <!-- IP CHANGE FOR 200/OK --> 
     71 
     72  <recv request="REGISTER" crlf="true"> 
     73  </recv> 
     74 
     75  <send> 
     76    <![CDATA[ 
     77      SIP/2.0 401 Unauthorized 
     78      [last_Via:];received=5.5.5.5;rport=5555 
     79      [last_From:] 
     80      [last_To:];tag=[call_number] 
     81      [last_Call-ID:] 
     82      [last_CSeq:] 
     83      [last_Contact:] 
     84      WWW-Authenticate: digest realm="test" 
     85      Content-Length: 0 
     86    ]]> 
     87  </send> 
     88 
     89  <recv request="REGISTER" crlf="true"> 
     90  </recv> 
     91 
     92  <send> 
     93    <![CDATA[ 
     94      SIP/2.0 401 Nasty Unauthorized 
     95      [last_Via:];received=6.6.6.6;rport=6666 
     96      [last_From:] 
     97      [last_To:];tag=[call_number] 
     98      [last_Call-ID:] 
     99      [last_CSeq:] 
     100      [last_Contact:] 
     101      WWW-Authenticate: digest realm="test", stale=true 
     102      Content-Length: 0 
     103    ]]> 
     104  </send> 
     105 
    38106  <recv request="REGISTER" crlf="true"> 
    39107  </recv> 
     
    42110    <![CDATA[ 
    43111      SIP/2.0 200 OK 
    44       [last_Via:];received=1.1.1.1;rport=1111 
     112      [last_Via:];received=8.8.8.8;rport=8888 
    45113      [last_From:] 
    46114      [last_To:];tag=[call_number] 
     
    48116      [last_CSeq:] 
    49117      [last_Contact:] 
    50       Subject: Reregister due to IP change, this has two Contacts 
    51118      Content-Length: 0 
    52119    ]]> 
    53120  </send> 
    54121 
    55  
    56   <!-- REFRESH, GOT IP CHANGE AGAIN --> 
    57122  <recv request="REGISTER" crlf="true"> 
    58123  </recv> 
     
    61126    <![CDATA[ 
    62127      SIP/2.0 200 OK 
    63       [last_Via:];received=2.2.2.2;rport=2222 
     128      [last_Via:];received=8.8.8.8;rport=8888 
    64129      [last_From:] 
    65130      [last_To:];tag=[call_number] 
     
    67132      [last_CSeq:] 
    68133      [last_Contact:] 
    69       Subject: Refresh, got IP change again 
    70       Content-Length: 0 
    71     ]]> 
    72   </send> 
    73  
    74  
    75   <!-- REREGISTER --> 
    76   <recv request="REGISTER" crlf="true"> 
    77   </recv> 
    78  
    79   <send> 
    80     <![CDATA[ 
    81       SIP/2.0 200 OK 
    82       [last_Via:];received=2.2.2.2;rport=2222 
    83       [last_From:] 
    84       [last_To:];tag=[call_number] 
    85       [last_Call-ID:] 
    86       [last_CSeq:] 
    87       [last_Contact:] 
    88       Subject: Reregister due to IP change to 2.2.2.2, this has two Contacts 
    89       Content-Length: 0 
    90     ]]> 
    91   </send> 
    92  
    93  
    94   <!-- WHATEVER --> 
    95   <recv request="REGISTER" crlf="true"> 
    96   </recv> 
    97  
    98   <send> 
    99     <![CDATA[ 
    100       SIP/2.0 200 OK 
    101       [last_Via:];received=2.2.2.2;rport=2222 
    102       [last_From:] 
    103       [last_To:];tag=[call_number] 
    104       [last_Call-ID:] 
    105       [last_CSeq:] 
    106       [last_Contact:] 
    107       Subject: Whatever 1 
    108       Content-Length: 0 
    109     ]]> 
    110   </send> 
    111  
    112   <!-- WHATEVER --> 
    113   <recv request="REGISTER" crlf="true"> 
    114   </recv> 
    115  
    116   <send> 
    117     <![CDATA[ 
    118       SIP/2.0 200 OK 
    119       [last_Via:];received=2.2.2.2;rport=2222 
    120       [last_From:] 
    121       [last_To:];tag=[call_number] 
    122       [last_Call-ID:] 
    123       [last_CSeq:] 
    124       [last_Contact:] 
    125       Subject: Whatever 2 
    126134      Content-Length: 0 
    127135    ]]> 
Note: See TracChangeset for help on using the changeset viewer.