diff options
Diffstat (limited to 'config/notify_device')
-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() |