You are open to losing money though if they can make more than one call at once - each would be scheduled as if they were the only call, allowing the callers to drop below 0.

Steve on iPhone

On 27 Apr 2011, at 11:17, Nicolas Brenner <nico@clickfono.com> wrote:

If you know the rate and the balance for the call, you may calculate the maximum time for the call as max_time = balance/rate. Then you may schedule a hangup for that call max_time in the future, something like this:

sched_hangup +" + max_time + " "+ call_uuid +" 'ALLOTED_TIMEOUT'

That way the balance shouldn't go below 0, since you are hanging up the call before it does, with hangup cause ALLOTED_TIMEOUT.



On Fri, Mar 4, 2011 at 2:44 PM, David Villasmil <david.villasmil.work@gmail.com> wrote:
Hello,

I do the route selecting with a lua script. overflow and load distribution with mod_distributor loaded via curl.

the prepaid side is done with nibble, yes. But i don't like it too much, i might just deduct the balance when the call disconnects and let the authorization block new calls, so the balance might go under 0 a little... 




On Sun, Feb 27, 2011 at 9:06 PM, Saeed Ahmed <saeedahmad1981@gmail.com> wrote:
press sent too quick..

what did you use for routing? curl? esl?

did you use nibble bill for prepaid app?


On Sun, Feb 27, 2011 at 9:05 PM, Saeed Ahmed <saeedahmad1981@gmail.com> wrote:
Great!

want to see it soon.




_______________________________________________
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