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