| 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="Forked INVITE, one of them require PRACK"> |
| 23 |
<recv request="INVITE" crlf="true"> |
| 24 |
<action> |
| 25 |
<ereg regexp="branch=([^;]*)" |
| 26 |
search_in="hdr" |
| 27 |
header="Via:" |
| 28 |
assign_to="1,2"/> |
| 29 |
<ereg regexp=".*" |
| 30 |
search_in="hdr" |
| 31 |
header="CSeq:" |
| 32 |
assign_to="cseq" /> |
| 33 |
<ereg regexp=".*" |
| 34 |
search_in="hdr" |
| 35 |
header="To:" |
| 36 |
assign_to="to" /> |
| 37 |
<assign assign_to="1" variable="2"/> |
| 38 |
</action> |
| 39 |
</recv> |
| 40 |
|
| 41 |
<send> |
| 42 |
<![CDATA[ |
| 43 |
SIP/2.0 100 Trying |
| 44 |
[last_Via:] |
| 45 |
[last_From:] |
| 46 |
[last_To:];tag=[call_number] |
| 47 |
[last_Call-ID:] |
| 48 |
[last_CSeq:] |
| 49 |
]]> |
| 50 |
</send> |
| 51 |
|
| 52 |
|
| 53 |
<send> |
| 54 |
<![CDATA[ |
| 55 |
SIP/2.0 200 OK |
| 56 |
Via: SIP/2.0/UDP 127.0.0.1;received=127.0.0.1;rport=5080;branch=[$2] |
| 57 |
[last_From:] |
| 58 |
[last_To:];tag=UA_1 |
| 59 |
[last_Call-ID:] |
| 60 |
[last_CSeq:] |
| 61 |
Contact: <sip:UA_1@[local_ip]:[local_port]> |
| 62 |
Content-Type: application/sdp |
| 63 |
|
| 64 |
v=0 |
| 65 |
o=- 3442013205 3442013205 IN IP4 192.168.0.13 |
| 66 |
s=pjsip |
| 67 |
c=IN IP4 192.168.0.13 |
| 68 |
t=0 0 |
| 69 |
m=audio 4002 RTP/AVP 0 |
| 70 |
a=rtpmap:0 PCMU/8000 |
| 71 |
]]> |
| 72 |
</send> |
| 73 |
|
| 74 |
|
| 75 |
<recv request="ACK" optional="false"> |
| 76 |
</recv> |
| 77 |
|
| 78 |
|
| 79 |
<send> |
| 80 |
<![CDATA[ |
| 81 |
SIP/2.0 200 OK |
| 82 |
Via: SIP/2.0/UDP 127.0.0.1;received=127.0.0.1;rport=5080;branch=[$2] |
| 83 |
[last_From:] |
| 84 |
To:[$to];tag=UA_2 |
| 85 |
[last_Call-ID:] |
| 86 |
CSeq:[$cseq] |
| 87 |
Contact: <sip:UA_2@[local_ip]:[local_port]> |
| 88 |
Content-Type: application/sdp |
| 89 |
|
| 90 |
v=0 |
| 91 |
o=- 3442013205 3442013205 IN IP4 192.168.0.13 |
| 92 |
s=pjsip |
| 93 |
c=IN IP4 192.168.0.13 |
| 94 |
t=0 0 |
| 95 |
m=audio 4002 RTP/AVP 0 |
| 96 |
a=rtpmap:0 PCMU/8000 |
| 97 |
]]> |
| 98 |
</send> |
| 99 |
|
| 100 |
|
| 101 |
<recv request="ACK" optional="false"> |
| 102 |
</recv> |
| 103 |
|
| 104 |
|
| 105 |
<recv request="BYE" optional="false"> |
| 106 |
</recv> |
| 107 |
|
| 108 |
|
| 109 |
<send> |
| 110 |
<![CDATA[ |
| 111 |
SIP/2.0 200 OK |
| 112 |
[last_Via:] |
| 113 |
[last_From:] |
| 114 |
[last_To:] |
| 115 |
[last_Call-ID:] |
| 116 |
[last_CSeq:] |
| 117 |
]]> |
| 118 |
</send> |
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/> |
| 123 |
|
| 124 |
|
| 125 |
<CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/> |
| 126 |
|
| 127 |
</scenario> |
| 128 |
|