Revision: 0145ec082b81
Author:   Jean Deruelle <[email protected]>
Date:     Thu Jan 10 07:40:24 2013
Log: Add support for WSS in the application if no other WebSocket connectors are defined

http://code.google.com/p/sipservlets/source/detail?r=0145ec082b81

Modified:
/sip-servlets-examples/websocket-b2bua/src/main/sipapp/jain-sip/MobicentsWebClient.jsp

=======================================
--- /sip-servlets-examples/websocket-b2bua/src/main/sipapp/jain-sip/MobicentsWebClient.jsp Thu Nov 8 03:35:53 2012 +++ /sip-servlets-examples/websocket-b2bua/src/main/sipapp/jain-sip/MobicentsWebClient.jsp Thu Jan 10 07:40:24 2013
@@ -153,10 +153,12 @@

                <%
SipConnector[] sipConnectors = (SipConnector[]) getServletContext().getAttribute(
-                               "org.mobicents.servlet.sip.SIP_CONNECTORS");
+                               "org.mobicents.servlet.sip.SIP_CONNECTORS");
                for(int q=0; q<sipConnectors.length; q++) {
                        
if(sipConnectors[q].getTransport().equalsIgnoreCase("WS")) {
out.println("var defaultSipWsUrl=\"ws://" + sipConnectors[q].getIpAddress() + ":" + sipConnectors[q].getPort() + "\";"); + } else if (sipConnectors[q].getTransport().equalsIgnoreCase("WSS")) { + out.println("var defaultSipWsUrl=\"wss://" + sipConnectors[q].getIpAddress() + ":" + sipConnectors[q].getPort() + "\";");
                        }
                }
                %>

Reply via email to