From 914a21927097f228cb134e874a8794cb6f24727c Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 10 Sep 2013 01:03:27 +0000 Subject: Modify notify_device so it works with both unprovisioned Linksys and Polycom Send two check-sync messages. One to sip:@IP. Other to sip:0@IP. --- config/notify_device | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/notify_device b/config/notify_device index aecf85a..3811d3f 100755 --- a/config/notify_device +++ b/config/notify_device @@ -27,4 +27,10 @@ local msg = "NOTIFY sip:"..user.."@"..address..":5060 SIP/2.0\n".. local s = assert(socket.udp()) assert(s:sendto(msg, address, 5060)) + +if "" == user then + msg = string.gsub(msg, "sip:", "sip:0") + assert(s:sendto(msg, address, 5060)) +end + s:close() -- cgit v1.2.3