summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts/phones/phone.lua
diff options
context:
space:
mode:
Diffstat (limited to 'misc/freeswitch/scripts/phones/phone.lua')
-rw-r--r--misc/freeswitch/scripts/phones/phone.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/misc/freeswitch/scripts/phones/phone.lua b/misc/freeswitch/scripts/phones/phone.lua
index 6219eb1..174503b 100644
--- a/misc/freeswitch/scripts/phones/phone.lua
+++ b/misc/freeswitch/scripts/phones/phone.lua
@@ -27,11 +27,14 @@ function Phone.list_by_sql(self, sql_query)
phone.record.ieee_name = common.str.downcase(account_entry.ieee_name);
if phone.record.ieee_name == 'snom technology ag' then
- require 'phones.snom'
+ require 'phones.snom';
phone.model = phones.snom.Snom:new{ log = self.log };
elseif account_entry.ieee_name == 'siemens enterprise communicationsgmbh & co. kg' then
- require 'phones.siemens'
+ require 'phones.siemens';
phone.model = phones.siemens.Siemens:new{ log = self.log };
+ elseif phone.record.ieee_name == 'xiamen yealink network technology co.,ltd' then
+ require 'phones.yealink';
+ phone.model = phones.yealink.Yealink:new{ log = self.log };
end
table.insert(account_phones, phone);
end)