Fix the ring group timeout action so that is not executed when a call is parked using the approach used by hunt groups.

This commit is contained in:
Mark Crane
2013-02-19 20:25:50 +00:00
parent ac2eac17db
commit 80dac680ce

View File

@@ -124,9 +124,7 @@
session:execute("bind_meta_app", "3 ab s execute_extension::cf XML features");
session:execute("bind_meta_app", "4 ab s execute_extension::att_xfer XML features");
session:execute("bridge", app_data);
if (session:getVariable("last_bridge_hangup_cause") == "NORMAL_CLEARING") then
--ring group was answered
else
if (session:getVariable("originate_disposition") ~= "SUCCESS") then
session:execute(ring_group_timeout_app, ring_group_timeout_data);
end
end
@@ -137,3 +135,4 @@
--table.insert(ACTIONS, {"set", "continue_on_fail=true"});
--table.insert(ACTIONS, {"bridge", app_data});
--table.insert(ACTIONS, {ring_group_timeout_app, ring_group_timeout_data});