summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-09-10 01:03:27 +0000
committerTed Trask <ttrask01@yahoo.com>2013-09-10 01:03:27 +0000
commit914a21927097f228cb134e874a8794cb6f24727c (patch)
treec09a7047e108bd44f1028acc4142f42d23ea5cda
parent4a88e3a2bcf11d93ba0056affc1619dab549b378 (diff)
downloadacf-provisioning-914a21927097f228cb134e874a8794cb6f24727c.tar.bz2
acf-provisioning-914a21927097f228cb134e874a8794cb6f24727c.tar.xz
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.
-rwxr-xr-xconfig/notify_device6
1 files changed, 6 insertions, 0 deletions
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()