summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-06-04 13:08:58 +0200
committerPeter Kozak <spag@golwen.net>2013-06-04 13:08:58 +0200
commit63f253ee3786fdf2970a64b2bbfea5c2ee89b09f (patch)
tree5806207a00a8242bf0b584af3df859a73f02324d /misc/freeswitch/scripts
parenteda886ce7ca310beb844d3e56fd1cc7179ae9d9a (diff)
hangup added
Diffstat (limited to 'misc/freeswitch/scripts')
-rw-r--r--misc/freeswitch/scripts/common/pager.lua3
1 files changed, 1 insertions, 2 deletions
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