From 500ef315442a7fad3647f9b58ae59ab70c45c4b8 Mon Sep 17 00:00:00 2001 From: spag Date: Wed, 6 Feb 2013 10:28:11 +0100 Subject: try to resync if phone model not found --- misc/freeswitch/scripts/phones/phone.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'misc/freeswitch/scripts/phones/phone.lua') 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; -- cgit v1.2.3