Revision: 7395
Author: lbbbarreiro
Date: Fri Aug 7 12:44:30 2009
Log: update sipp scripts
http://code.google.com/p/mobicents/source/detail?r=7395
Modified:
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/performance/proxy-scenario/performance-proxy-uac.xml
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/performance/proxy-scenario/performance-proxy-uas.xml
=======================================
---
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/performance/proxy-scenario/performance-proxy-uac.xml
Tue Nov 25 15:05:37 2008
+++
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/performance/proxy-scenario/performance-proxy-uac.xml
Fri Aug 7 12:44:30 2009
@@ -1,28 +1,12 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
-<!-- This program is free software; you can redistribute it and/or -->
-<!-- modify it under the terms of the GNU General Public License as -->
-<!-- published by the Free Software Foundation; either version 2 of the -->
-<!-- License, or (at your option) any later version. -->
-<!-- -->
-<!-- This program is distributed in the hope that it will be useful, -->
-<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
-<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
-<!-- GNU General Public License for more details. -->
-<!-- -->
-<!-- You should have received a copy of the GNU General Public License -->
-<!-- along with this program; if not, write to the -->
-<!-- Free Software Foundation, Inc., -->
-<!-- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -->
-<!-- -->
-<!-- Sipp default 'uac' scenario. -->
-<!-- -->
-<scenario name="Basic Sipstone UAC">
- <!-- In client mode (sipp placing calls), the Call-ID MUST be -->
- <!-- generated by sipp. To do so, use [call_id] keyword.
-->
- <send retrans="500">
- <![CDATA[
-
+
+<!-- Luis Barreiro - Mobicents QA team -->
+
+<scenario name="Proxy UAC">
+
+ <send retrans="1000">
+ <![CDATA[
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: "Barreiro"
<sip:[email protected]>;tag=[call_number][pid]
@@ -42,7 +26,6 @@
t=0 0
m=audio [media_port] RTP/AVP 0
a=rtpmap:0 PCMU/8000
-
]]>
</send>
@@ -52,20 +35,17 @@
<recv response="180" optional="true">
</recv>
- <!-- By adding rrs="true" (Record Route Sets), the route sets -->
- <!-- are saved and used for following messages sent. Useful to test -->
- <!-- against stateful SIP proxies/B2BUAs. -->
<recv response="200" rtd="true" rrs="true">
+ <action>
+ <ereg regexp="\<([a-za-z...@.=;]+)[^>]+" search_in="hdr"
header="Contact:" assign_to="1"/>
+ </action>
</recv>
<pause milliseconds="300"/>
- <!-- Packet lost can be simulated in any send/recv message by -->
- <!-- by adding the 'lost = "10"'. Value can be [1-100] percent. -->
<send>
<![CDATA[
-
- ACK sip:[email protected]:5090 SIP/2.0
+ ACK [$1] SIP/2.0
[last_Via:]
[last_From:]
[last_To:]
@@ -76,7 +56,6 @@
Max-Forwards: 70
Subject: Test
Content-Length: 0
-
]]>
</send>
=======================================
---
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/performance/proxy-scenario/performance-proxy-uas.xml
Mon Jul 6 08:30:44 2009
+++
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/performance/proxy-scenario/performance-proxy-uas.xml
Fri Aug 7 12:44:30 2009
@@ -3,13 +3,12 @@
<!-- Luis Barreiro - Mobicents QA team -->
-<scenario name="UAC for SIP-Servlets Tests - call-forwarding-b">
+<scenario name="Proxy UAS">
<recv request="INVITE" rrs="true" timeout="5000"/>
<send>
<![CDATA[
-
SIP/2.0 180 Ringing
[last_Via:]
[last_From:]
@@ -19,15 +18,13 @@
[last_Record-Route:]
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
Content-Length: 0
-
- ]]>
+ ]]>
</send>
<pause milliseconds="300"/>
<send retrans="500">
<![CDATA[
-
SIP/2.0 200 OK
[last_Via:]
[last_From:]
@@ -46,14 +43,14 @@
t=0 0
m=audio [media_port] RTP/AVP 0
a=rtpmap:0 PCMU/8000
-
]]>
</send>
- <recv request="ACK" >
+ <recv request="ACK" >
<action>
<ereg regexp=".*" search_in="hdr" header="From:" check_it="true"
assign_to="1" />
<ereg regexp=".*" search_in="hdr" header="To:" check_it="true"
assign_to="2" />
+ <ereg regexp="\<([a-za-z...@.=;]+)[^>]+" search_in="hdr"
header="Contact:" assign_to="3"/>
</action>
</recv>
@@ -61,9 +58,8 @@
<send retrans="500">
<![CDATA[
-
- BYE sip:[email protected]:5055 SIP/2.0
- Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+ BYE [$3] SIP/2.0
+ Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: [$2]
To: [$1]
[last_Call-ID:]
@@ -73,11 +69,9 @@
Max-Forwards: 70
Subject: Test
Content-Length: 0
-
]]>
</send>
-
<recv response="200" optional="false"/>
</scenario>