diff options
author | Peter Kozak <spag@golwen.net> | 2013-07-29 10:20:38 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-07-29 10:20:38 +0200 |
commit | 5e5e579b2a2774ede7272e4bd986570b994e508d (patch) | |
tree | 829ea362a95e65b8b789de30554cdf3640ec8e87 /misc | |
parent | 8045a08a270b9264982ff8b912b59e4fe4fc2aa8 (diff) |
callthrough authentication fixed
Diffstat (limited to 'misc')
-rw-r--r-- | misc/freeswitch/scripts/dialplan/callthrough.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |