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="Strict route test">
|
| 23 | <recv request="INVITE" crlf="true">
|
| 24 | </recv>
|
| 25 |
|
| 26 | <send>
|
| 27 | <![CDATA[
|
| 28 |
|
| 29 | SIP/2.0 100 Trying
|
| 30 | [last_Via:]
|
| 31 | [last_From:]
|
| 32 | [last_To:];tag=[call_number]
|
| 33 | [last_Call-ID:]
|
| 34 | [last_CSeq:]
|
| 35 | ]]>
|
| 36 | </send>
|
| 37 |
|
| 38 | <send retrans="500">
|
| 39 | <![CDATA[
|
| 40 |
|
| 41 | SIP/2.0 407 Proxy Authenticate
|
| 42 | [last_Via:]
|
| 43 | [last_From:]
|
| 44 | [last_To:];tag=[call_number]
|
| 45 | [last_Call-ID:]
|
| 46 | [last_CSeq:]
|
| 47 | Proxy-Authenticate: DIGEST realm="test", nonce="12345", algorithm=MD5
|
| 48 | ]]>
|
| 49 | </send>
|
| 50 |
|
| 51 | <recv request="ACK"
|
| 52 | optional="false"
|
| 53 | rtd="true"
|
| 54 | crlf="true">
|
| 55 | </recv>
|
| 56 |
|
| 57 | <recv request="INVITE" crlf="true">
|
| 58 | </recv>
|
| 59 |
|
| 60 | <send>
|
| 61 | <![CDATA[
|
| 62 | SIP/2.0 100 Trying
|
| 63 | [last_Via:]
|
| 64 | [last_From:]
|
| 65 | [last_To:];tag=[call_number]
|
| 66 | [last_Call-ID:]
|
| 67 | [last_CSeq:]
|
| 68 | ]]>
|
| 69 | </send>
|
| 70 |
|
| 71 | <send>
|
| 72 | <![CDATA[
|
| 73 | SIP/2.0 180 Ringing
|
| 74 | [last_Via:]
|
| 75 | [last_From:]
|
| 76 | [last_To:];tag=[call_number]
|
| 77 | [last_Call-ID:]
|
| 78 | [last_CSeq:]
|
| 79 | ]]>
|
| 80 | </send>
|
| 81 |
|
| 82 | <send>
|
| 83 | <![CDATA[
|
| 84 |
|
| 85 | SIP/2.0 183 progress
|
| 86 | [last_Via:]
|
| 87 | [last_From:]
|
| 88 | [last_To:];tag=[call_number]
|
| 89 | [last_Call-ID:]
|
| 90 | [last_CSeq:]
|
| 91 | Contact: <sip:target@[local_ip]>
|
| 92 | Record-route: <sip:proxy@[local_ip]:[local_port]>
|
| 93 | Content-Type: application/sdp
|
| 94 |
|
| 95 | v=0
|
| 96 | o=- 3442013205 3442013205 IN IP4 [local_ip]
|
| 97 | s=pjsip
|
| 98 | c=IN IP4 [local_ip]
|
| 99 | t=0 0
|
| 100 | m=audio 4002 RTP/AVP 0
|
| 101 | a=rtpmap:0 PCMU/8000
|
| 102 | ]]>
|
| 103 | </send>
|
| 104 |
|
| 105 | <send retrans="500">
|
| 106 | <![CDATA[
|
| 107 |
|
| 108 | SIP/2.0 200 OK
|
| 109 | [last_Via:]
|
| 110 | [last_From:]
|
| 111 | [last_To:];tag=[call_number]
|
| 112 | [last_Call-ID:]
|
| 113 | [last_CSeq:]
|
| 114 | Contact: <sip:target@[local_ip]>
|
| 115 | Record-route: <sip:proxy@[local_ip]:[local_port];maddr=[local_ip]>
|
| 116 | Content-Type: application/sdp
|
| 117 |
|
| 118 | v=0
|
| 119 | o=- 3442013205 3442013205 IN IP4 [local_ip]
|
| 120 | s=pjsip
|
| 121 | c=IN IP4 [local_ip]
|
| 122 | t=0 0
|
| 123 | m=audio 4002 RTP/AVP 0
|
| 124 | a=rtpmap:0 PCMU/8000
|
| 125 | ]]>
|
| 126 | </send>
|
| 127 |
|
| 128 | <recv request="ACK"
|
| 129 | optional="false"
|
| 130 | rtd="true"
|
| 131 | crlf="true">
|
| 132 | </recv>
|
| 133 |
|
| 134 | <recv request="BYE" crlf="true">
|
| 135 | </recv>
|
| 136 |
|
| 137 | <send>
|
| 138 | <![CDATA[
|
| 139 | SIP/2.0 200 OK
|
| 140 | [last_Via:]
|
| 141 | [last_From:]
|
| 142 | [last_To:];tag=[call_number]
|
| 143 | [last_Call-ID:]
|
| 144 | [last_CSeq:]
|
| 145 | ]]>
|
| 146 | </send>
|
| 147 |
|
| 148 |
|
| 149 | <!-- Keep the call open for a while in case the 200 is lost to be -->
|
| 150 | <!-- able to retransmit it if we receive the BYE again. -->
|
| 151 | <pause milliseconds="1000"/>
|
| 152 |
|
| 153 |
|
| 154 | <!-- definition of the response time repartition table (unit is ms) -->
|
| 155 | <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
|
| 156 |
|
| 157 | <!-- definition of the call length repartition table (unit is ms) -->
|
| 158 | <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
|
| 159 |
|
| 160 | </scenario>
|
| 161 |
|