Update mwi_notify.lua
Add 0 as default values for new and saved messages.
This commit is contained in:
parent
f5b4a54403
commit
e5cf6bde51
|
|
@ -2,8 +2,8 @@
|
||||||
--get the argv values
|
--get the argv values
|
||||||
voicemail_id = argv[1];
|
voicemail_id = argv[1];
|
||||||
domain_name = argv[2];
|
domain_name = argv[2];
|
||||||
new_messages = argv[3];
|
new_messages = argv[3] or '0';
|
||||||
saved_messages = argv[4];
|
saved_messages = argv[4] or '0';
|
||||||
|
|
||||||
--include the lua script
|
--include the lua script
|
||||||
require "resources.functions.config";
|
require "resources.functions.config";
|
||||||
|
|
@ -19,3 +19,4 @@
|
||||||
|
|
||||||
--send the message waiting event
|
--send the message waiting event
|
||||||
mwi_notify(voicemail_id..'@'..domain_name, domain_name, new_messages, saved_messages);
|
mwi_notify(voicemail_id..'@'..domain_name, domain_name, new_messages, saved_messages);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue