mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-04 10:43:49 +00:00
Update mwi_notify.lua
Add 0 as default values for new and saved messages.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user