Fix a problem where the if the last phone ringing is not registered then the call ends with error user not registered. Fixed a problem where the last person rejects the call it would send a busy back to the caller rather than sending to the timeout action.
This commit is contained in:
@@ -371,7 +371,13 @@
|
|||||||
if (app_data ~= nil) then
|
if (app_data ~= nil) then
|
||||||
--freeswitch.consoleLog("NOTICE", "[ring group] app_data: "..app_data.."\n");
|
--freeswitch.consoleLog("NOTICE", "[ring group] app_data: "..app_data.."\n");
|
||||||
session:execute("bridge", app_data);
|
session:execute("bridge", app_data);
|
||||||
if (session:getVariable("originate_disposition") == "ALLOTTED_TIMEOUT" or session:getVariable("originate_disposition") == "NO_ANSWER" or session:getVariable("originate_disposition") == "ORIGINATOR_CANCEL") then
|
if (session:getVariable("originate_disposition") == "ALLOTTED_TIMEOUT"
|
||||||
|
or session:getVariable("originate_disposition") == "NO_ANSWER"
|
||||||
|
or session:getVariable("originate_disposition") == "ORIGINATOR_CANCEL"
|
||||||
|
or session:getVariable("originate_disposition") == "USER_NOT_REGISTERED"
|
||||||
|
or session:getVariable("originate_disposition") == "NORMAL_TEMPORARY_FAILURE"
|
||||||
|
or session:getVariable("originate_disposition") == "NO_ROUTE_DESTINATION"
|
||||||
|
or session:getVariable("originate_disposition") == "USER_BUSY") then
|
||||||
session:execute(ring_group_timeout_app, ring_group_timeout_data);
|
session:execute(ring_group_timeout_app, ring_group_timeout_data);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user