dect
/
asterisk
Archived
13
0
Fork 0

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: http://svn.digium.com/svn/asterisk/trunk@116592 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
mmichelson 2008-05-15 15:24:29 +00:00
parent 2589df478d
commit 15c4716a78
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ Voicemail:
Examples of situations that would require this option are web interfaces to
voicemail or an email client in the case of using IMAP storage.
* The externnotify script should accept an additional (last) parameter
containing the string "URGENT" if there are new urgent messages in the INBOX.
containing the number of urgent messages in the INBOX.
Applications:

View File

@ -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);
}