<div dir="ltr">You can do everything from the dial plan, with a few queries and/or mod_lcr. You&#39;ll have to adjust the account balance post-call, though, via the cdr.<div>For making sure it is prepaid, you can use api_sched_hangup/transfer and then you don&#39;t need mod_nibblebill.</div>

<div><br></div><div>-Avi<br><br><div class="gmail_quote">On Mon, Apr 11, 2011 at 4:06 PM,  <span dir="ltr">&lt;<a href="mailto:rhuddleston@gmail.com">rhuddleston@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

I have a custom written LUA script which utilizes mod_lcr and mod_nibblebill. I&#39;m also using xml cdr support.<br>
<div><div></div><div class="h5"><br>
On Apr 11, 2011, at 4:55 AM, alex pappas &lt;<a href="mailto:rebel.pappas@gmail.com">rebel.pappas@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Dear all,<br>
&gt;<br>
&gt; I&#39;m very new to Freeswitch and I&#39;m trying to find the best way to implement an application which will handle calling cards.<br>
&gt;<br>
&gt; The scenario is simple. A user makes a call, the call get answered and the user gives the pin number and if is correct  then the user can make a call.<br>
&gt;<br>
&gt; My question is how is the best way to implement this?<br>
&gt;<br>
&gt; 1. Through a script which will be called from the dialplan<br>
&gt; 2. From Inbound ESL<br>
&gt; 3. From Outbound ESL<br>
&gt;<br>
&gt; Thank you in advance<br>
&gt;<br>
&gt; Alex<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<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>
</blockquote></div><br></div></div>