[Freeswitch-users] calling card app

Rafqat . rafonline at hotmail.com
Tue Jan 4 01:02:11 MSK 2011



Thanks again for your help MC.

Date: Mon, 3 Jan 2011 13:41:57 -0800
From: msc at freeswitch.org
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] calling card app



On Mon, Jan 3, 2011 at 1:17 PM, Rafqat . <rafonline at hotmail.com> wrote:







btw.

My lua script currently does the following:

1. Ask for PIN.
2. Gets funds for PIN (DB lookup using freeswitch.Dbh) and informs the user of the funds.
3. Ask for destination number.
4. Checks if enough funds (again using freeswitch Dbh).

5. Gets auto route using mod_lcr.
6. Populates leg b session variables necessary for mod_nibble.
7. Does the bridging.

As per your advice I will move the bridging stuff out of the script.  Do you think the rest will be ok in lua?


I'd say that looks good. The Lua script only stays active until you get to step 7 where you do a transfer instead of bridge. It's only a few seconds of work.-MC
 
CHeers

Raf


From: rafonline at hotmail.com

To: freeswitch-users at lists.freeswitch.org
Subject: RE: [Freeswitch-users] calling card app
Date: Mon, 3 Jan 2011 21:07:33 +0000










Thanks very much for the advice.

Much Appreciated.

Date: Mon, 3 Jan 2011 11:31:57 -0800
From: msc at freeswitch.org
To: freeswitch-users at lists.freeswitch.org

Subject: Re: [Freeswitch-users] calling card app

If you have a powerful machine then you can probably scale to several hundred concurrent calls, depending on transcoding, call recording needs, etc. We've seen some boxes that can handle literally thousands of concurrent calls, but the scenarios are never exactly the same. Also, Lua is very lightweight, so if you're using it just to capture a PIN code or something then you should be okay. Just be sure to exit the Lua script and let the dialplan handle the bridge app. (See chapter 7 of the FS book for more information on Lua scripting tips.)


-MC

On Sun, Jan 2, 2011 at 11:13 AM, Rafqat . <rafonline at hotmail.com> wrote:







Hi

As stated in some of my previous posts, I am writing a calling card system (not too sure of potential number of concurrent users yet).

At the moment I am simply doing everything in a single lua script utilising mod_lcr and mod_nibble.  It seems to work ok, but I have not stress tested it yet.



I was wondering (at a high level) if this will suffice or should I be offloading operations such as pin validation and credit checking to another server (maybe utilising mod_rad_auth?).    

Cheers

Raf


 		 	   		  

_______________________________________________

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





_______________________________________________
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 		 	   		  

_______________________________________________

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





_______________________________________________
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/20110103/3f033610/attachment.html 


More information about the FreeSWITCH-users mailing list