ORIGINATOR_CANCEL and dialplan proccessing
Hello guys, I need to run system command after getting ORIGINATOR_CANCEL status message. Judging by http://jira.freeswitch.org/browse/FS-3561 i can get it working by adding <action application="set_zombie_exec"/> to my dialplan. But it proceedes anyway even after successfully hanging up call. My snippet of dialplan: http://pastebin.freeswitch.org/21771
2013/12/25 Anton Kvashenkin <anton.jugatsu@gmail.com>
ORIGINATOR_CANCEL
Hello May be something like lua and api_hangup_hook: <action application="export" data="api_hangup_hook=lua hangup_hook.lua"/> local originate_disposition = env:getHeader ("variable_originate_disposition") if tostring(originate_disposition) == 'ORIGINATOR_CANCEL' then .... end
Thanks, Aleksandr. I give it try. 2013/12/25 Aleksandr Chusov <chusov.alexsandr@gmail.com>
2013/12/25 Anton Kvashenkin <anton.jugatsu@gmail.com>
ORIGINATOR_CANCEL
Hello May be something like lua and api_hangup_hook:
<action application="export" data="api_hangup_hook=lua hangup_hook.lua"/>
local originate_disposition = env:getHeader ("variable_originate_disposition")
if tostring(originate_disposition) == 'ORIGINATOR_CANCEL' then .... end
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
participants (2)
-
Aleksandr Chusov
-
Anton Kvashenkin