Revision: 15661
Author: [email protected]
Date: Tue Dec  7 13:34:17 2010
Log: Update Issue 1874

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

Modified:
/trunk/servers/sip-servlets/sip-servlets-examples/call-forwarding-distributable/src/main/java/org/mobicents/servlet/sip/example/DistributableCallForwardingB2BUASipServlet.java

=======================================
--- /trunk/servers/sip-servlets/sip-servlets-examples/call-forwarding-distributable/src/main/java/org/mobicents/servlet/sip/example/DistributableCallForwardingB2BUASipServlet.java Mon Dec 6 10:14:04 2010 +++ /trunk/servers/sip-servlets/sip-servlets-examples/call-forwarding-distributable/src/main/java/org/mobicents/servlet/sip/example/DistributableCallForwardingB2BUASipServlet.java Tue Dec 7 13:34:17 2010
@@ -67,11 +67,11 @@
new String[]{"sip:[email protected]", "sip:[email protected]:5090"});

                forwardingUris.put("sip:[email protected]",
- new String[]{"sip:[email protected]", "sip:[email protected]:5090"}); + new String[]{"sip:[email protected]", "sip:[email protected]:5090"});
                forwardingUris.put("sip:[email protected]",
- new String[]{"sip:[email protected]", "sip:[email protected]:5090"}); + new String[]{"sip:[email protected]", "sip:[email protected]:5090"});
                forwardingUris.put("sip:[email protected]:5080",
- new String[]{"sip:[email protected]", "sip:[email protected]:5090"}); + new String[]{"sip:[email protected]", "sip:[email protected]:5090"});
        }

        @Override
@@ -215,7 +215,7 @@
 //                 helper.getLinkedSession(sipServletResponse.getSession());
                //if this is a response to an INVITE we ack it and forward the 
OK
                if("INVITE".equalsIgnoreCase(sipServletResponse.getMethod())) {
- if(sipServletResponse.getFrom().getURI().toString().contains("fwd-ack")) { + if(!sipServletResponse.getTo().getURI().toString().contains("fwd-ack")) {
                                SipServletRequest ackRequest = 
sipServletResponse.createAck();
                                if(logger.isInfoEnabled()) {
                                        logger.info("Sending " +  ackRequest);

Reply via email to