Revision: 15608
Author: [email protected]
Date: Thu Dec  2 08:23:10 2010
Log: Update Issue 1874

Adding non regression custom B2BUA test case => working
http://code.google.com/p/mobicents/source/detail?r=15608

Added:
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/b2bua/custom-call-forwarding-receiver-early.xml /trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/b2bua/custom-call-forwarding-sender-early.xml
Modified:
/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/b2bua/custom-call-forwarding-receiver-early.xml Thu Dec 2 08:23:10 2010
@@ -0,0 +1,129 @@
+<?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="10000" />
+
+  <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:receiver-failo...@[local_ip]:[local_port]
+      Content-Length: 0
+
+    ]]>
+  </send>
+
+  <pause milliseconds="4000"/>
+
+  <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:receiver-failo...@[local_ip]:[local_port]
+      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" >
+<action><exec command="./killserver.sh all.pid 6 &"/>
+</action>
+  </recv>
+
+  <pause milliseconds="20000"/>
+
+  <recv request="INVITE" rrs="true" timeout="10000" />
+
+  <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:receiver-failo...@[local_ip]:[local_port]
+      Content-Length: 0
+
+    ]]>
+  </send>
+
+  <pause milliseconds="500"/>
+
+  <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:receiver-failo...@[local_ip]:[local_port]
+      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>
+
+  <pause milliseconds="20000"/>
+
+  <recv request="BYE" timeout="10000" />
+
+  <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/b2bua/custom-call-forwarding-sender-early.xml Thu Dec 2 08:23:10 2010
@@ -0,0 +1,132 @@
+<?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="500">
+    <![CDATA[
+
+      INVITE sip:[servi...@[remote_ip]:[remote_port] 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"/>
+
+  <send>
+    <![CDATA[
+
+      ACK [next_url] 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:[servi...@[remote_ip]:[remote_port]>[peer_tag_param]
+      Call-ID: [call_id]
+      CSeq: 1 ACK
+      Contact: sip:s...@[local_ip]:[local_port]
+      Max-Forwards: 70
+      [routes]
+      Subject: Clustering Test
+      Content-Length: 0
+
+    ]]>
+  </send>
+  <pause milliseconds="20000"/>
+
+  <send retrans="500">
+    <![CDATA[
+
+      INVITE sip:[servi...@[remote_ip]:[remote_port] 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:[servi...@[remote_ip]:[remote_port]>[peer_tag_param]
+      Call-ID: [call_id]
+      CSeq: 2 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"/>
+
+  <send>
+    <![CDATA[
+
+      ACK [next_url] 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:[servi...@[remote_ip]:[remote_port]>[peer_tag_param]
+      Call-ID: [call_id]
+      CSeq: 2 ACK
+      Contact: sip:s...@[local_ip]:[local_port]
+      Max-Forwards: 70
+      [routes]
+      Subject: Clustering Test
+      Content-Length: 0
+
+    ]]>
+  </send>
+  <pause milliseconds="20000"/>
+
+  <send retrans="500">
+    <![CDATA[
+
+      BYE [next_url] 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:[servi...@[remote_ip]:[remote_port]>[peer_tag_param]
+      Call-ID: [call_id]
+      CSeq: 6 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>
+s
=======================================
--- /trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/clustering-failover-test.sh Thu Dec 2 08:02:51 2010 +++ /trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/clustering-failover-test.sh Thu Dec 2 08:23:10 2010
@@ -35,6 +35,12 @@
./sipp $MSS_IP:5080 -sf b2bua/custom-call-forwarding-receiver.xml -i $SIPP_IP -p 5090 $BACKGROUNDMETHOD ./sipp $MSS_IP:5080 -s receiver -sf b2bua/custom-call-forwarding-sender.xml -trace_err -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -timeout $ACTIVE_TIMEOUT -timeout_error
                    ;;
+           custom-b2bua-early)
+                       rm ./b2bua/*.log
+ echo "Distributed example used is custom b2bua early dialog failover"; + ./sipp $MSS_IP:5080 -sf b2bua/custom-call-forwarding-receiver-early.xml -i $SIPP_IP -p 5090 $BACKGROUNDMETHOD + ./sipp $MSS_IP:5080 -s receiver -sf b2bua/custom-call-forwarding-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
+                   ;;
            custom-b2bua-udp-tcp)
                        rm ./b2bua/*.log
                    echo "Distributed example used is custom b2bua udp tcp";
@@ -55,7 +61,7 @@
                    ;;
            b2bua-early)
                        rm ./b2bua/*.log
-                   echo "Distributed example used is b2bua";
+ echo "Distributed example used is b2bua early dialog failover"; $NOHUP ./sipp $MSS_IP:5080 -sf b2bua/call-forwarding-receiver-early.xml -i $SIPP_IP -p 5090 -nd $BACKGROUNDMETHOD ./sipp $MSS_IP:5080 -s receiver -sf b2bua/call-forwarding-sender-early.xml -trace_err -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -timeout $ACTIVE_TIMEOUT $SIPP_OPTIONS -timeout_error
                    ;;
=======================================
--- /trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/prepare-jboss-5-server-for-clustering-failover.sh Thu Dec 2 08:02:51 2010 +++ /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
@@ -72,6 +72,18 @@
cp ../../../sip-servlets-examples/custom-call-forwarding-distributable/distributable-call-forwarding-dar.properties $JBOSS_HOME/server/port-1/conf/dars/distributable-dar.properties cp ../../../sip-servlets-examples/custom-call-forwarding-distributable/distributable-call-forwarding-dar.properties $JBOSS_HOME/server/port-2/conf/dars/distributable-dar.properties
                    ;;
+           custom-b2bua-early)
+                   echo "Distributed example used is b2bua"
+ mvn clean install -o -f ../../../sip-servlets-examples/custom-call-forwarding-distributable/pom.xml + rm -rf $JBOSS_HOME/server/port-1/deploy/custom-call-forwarding-distributable-*.war + rm -rf $JBOSS_HOME/server/port-2/deploy/custom-call-forwarding-distributable-*.war + cp ../../../sip-servlets-examples/custom-call-forwarding-distributable/target/custom-call-forwarding-distributable-*.war $JBOSS_HOME/server/port-1/deploy + cp ../../../sip-servlets-examples/custom-call-forwarding-distributable/target/custom-call-forwarding-distributable-*.war $JBOSS_HOME/server/port-2/deploy + cp ../../../sip-servlets-examples/custom-call-forwarding-distributable/distributable-call-forwarding-dar.properties $JBOSS_HOME/server/port-1/conf/dars/distributable-dar.properties + cp ../../../sip-servlets-examples/custom-call-forwarding-distributable/distributable-call-forwarding-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
+                   ;;
            c2c)
                        echo "Distributed example used is Click To call"
mvn clean install -f ../../../sip-servlets-examples/click2call-distributable/pom.xml

Reply via email to