Revision: 15606
Author: [email protected]
Date: Thu Dec 2 08:02:51 2010
Log: Update Issue 1874
Adding non regression B2BUA test case
http://code.google.com/p/mobicents/source/detail?r=15606
Added:
/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/b2bua/call-forwarding-sender-early.xml
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/setup/jboss-5/mss-sip-stack-jboss-early-failover.properties
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/call-forwarding-receiver-early.xml
Thu Dec 2 08:02:51 2010
@@ -0,0 +1,121 @@
+<?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 2 &"/>
+</action-->
+ </recv>
+
+ <recv request="UPDATE" timeout="20000" rtd="true">
+ </recv>
+
+ <!-- send 200 OK / UPDATE -->
+
+ <send>
+ <![CDATA[
+
+ SIP/2.0 200 OK
+ [last_Via:]
+ [last_From:]
+ [last_To:]
+ [last_Call-ID:]
+ [last_CSeq:]
+ Contact: <sip:[local_ip]:[local_port];transport=[transport]>
+ Content-Type: application/sdp
+ Content-Length: 0
+
+ ]]>
+ </send>
+
+ <recv request="UPDATE"timeout="10000" rtd="true">
+ </recv>
+
+ <!-- send 200 OK / UPDATE -->
+
+ <send>
+ <![CDATA[
+
+ SIP/2.0 200 OK
+ [last_Via:]
+ [last_From:]
+ [last_To:]
+ [last_Call-ID:]
+ [last_CSeq:]
+ Contact: <sip:[local_ip]:[local_port];transport=[transport]>
+ Content-Type: application/sdp
+ Content-Length: 0
+
+ ]]>
+ </send>
+
+ <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/call-forwarding-sender-early.xml
Thu Dec 2 08:02:51 2010
@@ -0,0 +1,148 @@
+<?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="10000"/>
+
+ <send retrans="500">
+ <![CDATA[
+
+ UPDATE [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: 3 UPDATE
+ Contact: sip:s...@[local_ip]:[local_port]
+ Max-Forwards: 70
+ [routes]
+ Subject: Performance Test
+ Content-Type: application/sdp
+ Content-Length: [len]
+
+ v=0
+ o=user1 53655766 2353687638 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>
+
+ <!-- receive 200 OK / UPDATE -->
+
+ <recv response="200" rtd="true">
+ </recv>
+
+ <send retrans="500">
+ <![CDATA[
+
+ UPDATE [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: 4 UPDATE
+ Contact: sip:s...@[local_ip]:[local_port]
+ Max-Forwards: 70
+ [routes]
+ Subject: Performance Test
+ Content-Type: application/sdp
+ Content-Length: [len]
+
+ v=0
+ o=user1 53655767 2353687639 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>
+
+ <!-- receive 200 OK / UPDATE -->
+
+ <recv response="200" rtd="true">
+ </recv>
+
+ <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
=======================================
--- /dev/null
+++
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/setup/jboss-5/mss-sip-stack-jboss-early-failover.properties
Thu Dec 2 08:02:51 2010
@@ -0,0 +1,22 @@
+gov.nist.javax.sip.LOG_MESSAGE_CONTENT=true
+gov.nist.javax.sip.TRACE_LEVEL=LOG4J
+gov.nist.javax.sip.DEBUG_LOG=log/mss-jsip-debuglog.txt
+gov.nist.javax.sip.SERVER_LOG=log/mss-jsip-messages.xml
+javax.sip.STACK_NAME=Mobicents-SIP-Servlets
+javax.sip.AUTOMATIC_DIALOG_SUPPORT=off
+gov.nist.javax.sip.DELIVER_UNSOLICITED_NOTIFY=true
+gov.nist.javax.sip.THREAD_POOL_SIZE=4
+gov.nist.javax.sip.REENTRANT_LISTENER=true
+# setting up the buffer size to reduce retransmissions and avoid loosing
messages
+gov.nist.javax.sip.RECEIVE_UDP_BUFFER_SIZE=65536
+gov.nist.javax.sip.SEND_UDP_BUFFER_SIZE=65536
+gov.nist.javax.sip.CONGESTION_CONTROL_ENABLED=false
+gov.nist.javax.sip.AGGRESSIVE_CLEANUP=true
+gov.nist.javax.sip.MAX_FORK_TIME_SECONDS=0
+#no cache specified since in non ha mode we don't replicate
+org.mobicents.ha.javax.sip.cache.MobicentsSipCache.cacheName=standard-session-cache
+#gov.nist.javax.sip.MESSAGE_PARSER_FACTORY=gov.nist.javax.sip.parser.chars.CharsMsgParserFactory
+# set to true so that the stack do more validation on dialog,
+# but won't work on chained applications so false by default
+gov.nist.javax.sip.AUTOMATIC_DIALOG_ERROR_HANDLING=false
+org.mobicents.ha.javax.sip.REPLICATION_STRATEGY=EarlyDialog
=======================================
---
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/clustering-failover-test.sh
Mon Nov 22 11:42:53 2010
+++
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/clustering-failover-test.sh
Thu Dec 2 08:02:51 2010
@@ -53,6 +53,12 @@
$NOHUP ./sipp $MSS_IP:5080 -sf
b2bua/call-forwarding-receiver.xml -i $SIPP_IP -p 5090 -nd $BACKGROUNDMETHOD
./sipp $MSS_IP:5080 -s receiver -sf
b2bua/call-forwarding-sender.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
;;
+ b2bua-early)
+ rm ./b2bua/*.log
+ echo "Distributed example used is b2bua";
+ $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
+ ;;
b2bua-remote-send-bye)
rm ./b2bua/*.log
echo "Distributed example used is b2bua-remote-send-bye";
=======================================
---
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/prepare-jboss-5-server-for-clustering-failover.sh
Mon Nov 15 04:43:01 2010
+++
/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
@@ -52,6 +52,16 @@
cp ../../../sip-servlets-examples/call-forwarding-distributable/distributable-call-forwarding-dar.properties
$JBOSS_HOME/server/port-1/conf/dars/distributable-dar.properties
cp ../../../sip-servlets-examples/call-forwarding-distributable/distributable-call-forwarding-dar.properties
$JBOSS_HOME/server/port-2/conf/dars/distributable-dar.properties
;;
+ b2bua-early)
+ echo "Distributed example used is b2bua with early dialog"
+ mvn clean install
-f ../../../sip-servlets-examples/call-forwarding-distributable/pom.xml
+
cp ../../../sip-servlets-examples/call-forwarding-distributable/target/call-forwarding-distributable-*.war
$JBOSS_HOME/server/port-1/deploy
+
cp ../../../sip-servlets-examples/call-forwarding-distributable/target/call-forwarding-distributable-*.war
$JBOSS_HOME/server/port-2/deploy
+
cp ../../../sip-servlets-examples/call-forwarding-distributable/distributable-call-forwarding-dar.properties
$JBOSS_HOME/server/port-1/conf/dars/distributable-dar.properties
+
cp ../../../sip-servlets-examples/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
+ ;;
custom-b2bua)
echo "Distributed example used is b2bua"
mvn clean install -o
-f ../../../sip-servlets-examples/custom-call-forwarding-distributable/pom.xml