summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts/phones/phone.lua
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-02-06 10:28:11 +0100
committerspag <spag@golwen.net>2013-02-06 10:28:11 +0100
commit500ef315442a7fad3647f9b58ae59ab70c45c4b8 (patch)
treeaa5a4c7fbcb3938caea406156111bac8de272431 /misc/freeswitch/scripts/phones/phone.lua
parent64912b6266ae449a2052f51e769ce59950b70da8 (diff)
try to resync if phone model not found
Diffstat (limited to 'misc/freeswitch/scripts/phones/phone.lua')
-rw-r--r--misc/freeswitch/scripts/phones/phone.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/misc/freeswitch/scripts/phones/phone.lua b/misc/freeswitch/scripts/phones/phone.lua
index 6da20f0..57997ba 100644
--- a/misc/freeswitch/scripts/phones/phone.lua
+++ b/misc/freeswitch/scripts/phones/phone.lua
@@ -115,8 +115,9 @@ end
function Phone.resync(self, arg)
if not self.model then
- self.log:notice('PHONE_RESYNC - unsupported phone model');
- return false;
+ self.log:notice('PHONE_RESYNC phone model not found - trying Snom resync');
+ require 'phones.snom'
+ return phones.snom.Snom:new{ log = self.log }:resync(arg);
end
arg.ip_address = arg.ip_address or self.record.ip_address;