mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-22 16:38:28 +00:00
Default behavior before call forward on busy was if busy go to voicemail. I just re-established that default for any company wanting to simply hangup on calls when the destination is busy then set system -> variables or domain -> variables to send_to_voicemail=false. This is a better default as it would require those wanting to simply hangup to set the value to false allowing the default behavior is preserved.
This commit is contained in:
@@ -65,8 +65,7 @@
|
||||
end
|
||||
end
|
||||
if (originate_disposition ~= nil) then
|
||||
send_to_voicemail = session:getVariable("send_to_voicemail");
|
||||
if (originate_disposition == 'USER_BUSY' and send_to_voicemail ~= "true") then
|
||||
if (originate_disposition == 'USER_BUSY') then
|
||||
freeswitch.consoleLog("notice", "[app] forward on busy: ".. scripts_dir .. "/app/forward_on_busy/index.lua" .. arguments .."\n");
|
||||
forward_on_busy = loadfile(scripts_dir .. "/app/forward_on_busy/index.lua")(argv);
|
||||
freeswitch.consoleLog("notice", "[app] forward on busy: ".. tostring(forward_on_busy) .. "\n");
|
||||
|
||||
Reference in New Issue
Block a user