mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-28 15:11:12 +00:00
Modify externnotify to take the number of urgent voicemails as a final argument instead
of the string "Urgent" (closes issue #12660) Reported by: jaroth Patches: externnotify.patch uploaded by jaroth (license 50) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116592 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3648,7 +3648,7 @@ static void run_externnotify(char *context, char *extension, const char *flag)
|
||||
if (inboxcount(ext_context, &urgentvoicemails, &newvoicemails, &oldvoicemails)) {
|
||||
ast_log(AST_LOG_ERROR, "Problem in calculating number of voicemail messages available for extension %s\n", extension);
|
||||
} else {
|
||||
snprintf(arguments, sizeof(arguments), "%s %s %s %d %s&", externnotify, context, extension, newvoicemails, S_OR(flag,""));
|
||||
snprintf(arguments, sizeof(arguments), "%s %s %s %d %d&", externnotify, context, extension, newvoicemails, urgentvoicemails);
|
||||
ast_debug(1, "Executing %s\n", arguments);
|
||||
ast_safe_system(arguments);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user