summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-07-09 12:11:01 +0200
committerPeter Kozak <spag@golwen.net>2013-07-09 12:11:01 +0200
commite59fda6f6dd64dfe0bd2cdea66b19e3ba1fa4f90 (patch)
treecbd90a8f6c55930fededeb83e1f44383af66d13b
parent9a15a154da657961a5430225503852d3347e3e08 (diff)
check if phone_book_entry image is blank
-rw-r--r--misc/freeswitch/scripts/dialplan/dialplan.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/freeswitch/scripts/dialplan/dialplan.lua b/misc/freeswitch/scripts/dialplan/dialplan.lua
index 56a5def..370aa0b 100644
--- a/misc/freeswitch/scripts/dialplan/dialplan.lua
+++ b/misc/freeswitch/scripts/dialplan/dialplan.lua
@@ -352,7 +352,7 @@ function Dialplan.dial(self, destination)
self.log:debug('RINGTONE - phonebookentry=', self.caller.phone_book_entry.id, ', ringtone: ', self.caller.phone_book_entry.bellcore_id);
self.caller:export_variable('alert_info', 'http://amooma.de;info=Ringer' .. self.caller.phone_book_entry.bellcore_id .. ';x-line-id=0');
end
- if self.caller.phone_book_entry.image then
+ if not common.str.blank(self.caller.phone_book_entry.image) then
self:set_caller_picture(self.caller.phone_book_entry.id, 'phonebookentry', self.caller.phone_book_entry.image);
elseif self.caller.account and self.caller.account.owner then
self:set_caller_picture(self.caller.account.owner.id, self.caller.account.owner.class);