Best practice for inbound calls with scripting
Hi. I am setting up a large inbound only system with multiple DIDs coming in; each call is processed fairly intensively with db lookups, wav files played, pocketsphinx is used, wav files recorded, etc. Before I get too far down one path, I was wondering if anyone had any insight into the best, most scaleable way to do this out of the several methods I can do: 1 Call comes in dialplan calls specific javascript based on DID javascript uses ODBC to pull info from local mysql db call is handled in javascript 2 Call comes in dialplan calls specific javascript based on DID javascript uses CURL to get info from local mysql db call is handled in javascript 3 Call comes in php socket is listening for call php script runs, pulling info from mysql db call is handled in php using esl.php 4 Call comes in dialplan calls specific lua script based on DID lua uses luasql.mysql to get info from local mysql db call is handled in lua using lua api 5 Call comes in xml_curl is used for dynamic dialplan js called, continues like #1 I know that they will all do essentially the same thing. But once I go down the path, I don't want to find out that the way I chose chokes with 50 simultaneous inbound calls on different DIDs. Any comments would be appreciated. Thanks. -- Greg
One common recommendation is to use lua over js, since it's lighter-weight, using less resources. Dan On Wed, Aug 5, 2009 at 1:31 PM, Greg Thoen <gregt@cgicommunications.com>wrote:
Hi. I am setting up a large inbound only system with multiple DIDs coming in; each call is processed fairly intensively with db lookups, wav files played, pocketsphinx is used, wav files recorded, etc. Before I get too far down one path, I was wondering if anyone had any insight into the best, most scaleable way to do this out of the several methods I can do: 1 Call comes in dialplan calls specific javascript based on DID javascript uses ODBC to pull info from local mysql db call is handled in javascript
2 Call comes in dialplan calls specific javascript based on DID javascript uses CURL to get info from local mysql db call is handled in javascript
3 Call comes in php socket is listening for call php script runs, pulling info from mysql db call is handled in php using esl.php
4 Call comes in dialplan calls specific lua script based on DID lua uses luasql.mysql to get info from local mysql db call is handled in lua using lua api
5 Call comes in xml_curl is used for dynamic dialplan js called, continues like #1
I know that they will all do essentially the same thing. But once I go down the path, I don't want to find out that the way I chose chokes with 50 simultaneous inbound calls on different DIDs. Any comments would be appreciated. Thanks.
--
Greg
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Here are other scenarios to add Call request comes in via SMS Call request comes in via XMPP Call request comes in via EMAIL Call request comes in via TWITTER/FACEBOOK/WAVE/ Best regards, -E Gpro.ws edpimentl [SKype ] On Wed, Aug 5, 2009 at 1:59 PM, Dan Le <dule.maillist@gmail.com> wrote:
One common recommendation is to use lua over js, since it's lighter-weight, using less resources. Dan
On Wed, Aug 5, 2009 at 1:31 PM, Greg Thoen <gregt@cgicommunications.com>wrote:
Hi. I am setting up a large inbound only system with multiple DIDs coming in; each call is processed fairly intensively with db lookups, wav files played, pocketsphinx is used, wav files recorded, etc. Before I get too far down one path, I was wondering if anyone had any insight into the best, most scaleable way to do this out of the several methods I can do: 1 Call comes in dialplan calls specific javascript based on DID javascript uses ODBC to pull info from local mysql db call is handled in javascript
2 Call comes in dialplan calls specific javascript based on DID javascript uses CURL to get info from local mysql db call is handled in javascript
3 Call comes in php socket is listening for call php script runs, pulling info from mysql db call is handled in php using esl.php
4 Call comes in dialplan calls specific lua script based on DID lua uses luasql.mysql to get info from local mysql db call is handled in lua using lua api
5 Call comes in xml_curl is used for dynamic dialplan js called, continues like #1
I know that they will all do essentially the same thing. But once I go down the path, I don't want to find out that the way I chose chokes with 50 simultaneous inbound calls on different DIDs. Any comments would be appreciated. Thanks.
--
Greg
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Greg Thoen wrote:
4 Call comes in dialplan calls specific lua script based on DID lua uses luasql.mysql to get info from local mysql db call is handled in lua using lua api This is the option we chose in our set-up (although mysql is on a remote server), currently we have over 25k DIDs running on FreeSWITCH via this set-up and everything is working wonderfully.
We were using option 5 previously, but found 4 to be much better in general. Hope this helps. Adnan
participants (4)
-
Dan Le
-
EdPimentl
-
Greg Thoen
-
TTNC - Adnan Barakat