Alexandre Lision | 8af73cb | 2013-12-10 14:11:20 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="ISO-8859-1" ?> |
| 2 | <!DOCTYPE scenario SYSTEM "sipp.dtd"> |
| 3 | |
| 4 | <!-- This program is free software; you can redistribute it and/or --> |
| 5 | <!-- modify it under the terms of the GNU General Public License as --> |
| 6 | <!-- published by the Free Software Foundation; either version 2 of the --> |
| 7 | <!-- License, or (at your option) any later version. --> |
| 8 | <!-- --> |
| 9 | <!-- This program is distributed in the hope that it will be useful, --> |
| 10 | <!-- but WITHOUT ANY WARRANTY; without even the implied warranty of --> |
| 11 | <!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --> |
| 12 | <!-- GNU General Public License for more details. --> |
| 13 | <!-- --> |
| 14 | <!-- You should have received a copy of the GNU General Public License --> |
| 15 | <!-- along with this program; if not, write to the --> |
| 16 | <!-- Free Software Foundation, Inc., --> |
| 17 | <!-- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --> |
| 18 | <!-- --> |
| 19 | <!-- Sipp default 'uas' scenario. --> |
| 20 | <!-- --> |
| 21 | |
| 22 | <scenario name="UAS answer multiple formats in early media, UAS supports UPDATE method"> |
| 23 | <!-- By adding rrs="true" (Record Route Sets), the route sets --> |
| 24 | <!-- are saved and used for following messages sent. Useful to test --> |
| 25 | <!-- against stateful SIP proxies/B2BUAs. --> |
| 26 | <recv request="INVITE" crlf="true"> |
| 27 | <action> |
| 28 | <ereg regexp=".*" search_in="hdr" header="From" assign_to="3"/> |
| 29 | <ereg regexp="sip:(.*)>" search_in="hdr" header="Contact" assign_to="4,5"/> |
| 30 | <assign assign_to="4" variable="5" /> |
| 31 | <ereg regexp=".*" search_in="hdr" header="Via" assign_to="6"/> |
| 32 | <ereg regexp=".*" search_in="hdr" header="CSeq" assign_to="7"/> |
| 33 | </action> |
| 34 | </recv> |
| 35 | |
| 36 | <!-- The '[last_*]' keyword is replaced automatically by the --> |
| 37 | <!-- specified header if it was present in the last message received --> |
| 38 | <!-- (except if it was a retransmission). If the header was not --> |
| 39 | <!-- present or if no message has been received, the '[last_*]' --> |
| 40 | <!-- keyword is discarded, and all bytes until the end of the line --> |
| 41 | <!-- are also discarded. --> |
| 42 | <!-- --> |
| 43 | <!-- If the specified header was present several times in the --> |
| 44 | <!-- message, all occurences are concatenated (CRLF seperated) --> |
| 45 | <!-- to be used in place of the '[last_*]' keyword. --> |
| 46 | |
| 47 | <send> |
| 48 | <![CDATA[ |
| 49 | |
| 50 | SIP/2.0 180 Ringing |
| 51 | [last_Via:] |
| 52 | [last_From:] |
| 53 | [last_To:];tag=[call_number] |
| 54 | [last_Call-ID:] |
| 55 | [last_CSeq:] |
| 56 | Contact: sip:sipp@[local_ip]:[local_port] |
| 57 | Content-Type: application/sdp |
| 58 | Content-Length: [len] |
| 59 | Allow: INVITE, UPDATE, ACK, BYE |
| 60 | |
| 61 | v=0 |
| 62 | o=- 3441953879 3441953879 IN IP4 192.168.0.15 |
| 63 | s=pjmedia |
| 64 | c=IN IP4 192.168.0.15 |
| 65 | t=0 0 |
| 66 | m=audio 4004 RTP/AVP 0 8 3 111 |
| 67 | a=rtpmap:0 PCMU/8000 |
| 68 | a=rtpmap:8 PCMA/8000 |
| 69 | a=rtpmap:3 GSM/8000 |
| 70 | a=rtpmap:111 telephone-event/8000 |
| 71 | a=fmtp:111 0-15 |
| 72 | |
| 73 | ]]> |
| 74 | </send> |
| 75 | |
| 76 | |
| 77 | |
| 78 | <recv request="UPDATE" crlf="true"> |
| 79 | </recv> |
| 80 | |
| 81 | <send> |
| 82 | <![CDATA[ |
| 83 | |
| 84 | SIP/2.0 200 OK |
| 85 | [last_Via:] |
| 86 | [last_From:] |
| 87 | [last_To:];tag=[call_number] |
| 88 | [last_Call-ID:] |
| 89 | [last_CSeq:] |
| 90 | Contact: sip:sipp@[local_ip]:[local_port] |
| 91 | Content-Type: application/sdp |
| 92 | Content-Length: [len] |
| 93 | Allow: INVITE, UPDATE, ACK, BYE |
| 94 | |
| 95 | v=0 |
| 96 | o=- 3441953879 3441953879 IN IP4 192.168.0.15 |
| 97 | s=pjmedia |
| 98 | c=IN IP4 192.168.0.15 |
| 99 | t=0 0 |
| 100 | m=audio 4004 RTP/AVP 0 111 |
| 101 | a=rtpmap:0 PCMU/8000 |
| 102 | a=rtpmap:111 telephone-event/8000 |
| 103 | a=fmtp:111 0-15 |
| 104 | |
| 105 | ]]> |
| 106 | </send> |
| 107 | |
| 108 | <pause milliseconds="2000"/> |
| 109 | |
| 110 | <send retrans="500"> |
| 111 | <![CDATA[ |
| 112 | |
| 113 | SIP/2.0 200 OK |
| 114 | Via[$6] |
| 115 | [last_From:] |
| 116 | [last_To:];tag=[call_number] |
| 117 | [last_Call-ID:] |
| 118 | CSeq[$7] |
| 119 | Contact: sip:sipp@[local_ip]:[local_port] |
| 120 | Content-Type: application/sdp |
| 121 | Content-Length: [len] |
| 122 | Allow: INVITE, UPDATE, ACK, BYE |
| 123 | |
| 124 | v=0 |
| 125 | o=- 3441953879 3441953879 IN IP4 192.168.0.15 |
| 126 | s=pjmedia |
| 127 | c=IN IP4 192.168.0.15 |
| 128 | t=0 0 |
| 129 | m=audio 4004 RTP/AVP 0 111 |
| 130 | a=rtpmap:0 PCMU/8000 |
| 131 | a=rtpmap:111 telephone-event/8000 |
| 132 | a=fmtp:111 0-15 |
| 133 | |
| 134 | ]]> |
| 135 | </send> |
| 136 | |
| 137 | <recv request="ACK" crlf="true"> |
| 138 | </recv> |
| 139 | |
| 140 | <pause milliseconds="2000"/> |
| 141 | |
| 142 | <send retrans="500"> |
| 143 | <![CDATA[ |
| 144 | |
| 145 | BYE sip:[$5] SIP/2.0 |
| 146 | Via: SIP/2.0/[transport] [local_ip]:[local_port] |
| 147 | From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number] |
| 148 | To[$3] |
| 149 | Call-ID: [call_id] |
| 150 | Cseq: 1 BYE |
| 151 | Contact: sip:sipp@[local_ip]:[local_port] |
| 152 | Max-Forwards: 70 |
| 153 | Content-Length: 0 |
| 154 | |
| 155 | ]]> |
| 156 | </send> |
| 157 | |
| 158 | <recv response="200"> |
| 159 | </recv> |
| 160 | |
| 161 | <!-- definition of the response time repartition table (unit is ms) --> |
| 162 | <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/> |
| 163 | |
| 164 | <!-- definition of the call length repartition table (unit is ms) --> |
| 165 | <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/> |
| 166 | |
| 167 | </scenario> |
| 168 | |