diff options
author | Ted Trask <ttrask01@yahoo.com> | 2013-09-10 01:03:27 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2013-09-10 01:26:38 +0000 |
commit | 83a146a66b517d580fcc3468536bb3afe1a347dc (patch) | |
tree | 7d82fd6027dd78c68ef2e851465872807423592f | |
parent | d7769857337cdf0a2a6c440a80fc770a4ba02df3 (diff) | |
download | acf-provisioning-83a146a66b517d580fcc3468536bb3afe1a347dc.tar.bz2 acf-provisioning-83a146a66b517d580fcc3468536bb3afe1a347dc.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.
(cherry picked from commit 914a21927097f228cb134e874a8794cb6f24727c)
-rwxr-xr-x | config/notify_device | 6 |
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() |