[Freeswitch-users] IVR Architecture

Anita Hall anita.hall at simmortel.com
Sat Feb 25 16:48:02 MSK 2012


Hey Vitalie :)

Thanks for suggesting Lua. We are keen on Lua but does it support
multi-threading. I could see this
http://stackoverflow.com/questions/2978120/multithreading-in-lua
http://kotisivu.dnainternet.net/askok/bin/lanes/

But how stable is multi-threading in Lua ?

Currently, we are using python stackless for running multi-threaded IVR in
FreeSWITCH but we are not happy :(

regards,
Anita



On Fri, Feb 24, 2012 at 2:29 AM, Vitalie Colosov <vetali100 at gmail.com>wrote:

> Why not to use powerful and fast lua scripts with DB access - example for
> DB select:
> ------------------------
> subscriber = "1000";
> my_field = '';
> local dbh = assert(freeswitch.Dbh("db","fs_user","fs_password"));
> dbh:query("select my_field1 from my_table1 where subscriber =
> '"..subscriber.."'",
> function(row)
> my_field = row.my_field1;
> end);
> dbh:release();
> --do whatever you need here!!
> ------------------------
>
> obviously you need to configure ODBC for access, but this is described:
> http://wiki.freeswitch.org/wiki/Using_ODBC_in_the_core#CentOS_5.2
>
>
> 2012/2/23 Anita Hall <anita.hall at simmortel.com>
>
>> Hi
>>
>> We are considering writing our own module for processing IVR in C. We are
>> considering using mod_event_socket and then modify it to consume and
>> produce the events internally instead of passing them to the socket. Is
>> this a good idea?
>>
>> I know FreeSWITCH already has a mod_dialplan_xml which can use mod_curl
>> to communicate to the outside world for I/O and DB access. But ...
>>
>> 1) Does XML have all the power flexibility that will be needed for
>> powerful IVR applications?
>>
>> 2) Does mod_dialplan_xml use a separate thread for each IVR execution ?
>> What will be the overhead of interpreting the XML ?
>>
>> 3) Any more ideas ?
>>
>> Thanks :)
>>
>> regards,
>> Anita
>>
>>
>> _________________________________________________________________________
>> 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
>>
>>
>
> _________________________________________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120225/b5fac242/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list