Revision: 15644
Author: [email protected]
Date: Mon Dec 6 10:10:16 2010
Log: Update Issue 1874
Adding non regression custom Proxy Early Dialog ( there is no dialog but
failing on 180 really) test case
http://code.google.com/p/mobicents/source/detail?r=15644
Added:
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/proxy/location-service-receiver-early.xml
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/proxy/location-service-sender-early.xml
Modified:
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/b2bua/call-forwarding-receiver-early.xml
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/clustering-failover-test.sh
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/prepare-jboss-5-server-for-clustering-failover.sh
=======================================
--- /dev/null
+++
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/proxy/location-service-receiver-early.xml
Mon Dec 6 10:10:16 2010
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<!-- Luis Barreiro - Mobicents QA team -->
+
+<scenario name="UAC for SIP-Servlets Tests - location-service-c">
+
+ <recv request="INVITE" rrs="true" timeout="5000"/>
+
+ <send>
+ <![CDATA[
+
+ SIP/2.0 180 Ringing
+ [last_Via:]
+ [last_From:]
+ [last_To:];tag=[call_number]
+ [last_Call-ID:]
+ [last_CSeq:]
+ [last_Record-Route:]
+ Contact: <sip:[local_ip]:[local_port];transport=[transport]>
+ Content-Length: 0
+
+ ]]>
+ </send>
+
+ <pause milliseconds="6000"/>
+
+ <send retrans="500">
+ <![CDATA[
+
+ SIP/2.0 200 OK
+ [last_Via:]
+ [last_From:]
+ [last_To:];tag=[call_number]
+ [last_Call-ID:]
+ [last_CSeq:]
+ [last_Record-Route:]
+ Contact: <sip:[local_ip]:[local_port];transport=[transport]>
+ Content-Type: application/sdp
+ Content-Length: [len]
+
+ v=0
+ o=callee 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+ s=-
+ c=IN IP[media_ip_type] [media_ip]
+ t=0 0
+ m=audio [media_port] RTP/AVP 0
+ a=rtpmap:0 PCMU/8000
+
+ ]]>
+ </send>
+
+ <recv request="ACK"/>
+
+ <recv request="BYE" timeout="30000" />
+
+ <send>
+ <![CDATA[
+
+ SIP/2.0 200 OK
+ [last_Via:]
+ [last_From:]
+ [last_To:]
+ [last_Call-ID:]
+ [last_CSeq:]
+ [last_Record-Route:]
+ Contact: sip:receiver-failo...@[local_ip]:[local_port]
+ Content-Length: 0
+
+ ]]>
+ </send>
+
+</scenario>
+
=======================================
--- /dev/null
+++
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/proxy/location-service-sender-early.xml
Mon Dec 6 10:10:16 2010
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<!-- Luis Barreiro - Mobicents QA team -->
+
+<scenario name="UAC for SIP-Servlets Tests - location-service-a">
+
+ <send retrans="1000">
+ <![CDATA[
+
+ INVITE sip:[[email protected] SIP/2.0
+ Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+ From: sipp <sip:s...@[local_ip]:[local_port]>;tag=[call_number]
+ To: sut <sip:[[email protected]>
+ Call-ID: [call_id]
+ CSeq: 1 INVITE
+ Contact: sip:s...@[local_ip]:[local_port]
+ Max-Forwards: 70
+ Subject: Clustering Test
+ Content-Type: application/sdp
+ Content-Length: [len]
+
+ v=0
+ o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+ s=-
+ c=IN IP[media_ip_type] [media_ip]
+ t=0 0
+ m=audio [media_port] RTP/AVP 0
+ a=rtpmap:0 PCMU/8000
+
+ ]]>
+ </send>
+
+ <recv response="100" optional="true" />
+
+ <recv response="180" optional="true" />
+
+ <recv response="200" rtd="true" rrs="true">
+ <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" />
+ </action>
+ </recv>
+
+ <pause milliseconds="300"/>
+
+ <send>
+ <![CDATA[
+
+ ACK [next_url] SIP/2.0
+ [last_Via:]
+ [last_From:]
+ [last_To:]
+ Call-ID: [call_id]
+ CSeq: 1 ACK
+ [routes]
+ Contact: sip:barre...@[local_ip]:[local_port]
+ Max-Forwards: 70
+ Subject: Clustering Test
+ Content-Length: 0
+
+ ]]>
+ </send>
+
+ <pause milliseconds="20000"/>
+
+ <send retrans="5000">
+ <![CDATA[
+
+ BYE [next_url] SIP/2.0
+ Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+ From : [$2]
+ To : [$1]
+ Call-ID: [call_id]
+ CSeq: 1 BYE
+ Contact: sip:s...@[local_ip]:[local_port]
+ [routes]
+ Max-Forwards: 70
+ Subject: Clustering Test
+ Content-Length: 0
+
+ ]]>
+ </send>
+
+ <recv response="200" crlf="true">
+ </recv>
+
+</scenario>
=======================================
---
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/b2bua/call-forwarding-receiver-early.xml
Thu Dec 2 08:02:51 2010
+++
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/b2bua/call-forwarding-receiver-early.xml
Mon Dec 6 10:10:16 2010
@@ -23,7 +23,7 @@
]]>
</send>
- <pause milliseconds="4000"/>
+ <pause milliseconds="6000"/>
<send retrans="500">
<![CDATA[
=======================================
---
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/clustering-failover-test.sh
Thu Dec 2 13:34:30 2010
+++
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/clustering-failover-test.sh
Mon Dec 6 10:10:16 2010
@@ -23,6 +23,12 @@
$NOHUP ./sipp $MSS_IP:5080 -sf proxy/location-service-receiver.xml
-i $SIPP_IP -p 5090 -nd $BACKGROUNDMETHOD
./sipp $MSS_IP:5080 -s receiver-failover -sf
proxy/location-service-sender.xml -trace_err -i $SIPP_IP -p 5050 -r $RATE
-m $CALLS -rsa $LB_IP:5060 -trace_msg -timeout $ACTIVE_TIMEOUT
-timeout_error
;;
+ proxy-early)
+ rm ./proxy/*.log
+ echo "Distributed example used is proxy early dialog
failover";
+ $NOHUP ./sipp $MSS_IP:5080 -sf
proxy/location-service-receiver-early.xml -i $SIPP_IP -p 5090 -nd
$BACKGROUNDMETHOD
+ ./sipp $MSS_IP:5080 -s receiver-failover -sf
proxy/location-service-sender-early.xml -trace_err -i $SIPP_IP -p 5050 -r
$RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -timeout $ACTIVE_TIMEOUT
-timeout_error
+ ;;
proxy-remote-send-bye)
rm ./proxy/*.log
echo "Distributed example used is proxy remote send
bye";
=======================================
---
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/prepare-jboss-5-server-for-clustering-failover.sh
Thu Dec 2 08:23:10 2010
+++
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/prepare-jboss-5-server-for-clustering-failover.sh
Mon Dec 6 10:10:16 2010
@@ -44,6 +44,16 @@
cp ../../../sip-servlets-examples/location-service-distributable/distributable-location-service-dar.properties
$JBOSS_HOME/server/port-1/conf/dars/distributable-dar.properties
cp ../../../sip-servlets-examples/location-service-distributable/distributable-location-service-dar.properties
$JBOSS_HOME/server/port-2/conf/dars/distributable-dar.properties
;;
+ proxy-early)
+ echo "Distributed example used is proxy with early
failure"
+ mvn clean install
-f ../../../sip-servlets-examples/location-service-distributable/pom.xml
+
cp ../../../sip-servlets-examples/location-service-distributable/target/location-service-distributable-*.war
$JBOSS_HOME/server/port-1/deploy
+
cp ../../../sip-servlets-examples/location-service-distributable/target/location-service-distributable-*.war
$JBOSS_HOME/server/port-2/deploy
+
cp ../../../sip-servlets-examples/location-service-distributable/distributable-location-service-dar.properties
$JBOSS_HOME/server/port-1/conf/dars/distributable-dar.properties
+
cp ../../../sip-servlets-examples/location-service-distributable/distributable-location-service-dar.properties
$JBOSS_HOME/server/port-2/conf/dars/distributable-dar.properties
+ cp setup/jboss-5/mss-sip-stack-jboss-early-failover.properties
$JBOSS_HOME/server/port-1/conf/mss-sip-stack.properties
+ cp setup/jboss-5/mss-sip-stack-jboss-early-failover.properties
$JBOSS_HOME/server/port-2/conf/mss-sip-stack.properties
+ ;;
b2bua)
echo "Distributed example used is b2bua"
mvn clean install
-f ../../../sip-servlets-examples/call-forwarding-distributable/pom.xml