diff --git a/app/switch/resources/scripts/page.lua b/app/switch/resources/scripts/page.lua index 073b289580..f587c2c60e 100644 --- a/app/switch/resources/scripts/page.lua +++ b/app/switch/resources/scripts/page.lua @@ -87,6 +87,27 @@ if ( session:ready() ) then mute = session:getVariable("mute"); delay = session:getVariable("delay"); + --if the call is transferred then return the call backe to the referred by user + referred_by = session:getVariable("sip_h_Referred-By"); + if (referred_by ~= nil) then + --get the uuid of the call + uuid = session:getVariable("uuid"); + + --find the referred by user + referred_by_user = referred_by:match("