[SR-Users] SIP over WebSockets

Nicolas Pace nico at libre.ws
Tue May 2 19:47:44 CEST 2017


On Tue, 2017-05-02 at 22:00 +0500, M. Salman wrote:
> Hi Nicolas,
> Looking at your logs and script lines, it seems you do not have
> websocket module installed.

Don't worry about the logs, those are old.Right now I got Kamailio with
MySQL working with pjsua and ekiga.
> First check your module directory, based on script you are using: htt
> ps://github.com/caruizdiaz/kamailio-ws/blob/master/modules.cfg#L42
> that you have websocket module in it or not, if not install it. 

websocket is installed and websocket.so is in the folder referenced in
the config.
> You can check you config by issuing command - kamailio -c to validate
> if the script file is alright or not.

Thanks, will use it
> > On Tue, May 2, 2017 at 9:43 PM, Nicolas Pace <nico at libre.ws> wrote:
> > > Hi everyone,
> > > 
> > > 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.
> > > We choosed to build a Progresive Web App (PWA) through WebSockets
> > > to reduce the friction involved in using a new tool.
> > > 
> > > My question is, is there a reference config to use a web client
> > > through WebSockets?
> > > I don't have a clue on how to get from the stock config:
> > > https://gist.github.com/nicopace/9d44bf813fe309df69ff4cd0affe8324
> > > #file-_etc_kamailio_kamailio-conf
> > > to a fully functional WebSocket-enabled config.
> > > 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 :(
> > > 
> > > I tried with https://github.com/caruizdiaz/kamailio-ws but it is
> > > giving me some errors:
> > > 
> > > 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
> > > 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)
> > > 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?
> > > 
> > > Which relates with:
> > > https://github.com/caruizdiaz/kamailio-ws/blob/master/modules.cfg
> > > #L48
> > > and
> > > https://github.com/caruizdiaz/kamailio-ws/blob/master/kamailio-ws
> > > .cfg#L143
> > > 
> > > 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).
> > > 
> > > 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).
> > > 
> > > Well... hope to hear from you guys!
> > > 
> > > Thanks!
> > > 
> > > 
> > > _______________________________________________
> > > 
> > > Kamailio (SER) - Users Mailing List
> > > 
> > > sr-users at lists.kamailio.org
> > > 
> > > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> > > 
> > > 
> > 
> > 
> > -- 
> > Regards
> > M. Salman
> > VoIP Professional
> > 
> > 
> 
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170502/6410f9be/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170502/6410f9be/attachment.sig>


More information about the sr-users mailing list