From 63f253ee3786fdf2970a64b2bbfea5c2ee89b09f Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Tue, 4 Jun 2013 13:08:58 +0200 Subject: hangup added --- misc/freeswitch/scripts/common/pager.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'misc/freeswitch/scripts/common') diff --git a/misc/freeswitch/scripts/common/pager.lua b/misc/freeswitch/scripts/common/pager.lua index bf19ba6..6896e4c 100644 --- a/misc/freeswitch/scripts/common/pager.lua +++ b/misc/freeswitch/scripts/common/pager.lua @@ -50,7 +50,7 @@ function Pager.enter(self) self:callback(); local result = self.caller:execute('conference', self.identifier .. "@profile_" .. self.identifier .. "++flags{" .. flags .. "}"); - + self.caller:hangup('NORMAL_CLEARING'); self:callback(); end @@ -70,7 +70,6 @@ function Pager.callback(self) end local command = 'http_request.lua ' .. self.caller.uuid .. ' ' .. common.array.expand_variables(self.record.callback_url, destination, self.caller); - require 'common.fapi'; return common.fapi.FApi:new():execute('luarun', command); end -- cgit v1.2.3