Index: apps/app_voicemail.c =================================================================== --- apps/app_voicemail.c (revision 116349) +++ apps/app_voicemail.c (working copy) @@ -3648,7 +3654,7 @@ 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); } Index: UPGRADE.txt =================================================================== --- UPGRADE.txt (revision 116349) +++ UPGRADE.txt (working copy) @@ -75,7 +75,7 @@ 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: