diff options
author | spag <spag@golwen.net> | 2013-02-06 10:28:11 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-02-06 10:28:11 +0100 |
commit | 500ef315442a7fad3647f9b58ae59ab70c45c4b8 (patch) | |
tree | aa5a4c7fbcb3938caea406156111bac8de272431 /misc/freeswitch/scripts | |
parent | 64912b6266ae449a2052f51e769ce59950b70da8 (diff) |
try to resync if phone model not found
Diffstat (limited to 'misc/freeswitch/scripts')
-rw-r--r-- | misc/freeswitch/scripts/phones/phone.lua | 5 |
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; |