I think you should also use uuid of call. This is from confluence: <action application="export" data="nolocal:api_on_answer=sched_hangup +60 ${uuid} alloted_timeout" /> 2018-07-03 16:38 GMT+02:00 Rick Jarvis <rick@magicmail.mooo.com>:
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
-- Gregor Nanger *CTO* t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia • www.infomedia.si