diff options
author | Peter Kozak <spag@golwen.net> | 2013-03-17 02:06:28 -0400 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-03-17 02:06:28 -0400 |
commit | 1702b51b05ca73751bd52c715dd453f98d9b578f (patch) | |
tree | 0bbb9657af2c56946bdb0324dfa1ad11bc8c0a02 /misc/freeswitch | |
parent | 5fdcf4e66f1b9d926ace0ab4a78db177b7487ad6 (diff) |
clip/clir flags fixed
Diffstat (limited to 'misc/freeswitch')
-rw-r--r-- | misc/freeswitch/scripts/dialplan/dialplan.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/dialplan/dialplan.lua b/misc/freeswitch/scripts/dialplan/dialplan.lua index ac564d9..b3d6c47 100644 --- a/misc/freeswitch/scripts/dialplan/dialplan.lua +++ b/misc/freeswitch/scripts/dialplan/dialplan.lua @@ -191,6 +191,9 @@ function Dialplan.retrieve_caller_data(self) if not common.str.blank(self.caller.account_type) and not common.str.blank(self.caller.account_uuid) then self.caller.account = self:object_find{class = self.caller.account_type, uuid = self.caller.account_uuid}; if self.caller.account then + self.caller.clir = common.str.to_b(common.array.try(self.caller, 'account.record.clir')); + self.caller.clip = common.str.to_b(common.array.try(self.caller, 'account.record.clip')); + require 'common.phone_number' self.caller.caller_phone_numbers = common.phone_number.PhoneNumber:new{ log = self.log, database = self.database }:list_by_owner(self.caller.account.id, self.caller.account.class); for index, caller_number in ipairs(self.caller.caller_phone_numbers) do |