]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Modify externnotify to take the number of urgent voicemails as a final argument instead
authorMark Michelson <mmichelson@digium.com>
Thu, 15 May 2008 15:24:29 +0000 (15:24 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 15 May 2008 15:24:29 +0000 (15:24 +0000)
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

UPGRADE.txt
apps/app_voicemail.c

index 415150178246972a8c0236e16c6c3f8cbaed9e19..ff3ca921b6cb6bf97573055041fc418d4f42bfe4 100644 (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:
 
index 8a0ebabbcc3fa96c1e3e53811256e6147e063e4a..7c2cb9dba502cc31b3792389b5aa1e8dab852dba 100644 (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);
                }