[Freeswitch-users] Cron-like execution in FS
jurijs.ivolga at gmail.com
Wed Feb 10 13:03:57 UTC 2021
I do this in following way:
First I check with lua script if a call is allowed and there are credits
and I reserve credits for n seconds. Then I bridge with
"api_on_answer=luarun myscript.lua". This will execute the myscript.lua
when a call is answered and then inside that script every n seconds I try
to reserve more seconds, if not then the call is hung up, because of the
With kind regards,
On Wed, Feb 10, 2021 at 2:42 PM hrhashmi <hamid2kviii at hotmail.com> wrote:
> I need Cron-Like Execution in FS to do online Billing. Is there any method
> do that?
> When the Call is answered, I need to execute an API after every specific
> time of duration to bill consumed second and taking permission to keep the
> call answered for the next specific duration of time.
> Hamid R. Hashmi
> Sent from: http://freeswitch-users.2379917.n2.nabble.com/
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> Build your next product on our scalable cloud platform.
> Join our online community to chat in real time
> Professional FreeSWITCH Services
> sales at freeswitch.com
> Official FreeSWITCH Sites
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FreeSWITCH-users