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:
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