I'm not sure how it works with originate -- but there's two versions as per the docs <https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools:+sched+hangup>. There's sched_hangup and calling it as an api. If you call it as an API, then you need to put the ${uuid} in, which I don't know if that's available in an originate unless you specify it. What do the logs say when the time expires? I have an api_on_answer in my bridge string, to only cut off the b leg: <action application="export" data="nolocal:api_on_answer=sched_transfer +999 ${uuid} cutoff_incall"/> -Avi Marcus BestFone On Wed, Jul 4, 2018 at 1:12 AM Rick Jarvis <rick@magicmail.mooo.com> wrote:
Hey all
Looking for a way to limit all calls to a maximum of 10 minutes, when originating a call using the event socket.
I’ve tried using sched_hangup like this:
originate {origination_caller_id_number=01234567890,execute_on_answer=sched_hangup +600 alloted_timeout}sofia/. . . .
But no dice…
R _________________________________________________________________________ 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