<div dir="ltr">Hi Nicolas,<div><br></div><div>Looking at your logs and script lines, it seems you do not have websocket module installed.</div><div><br></div><div>First check your module directory, based on script you are using: <a href="https://github.com/caruizdiaz/kamailio-ws/blob/master/modules.cfg#L42">https://github.com/caruizdiaz/kamailio-ws/blob/master/modules.cfg#L42</a> that you have websocket module in it or not, if not install it. </div><div><br></div><div>You can check you config by issuing command - kamailio -c to validate if the script file is alright or not.</div><div><br></div><div><br></div><div>Regards,</div><div>Salman</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 2, 2017 at 9:43 PM, Nicolas Pace <span dir="ltr"><<a href="mailto:nico@libre.ws" target="_blank">nico@libre.ws</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi everyone,</div><div><br></div><div>As I shared with you before, We are working on a mobile app to connect the Community Cellular Networks (that uses 2G Cellular Networks) with the rest of the world via SIP, and we are considering using Kamailio for this.</div><div>We choosed to build a Progresive Web App (PWA) through WebSockets to reduce the friction involved in using a new tool.</div><div><br></div><div>My question is, is there a reference config to use a web client through WebSockets?</div><div>I don't have a clue on how to get from the stock config:</div><div><a href="https://gist.github.com/nicopace/9d44bf813fe309df69ff4cd0affe8324#file-_etc_kamailio_kamailio-conf" target="_blank">https://gist.github.com/<wbr>nicopace/<wbr>9d44bf813fe309df69ff4cd0affe83<wbr>24#file-_etc_kamailio_<wbr>kamailio-conf</a></div><div>to a fully functional WebSocket-enabled config.</div><div>I've already read the WebSocket module documentation, but it is hard to understand as it assumes you already know how Kamailio works... too many moving parts :(</div><div><br></div><div>I tried with <a href="https://github.com/caruizdiaz/kamailio-ws" target="_blank">https://github.com/caruizdiaz/<wbr>kamailio-ws</a> but it is giving me some errors:</div><div><br></div><div>May 02 13:37:13 ubuntu kamailio[2329]: : <core> [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/modules.cfg, line 48, column 12-25: failed to load module</div><div>May 02 13:37:13 ubuntu kamailio[2329]: ERROR: <core> [cfg.y:3295]: yyparse(): cfg. parser: failed to find command ws_handle_handshake (params 0)</div><div>May 02 13:37:13 ubuntu kamailio[2329]: : <core> [cfg.y:3435]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 143, column 41: unknown command, missing loadmodule?</div><div><br></div><div>Which relates with:</div><div><a href="https://github.com/caruizdiaz/kamailio-ws/blob/master/modules.cfg#L48" target="_blank">https://github.com/caruizdiaz/<wbr>kamailio-ws/blob/master/<wbr>modules.cfg#L48</a></div><div>and</div><div><a href="https://github.com/caruizdiaz/kamailio-ws/blob/master/kamailio-ws.cfg#L143" target="_blank">https://github.com/caruizdiaz/<wbr>kamailio-ws/blob/master/<wbr>kamailio-ws.cfg#L143</a></div><div><br></div><div>What I'm trying to accomplish is to have a PWA that sends SIMPLE messages and CALLS to and from SIP Users (the 2G users are behind a FreeSwitch, so it could be done).</div><div><br></div><div>Just to give you some context, we will also add Push Notifications as 'ringing' or 'meesage recieved' alert, and that would be all (we also don't know how to do it).</div><div><br></div><div>Well... hope to hear from you guys!</div><div><br></div><div>Thanks!</div><div></div><div><span></span></div></div><br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font face="'times new roman', serif">Regards</font><div><font face="'times new roman', serif"><br></font><div><pre cols="72"><font face="'times new roman', serif">M. Salman<br>VoIP Professional<br></font><br></pre></div></div></div></div></div></div>
</div>