mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-04 18:53:49 +00:00
Add a hangup hook to dialplan local_extension and remove originator cancel from the failure_handler.
This commit is contained in:
@@ -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 -->
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user