Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Best practice for inbound calls with scripting


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
gregt at cgicommunicat...
Guest





PostPosted: Wed Aug 05, 2009 12:50 pm    Post subject: [Freeswitch-users] Best practice for inbound calls with scri Reply with quote

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
Back to top
dule.maillist at gmail...
Guest





PostPosted: Wed Aug 05, 2009 1:05 pm    Post subject: [Freeswitch-users] Best practice for inbound calls with scri Reply with quote

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 (gregt@cgicommunications.com)> wrote:
Quote:
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 (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

Back to top
technical at ttnc.co.uk
Guest





PostPosted: Wed Aug 05, 2009 1:33 pm    Post subject: [Freeswitch-users] Best practice for inbound calls with scri Reply with quote

Greg Thoen wrote:
Quote:
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

_______________________________________________
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
Back to top
edpimentl at gmail.com
Guest





PostPosted: Wed Aug 05, 2009 2:10 pm    Post subject: [Freeswitch-users] Best practice for inbound calls with scri Reply with quote

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 (dule.maillist@gmail.com)> wrote:
Quote:
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 (gregt@cgicommunications.com)> wrote:
Quote:
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 (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 (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

Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services