VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
hamid2kviii at hotmail... Guest
|
|
Back to top |
|
|
david.villasmil.work a... Guest
|
|
Back to top |
|
|
jurijs.ivolga at gmail... Guest
|
Posted: Wed Feb 10, 2021 8:34 am Post subject: [Freeswitch-users] Cron-like execution in FS |
|
|
Hi,
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 scheduler.
With kind regards,
Jurijs
On Wed, Feb 10, 2021 at 2:42 PM hrhashmi <hamid2kviii@hotmail.com (hamid2kviii@hotmail.com)> wrote:
|
|
Back to top |
|
|
david.villasmil.work a... Guest
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|