<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br>Thanks again for your help MC.<br><br><hr id="stopSpelling">Date: Mon, 3 Jan 2011 13:41:57 -0800<br>From: msc@freeswitch.org<br>To: freeswitch-users@lists.freeswitch.org<br>Subject: Re: [Freeswitch-users] calling card app<br><br><br><br><div class="ecxgmail_quote">On Mon, Jan 3, 2011 at 1:17 PM, Rafqat . <span dir="ltr">&lt;<a href="mailto:rafonline@hotmail.com">rafonline@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">




<div>
<br>btw.<br><br>My lua script currently does the following:<br><br>1. Ask for PIN.<br>2. Gets funds for PIN (DB lookup using freeswitch.Dbh) and informs the user of the funds.<br>3. Ask for destination number.<br>4. Checks if enough funds (again using freeswitch Dbh).<br>
5. Gets auto route using mod_lcr.<br>6. Populates leg b session variables necessary for mod_nibble.<br>7. Does the bridging.<br><br>As per your advice I will move the bridging stuff out of the script.&nbsp; Do you think the rest will be ok in lua?<br>
</div></blockquote><div><br></div><div>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.</div><div>-MC</div>
<div>&nbsp;</div><blockquote class="ecxgmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><br>CHeers<br><br>Raf<br><br><br><hr>From: <a href="mailto:rafonline@hotmail.com">rafonline@hotmail.com</a><div class="ecxim">
<br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br></div>Subject: RE: [Freeswitch-users] calling card app<br>Date: Mon, 3 Jan 2011 21:07:33 +0000<div>
<div></div><div class="h5"><br><br>






<br>Thanks very much for the advice.<br><br>Much Appreciated.<br><br><hr>Date: Mon, 3 Jan 2011 11:31:57 -0800<br>From: <a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a><br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
Subject: Re: [Freeswitch-users] calling card app<br><br>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.)<div>

<br></div><div>-MC<br><br><div>On Sun, Jan 2, 2011 at 11:13 AM, Rafqat . <span dir="ltr">&lt;<a href="mailto:rafonline@hotmail.com">rafonline@hotmail.com</a>&gt;</span> wrote:<br><blockquote style="padding-left: 1ex;">





<div>
Hi<br><br>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).<br><br>At the moment I am simply doing everything in a single lua script utilising mod_lcr and mod_nibble.&nbsp; It seems to work ok, but I have not stress tested it yet.<br>

<br>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?). &nbsp;&nbsp; <br><br>Cheers<br><br>Raf<br>

                                               </div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>                                               </div></div></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
<br>_______________________________________________
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                                               </body>
</html>