Add a hangup hook to dialplan local_extension and remove originator cancel from the failure_handler.

This commit is contained in:
Mark Crane
2015-05-29 05:16:34 +00:00
parent 05c81e2649
commit 06588fdaad
2 changed files with 1 additions and 5 deletions

View File

@@ -19,6 +19,7 @@
<action application="set" data="called_party_call_group=${user_data(${dialed_extension}@${domain_name} var call_group)}"/>
<!--<action application="export" data="nolocal:sip_secure_media=${user_data(${dialed_extension}@${domain_name} var sip_secure_media)}"/>-->
<action application="hash" data="insert/${domain_name}-last_dial/${called_party_call_group}/${uuid}"/>
<action application="set" data="api_hangup_hook=lua app.lua hangup"/>
<!-- standard method -->
<action application="bridge" data="user/${destination_number}@${domain_name}"/>
<!-- sofia contact -->

View File

@@ -177,11 +177,6 @@
freeswitch.consoleLog("NOTICE", "[failure_handler] - CALL_REJECT - hangup()\n");
session:hangup();
elseif (originate_disposition == "Originator Cancel" and hangup_on_call_reject =="true") then
--send missed call notification
missed();
end
end
end