<div dir="ltr">Update on the websocket support issue:<div><br></div><div>I changed the following files (names and diff shown below), applied the changes (ngcpcfg apply) and now I see that kamailio lb instance is listening on the port specified in the config.yml file. It continues to fail the same way though.</div>
<div><br></div><div>It looks like that the kamailio config teamplate now needs to be modified to handle websocket related processing. Based on 3.0 release announcement (<a href="http://www.sipwise.com/news/announcements/spce-v3_0-release/">http://www.sipwise.com/news/announcements/spce-v3_0-release/</a> ), I assumed that sip:Provider CE would automatically configure the Kamailio LB for websocket support. Is that not the case?</div>
<div><br></div><div><br></div><div>Can anyone please share a version of kamailio config and / or template that not only works as websocket - SIP gw but also uses mediaproxy for media transcoding?</div><div><br></div><div>
<br></div><div><div>sipwise@spce:/etc/ngcp-config$ sudo diff config.yml config.yml.orig</div><div>92,97d91</div><div><     ws:</div><div><       enable: 'yes'</div><div><       port: 10080</div><div><     wss:</div>
<div><       enable: 'no'</div><div><       port: 10081</div></div><div><br></div><div><br></div><div><div>root@spce:/etc/ngcp-config/templates/etc/kamailio/lb# diff kamailio.cfg.tt2 kamailio.cfg.tt2.orig</div>
<div>20,23d19</div><div>< [% IF kamailio.lb.ws.enable == "yes" -%]</div><div>< #!define ENABLE_WEBSOCKETS</div><div>< [% END -%]</div><div><</div><div>52,54d47</div><div>< #!ifdef ENABLE_WEBSOCKETS</div>
<div>< listen=tcp:[% ip %]:[% kamailio.lb.ws.port %]</div><div>< #!endif</div><div>68,70d60</div><div>< #!ifdef ENABLE_WEBSOCKETS</div><div>< listen=tcp:[% ip %]:[% kamailio.lb.ws.port %]</div><div>< #!endif</div>
<div>248,255d237</div><div>< #!endif</div><div><</div><div>< #!ifdef WITH_WEBSOCKETS</div><div>< # ----- nathelper params -----</div><div>< modparam("nathelper|registrar", "received_avp", "$avp(RECEIVED)")</div>
<div>< # Note: leaving NAT pings turned off here as nathelper is _only_ being used for</div><div>< #       WebSocket connections.  NAT pings are not needed as WebSockets have</div><div>< #       their own keep-alives.</div>
</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 11, 2014 at 4:44 PM, Ashutosh Apte <span dir="ltr"><<a href="mailto:apteashutosh@gmail.com" target="_blank">apteashutosh@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I've downloaded the sip:provider v3.1 (Virtualbox image) and have gone through the handbook to configure the system. But it seems that I've missed enabling websocket support.<div>
<br></div><div>I can successfully register an endpoint using direct SIP but when I try to use jssip or sipml5, the connection establishment fails and the endpoint is never registered.</div>
<div><br></div><div>I tried to compare a kamailio configuration file at <a href="https://gist.github.com/jesusprubio/4066845" target="_blank">https://gist.github.com/jesusprubio/4066845</a> with the one located at  /etc/kamailio/lb/kamailio.cfg but I cannot see a "listen" entry specifically for websockets. (I do see that it does load websocket.so)</div>

<div><br></div><div>What is the default port on which sip:provider listens for websocket requests?</div><div>(I tried pointing the javascript to port 80, 443, 1443, 5081 etc but they all fail with different response codes - XMLRPC Not allowed, 301 Moved Permanently etc)</div>

<div><br></div><div>What change should I make to get the registrations working?</div><div><br></div><div>Please help.</div><div><br></div><div>Thanks,</div><div>Ashutosh</div><div><br></div></div>
</blockquote></div><br></div>