summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()