Update mwi_notify.lua

Add 0 as default values for new and saved messages.
This commit is contained in:
FusionPBX 2020-11-09 22:03:33 -07:00 committed by GitHub
parent f5b4a54403
commit e5cf6bde51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -2,8 +2,8 @@
--get the argv values
voicemail_id = argv[1];
domain_name = argv[2];
new_messages = argv[3];
saved_messages = argv[4];
new_messages = argv[3] or '0';
saved_messages = argv[4] or '0';
--include the lua script
require "resources.functions.config";
@ -19,3 +19,4 @@
--send the message waiting event
mwi_notify(voicemail_id..'@'..domain_name, domain_name, new_messages, saved_messages);