| 1 |
<?xml version="1.0" encoding="ISO-8859-1" ?> |
| 2 |
<!DOCTYPE scenario SYSTEM "sipp.dtd"> |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
<scenario name="SUBSCRIBE tests"> |
| 21 |
|
| 22 |
<recv request="SUBSCRIBE" crlf="true"> |
| 23 |
<action> |
| 24 |
<ereg regexp=".*" search_in="hdr" header="From" assign_to="3"/> |
| 25 |
<ereg regexp="sip:(.*)>" search_in="hdr" header="Contact" assign_to="4,5"/> |
| 26 |
<assign assign_to="4" variable="5" /> |
| 27 |
</action> |
| 28 |
</recv> |
| 29 |
|
| 30 |
<send> |
| 31 |
<![CDATA[ |
| 32 |
|
| 33 |
SIP/2.0 200 OK |
| 34 |
[last_Via:] |
| 35 |
[last_From:] |
| 36 |
[last_To:];tag=[call_number] |
| 37 |
[last_Call-ID:] |
| 38 |
[last_CSeq:] |
| 39 |
Contact: <sip:sipp@[local_ip]:[local_port]> |
| 40 |
Content-Length: 0 |
| 41 |
Expires: 60 |
| 42 |
]]> |
| 43 |
</send> |
| 44 |
|
| 45 |
<send retrans="500"> |
| 46 |
<![CDATA[ |
| 47 |
NOTIFY sip:[$5] SIP/2.0 |
| 48 |
Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=z9hG4bKPj01 |
| 49 |
From: sipp <sip:sipp@[local_ip]>;tag=[call_number] |
| 50 |
To[$3] |
| 51 |
Call-ID: [call_id] |
| 52 |
Cseq: 1 NOTIFY |
| 53 |
Contact: sip:sipp@[local_ip]:[local_port] |
| 54 |
Max-Forwards: 70 |
| 55 |
Event: presence |
| 56 |
Subscription-State: active;expires=10 |
| 57 |
Content-Type: application/pidf+xml |
| 58 |
|
| 59 |
<?xml version="1.0" encoding="UTF-8"?> |
| 60 |
<presence xmlns="urn:ietf:params:xml:ns:pidf" xmlns:op="urn:oma:xml:prs:pidf:oma-pres" entity="sip:[email protected]"> |
| 61 |
<tuple id="17415d5738f332a64a2f1d8cfb4ab0a5"> |
| 62 |
<status> |
| 63 |
<basic>open</basic> |
| 64 |
</status> |
| 65 |
</tuple> |
| 66 |
</presence> |
| 67 |
]]> |
| 68 |
</send> |
| 69 |
|
| 70 |
<recv response="200"> |
| 71 |
</recv> |
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
<recv request="SUBSCRIBE" crlf="true"> |
| 83 |
</recv> |
| 84 |
|
| 85 |
<send> |
| 86 |
<![CDATA[ |
| 87 |
|
| 88 |
SIP/2.0 481 You should resubscribe mow |
| 89 |
[last_Via:] |
| 90 |
[last_From:] |
| 91 |
[last_To:];tag=[call_number] |
| 92 |
[last_Call-ID:] |
| 93 |
[last_CSeq:] |
| 94 |
Contact: <sip:sipp@[local_ip]:[local_port]> |
| 95 |
Content-Length: 0 |
| 96 |
]]> |
| 97 |
</send> |
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/> |
| 104 |
|
| 105 |
|
| 106 |
<CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/> |
| 107 |
|
| 108 |
</scenario> |
| 109 |
|