From 5e5e579b2a2774ede7272e4bd986570b994e508d Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Mon, 29 Jul 2013 10:20:38 +0200 Subject: callthrough authentication fixed --- misc/freeswitch/scripts/dialplan/callthrough.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'misc/freeswitch/scripts/dialplan/callthrough.lua') diff --git a/misc/freeswitch/scripts/dialplan/callthrough.lua b/misc/freeswitch/scripts/dialplan/callthrough.lua index 69a0611..59f170a 100644 --- a/misc/freeswitch/scripts/dialplan/callthrough.lua +++ b/misc/freeswitch/scripts/dialplan/callthrough.lua @@ -52,8 +52,8 @@ function Callthrough.authenticate(self, caller) end self.log:debug('CALLTHROUGH_AUTHENTICATE - access_authorizations: ', #self.access_authorizations); - for index, authorization in ipairs(self.access_authorizations) do - if authorization.phone_number then + for index, authorization in ipairs(self.access_authorizations) do + if not common.str.blank(authorization.phone_number) then if authorization.phone_number == caller.caller_phone_number then if authorization.pin and authorization.pin ~= "" then if caller.session:read(authorization.pin:len(), authorization.pin:len(), "ivr/ivr-please_enter_pin_followed_by_pound.wav", 3000, "#") ~= authorization.pin then -- cgit v1.2.3