Update index.lua (#3953)

When bridge application ends with "originate_disposition: ALLOTTED_TIMEOUT" for example, the "missed call" feature doesn't work for ring group because of hangup hook isn't called. Should we just avoid using this channel variable or add additional processing at the end? Like for timeout action? I choose to call "missed" at the end of script. But may be we should add it to other places too?
This commit is contained in:
borisk1976 2018-12-24 00:06:40 +05:00 committed by FusionPBX
parent 3faacfbef1
commit 2771fe837a
1 changed files with 2 additions and 0 deletions

View File

@ -879,6 +879,8 @@
if ring_group_timeout_app and #ring_group_timeout_app > 0 then
session:execute(ring_group_timeout_app, ring_group_timeout_data);
end
--check and report missed call
missed()
end
else
if (ring_group_timeout_app ~= nil) then