[Freeswitch-users] Writing FS apps via mod event socket + node.js

Alex Lake alex at digitalmail.com
Thu Jun 5 16:56:55 MSD 2014


Thanks - I've seen this, but the examples are not at all representative 
of the sort of thing I want to be doing with freeswitch (which is mostly 
about handling calls in accordance with a dialplan, but with some 
complex stuff involving multi-legs). It makes me think I must be barking 
up the wrong tree....

These examples seem very much web-linked.

Let's consider an example:

If one wanted a very simple dynamic call mini-conference service - call 
comes in from a PSTN gateway, the code hits an HTML server (eg. using 
RESTful protocols) which returns a comma-separated list of destinations 
and then the system bridges to these destinations. Perhaps plays them a 
little fanfare and then links them all together in a conference.

I could do that with simple dialplan and Lua easy enough, but how would 
I do it in node.js?

> I have done some experimenting with NodeJs and FSW with the event 
> socket library. This far it has worked fine and I am about to continue 
> the integration of Node and FSW.
>
> Take a look at https://github.com/englercj/node-esl for a lib and 
> examples.
>
>
> On Thu, Jun 5, 2014 at 10:19 AM, Alex Lake <alex at digitalmail.com 
> <mailto:alex at digitalmail.com>> wrote:
>
>     I'm interested in using node.js to write scripts to control
>     Freeswitch-based telephony apps.
>     This is partly because some of the apps we've been writing seem to be
>     stretching the dialplan/Lua way of doing things - or at least my
>     comprehension of the model - beyond what is commercially viable.
>     What I
>     mean is that writing and extending our apps (particularly when working
>     with multiple call legs with complex inter-related state) is too
>     expensive. It seems from reading around, that externalising the
>     choreography of sessions is the choice of the fs cognoscenti.
>
>     However, there seems to be very little by the way of documentation and
>     example non-trivial "cookbook" style apps around - or maybe I've just
>     not been looking in the right places.
>
>     I get the strong impression that there are plenty of people here
>     who've
>     been there, done that and have the t-shirt. Just wondering what the
>     chances are of a bit of sharing (obviously I'm happy to invest
>     time into
>     publishing my findings and creating new examples, etc)
>
>     _________________________________________________________________________
>     Professional FreeSWITCH Consulting Services:
>     consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>     http://www.freeswitchsolutions.com
>
>     
>     
>
>     Official FreeSWITCH Sites
>     http://www.freeswitch.org
>     http://wiki.freeswitch.org
>     http://www.cluecon.com
>
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at lists.freeswitch.org>
>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>     http://www.freeswitch.org
>
>
>
>
> -- 
> Regards
> *Oscar Franzén
> */Developer/
>
> *
>
> **Advisa*
> oscar.franzen at advisa.se <mailto:oscar.franzen at advisa.se>
> Mobil: 070-720 45 81
> Besöksadress: Kungsgatan 30, Stockholm
> www.advisa.se <http://www.advisa.se/>
>
> –––––––––––––––––––––––––––
> Informationen i detta meddelande är konfidentiell och endast avsedd 
> för den/de angivna mottagarna. Om Du inte är en avsedd mottagare, ber 
> vi Dig att inte läsa, kopiera eller använda informationen i 
> meddelandet  samt att inte heller vidaresända informationen eller 
> delge den till annan. Vi ber Dig även att omedelbart meddela  
> avsändaren att Du erhållit meddelandet felaktigt samt att därefter 
> genast radera det från Ditt system. Advisa ansvarar inte för 
> eventuella personliga åsikter eller värderingar i detta meddelande.
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
> No virus found in this message.
> Checked by AVG - www.avg.com <http://www.avg.com>
> Version: 2014.0.4570 / Virus Database: 3955/7623 - Release Date: 06/04/14
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140605/0f64c51d/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list