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 'branchc' scenario. --> 20:<!-- --> 21: 22:<scenario name="branch_client"> 23: <send retrans="500"> 24: <![CDATA[ 25: 26: REGISTER sip:CA.cym.com SIP/2.0 27: Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] 28: From: ua1 <sip:ua1@nnl.cym:[local_port]>;tag=[call_number] 29: To: ua1 <sip:ua1@nnl.cym:[local_port]> 30: Call-ID: [call_id] 31: CSeq: 1 REGISTER 32: Contact: sip:ua1@[local_ip]:[local_port] 33: Content-Length: 0 34: Expires: 300 35: 36: ]]> 37: </send> 38: 39: <!-- simple case - just jump over a line --> 40: <recv response="200" rtd="true" next="5"> 41: </recv> 42: 43: <recv response="200"> 44: </recv> 45: 46: <label id="5"/> 47: 48: <send retrans="500"> 49: <![CDATA[ 50: 51: INVITE sip:ua2@CA.cym.com SIP/2.0 52: Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] 53: From: ua[call_number] <sip:ua1@nnl.cym:[local_port]>;tag=[call_number] 54: To: ua2 <sip:ua2@nnl.cym:[remote_port]> 55: Call-ID: [call_id] 56: CSeq: 1 INVITE 57: Contact: sip:ua1@[local_ip]:[local_port] 58: Max-Forwards: 70 59: Subject: Performance Test 60: Content-Type: application/sdp 61: Content-Length: [len] 62: 63: v=0 64: o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip] 65: s=- 66: c=IN IP[media_ip_type] [media_ip] 67: t=0 0 68: m=audio [media_port] RTP/AVP 0 69: a=rtpmap:0 PCMU/8000 70: 71: ]]> 72: </send> 73: 74: <recv response="100" optional="true"> 75: </recv> 76: 77: <recv response="180" optional="true"> 78: </recv> 79: 80: <!-- Do something different on an optional receive --> 81: <recv response="403" optional="true" next="1"> 82: </recv> 83: 84: <recv response="200"> 85: <action> 86: <ereg regexp="ua25" 87: search_in="hdr" 88: header="From: " 89: assign_to="8"/> 90: </action> 91: </recv> 92: 93: <!-- set variable 8 above on 25th call, send the ACK but skip the pause for it --> 94: <send next="1" test="8"> 95: <![CDATA[ 96: 97: ACK sip:ua2@CA.cym.com SIP/2.0 98: Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] 99: From: ua1 <sip:ua1@nnl.cym:[local_port]>;tag=[call_number] 100: To: ua2 <sip:ua2@nnl.cym:[remote_port]>[peer_tag_param] 101: Call-ID: [call_id] 102: CSeq: 1 ACK 103: Contact: sip:ua1@[local_ip]:[local_port] 104: Max-Forwards: 70 105: Subject: Performance Test 106: Content-Length: 0 107: 108: ]]> 109: </send> 110: 111: <pause milliseconds="5000"/> 112: 113: <label id="1"/> 114: 115: <send retrans="500"> 116: <![CDATA[ 117: 118: BYE sip:ua2@CA.cym.com SIP/2.0 119: Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] 120: From: ua1 <sip:ua1@nnl.cym:[local_port]>;tag=[call_number] 121: To: ua2 <sip:ua2@nnl.cym:[remote_port]>[peer_tag_param] 122: Call-ID: [call_id] 123: CSeq: 2 BYE 124: Contact: sip:ua1@[local_ip]:[local_port] 125: Max-Forwards: 70 126: Subject: Performance Test 127: Content-Length: 0 128: 129: ]]> 130: </send> 131: 132: <recv response="200" crlf="true"> 133: </recv> 134: 135: <pause milliseconds="4000"/> 136: 137: <!-- definition of the response time repartition table (unit is ms) --> 138: <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/> 139: 140: <!-- definition of the call length repartition table (unit is ms) --> 141: <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/> 142: 143:</scenario> 144: