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 'branchs' scenario. --> 20:<!-- --> 21: 22:<scenario name="branch_server"> 23: <recv request="REGISTER"> 24: </recv> 25: 26: <send> 27: <![CDATA[ 28: 29: SIP/2.0 200 OK 30: [last_Via:] 31: [last_From:] 32: [last_To:];tag=[call_number] 33: [last_Call-ID:] 34: [last_CSeq:] 35: Contact: <sip:[local_ip]:[local_port];transport=[transport]> 36: Content-Length: 0 37: Expires: 300 38: 39: ]]> 40: </send> 41: 42: <!-- Set variable 3 if the ua is of the form ua2... --> 43: <recv request="INVITE" crlf="true"> 44: <action> 45: <ereg regexp="ua2" 46: search_in="hdr" 47: header="From: " 48: assign_to="3"/> 49: </action> 50: </recv> 51: 52: <!-- send 180 then trying if variable 3 is set --> 53: <send next="1" test="3"> 54: <![CDATA[ 55: 56: SIP/2.0 180 Ringing 57: [last_Via:] 58: [last_From:] 59: [last_To:];tag=[call_number] 60: [last_Call-ID:] 61: [last_CSeq:] 62: Contact: <sip:[local_ip]:[local_port];transport=[transport]> 63: Content-Length: 0 64: 65: ]]> 66: </send> 67: 68: <!-- if not, send a 403 error then skip to wait for a BYE --> 69: <send next="2"> 70: <![CDATA[ 71: 72: SIP/2.0 403 Error 73: [last_Via:] 74: [last_From:] 75: [last_To:];tag=[call_number] 76: [last_Call-ID:] 77: [last_CSeq:] 78: Contact: <sip:[local_ip]:[local_port];transport=[transport]> 79: Content-Length: 0 80: 81: ]]> 82: </send> 83: 84: <label id="1"/> 85: 86: <send> 87: <![CDATA[ 88: 89: SIP/2.0 100 Trying 90: [last_Via:] 91: [last_From:] 92: [last_To:];tag=[call_number] 93: [last_Call-ID:] 94: [last_CSeq:] 95: Contact: <sip:[local_ip]:[local_port];transport=[transport]> 96: Content-Length: 0 97: 98: ]]> 99: </send> 100: 101: <send retrans="500"> 102: <![CDATA[ 103: 104: SIP/2.0 200 OK 105: [last_Via:] 106: [last_From:] 107: [last_To:];tag=[call_number] 108: [last_Call-ID:] 109: [last_CSeq:] 110: Contact: <sip:[local_ip]:[local_port];transport=[transport]> 111: Content-Type: application/sdp 112: Content-Length: 136 113: 114: v=0 115: o=user1 53655765 2353687637 IN IP4 127.0.0.1 116: s=- 117: t=0 0 118: c=IN IP4 [media_ip] 119: m=audio [media_port] RTP/AVP 0 120: a=rtpmap:0 PCMU/8000 121: 122: ]]> 123: </send> 124: 125: <recv request="ACK" 126: optional="true" 127: rtd="true" 128: crlf="true"> 129: </recv> 130: 131: <label id="2"/> 132: 133: <recv request="BYE"> 134: </recv> 135: 136: <send> 137: <![CDATA[ 138: 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: Contact: <sip:[local_ip]:[local_port];transport=[transport]> 146: Content-Length: 0 147: 148: ]]> 149: </send> 150: 151: <!-- Keep the call open for a while in case the 200 is lost to be --> 152: <!-- able to retransmit it if we receive the BYE again. --> 153: <pause milliseconds="4000"/> 154: 155: <!-- Definition of the response time repartition table (unit is ms) --> 156: <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/> 157: 158: <!-- Definition of the call length repartition table (unit is ms) --> 159: <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/> 160: 161:</scenario> 162: