I'm wondering if there's any features that allow the cron-like execution of code inside of Freeswitch, preferably with lua--or if I am stuck using the api interface and running the cron outside of freeswitch. --matt
2009/3/25 Matthew Fong <mattdfong@gmail.com>:
I'm wondering if there's any features that allow the cron-like execution of code inside of Freeswitch, preferably with lua--or if I am stuck using the api interface and running the cron outside of freeswitch. --matt
I guess the most important question you can answer is this: why do you need the cron-like feature to be inside FreeSWITCH? -MC
I need Cron-Like Execution in FS to do online Billing. Is there any method to 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. Regards Hamid R. Hashmi -- Sent from: http://freeswitch-users.2379917.n2.nabble.com/
try sched_api or sched_broadcast https://freeswitch.org/confluence/display/FREESWITCH/mod_commands Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 On Wed, Feb 10, 2021 at 12:28 PM hrhashmi <hamid2kviii@hotmail.com> wrote:
I need Cron-Like Execution in FS to do online Billing. Is there any method to 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.
Regards 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 services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
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> wrote:
I need Cron-Like Execution in FS to do online Billing. Is there any method to 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.
Regards 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 services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
Not sure what you're asking Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 On Wed, Feb 10, 2021 at 1:04 PM Jurijs Ivolga <jurijs.ivolga@gmail.com> wrote:
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> wrote:
I need Cron-Like Execution in FS to do online Billing. Is there any method to 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.
Regards 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 services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
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 https://freeswitch.com
participants (5)
-
David Villasmil
-
hrhashmi
-
Jurijs Ivolga
-
Matthew Fong
-
Michael Collins