Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Cron-like execution in FS


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
hamid2kviii at hotmail...
Guest





PostPosted: Wed Feb 10, 2021 7:43 am    Post subject: [Freeswitch-users] Cron-like execution in FS Reply with quote

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
Back to top
david.villasmil.work a...
Guest





PostPosted: Wed Feb 10, 2021 8:25 am    Post subject: [Freeswitch-users] Cron-like execution in FS Reply with quote

try

sched_api or sched_broadcast


https://freeswitch.org/confluence/display/FREESWITCH/mod_commands

Regards,


David Villasmilemail: david.villasmil.work@gmail.com (david.villasmil.work@gmail.com)
phone: +34669448337







On Wed, Feb 10, 2021 at 12:28 PM hrhashmi <hamid2kviii@hotmail.com (hamid2kviii@hotmail.com)> wrote:

Quote:
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 (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 (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
Back to top
jurijs.ivolga at gmail...
Guest





PostPosted: Wed Feb 10, 2021 8:34 am    Post subject: [Freeswitch-users] Cron-like execution in FS Reply with quote

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:

Quote:
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 (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 (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
Back to top
david.villasmil.work a...
Guest





PostPosted: Wed Feb 10, 2021 9:22 am    Post subject: [Freeswitch-users] Cron-like execution in FS Reply with quote

Not sure what you're askingRegards,


David Villasmilemail: david.villasmil.work@gmail.com (david.villasmil.work@gmail.com)
phone: +34669448337







On Wed, Feb 10, 2021 at 1:04 PM Jurijs Ivolga <jurijs.ivolga@gmail.com (jurijs.ivolga@gmail.com)> wrote:

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

Quote:
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 (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 (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 (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 (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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

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

VoiceMeUp - Corporate & Wholesale VoIP Services