Make the VoicemailUsersList AMI command consistent with other manager list functions.
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 30 Jan 2008 16:54:20 +0000 (16:54 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 30 Jan 2008 16:54:20 +0000 (16:54 +0000)
(closes issue #11874)
 Reported by: srt
 Patches:
       voicemail_ami-11847.patch uploaded by srt (license 378)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@101269 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index ad1f0a2..27146ee 100644 (file)
@@ -8040,10 +8040,11 @@ static int manager_list_voicemail_users(struct mansession *s, const struct messa
        if (AST_LIST_EMPTY(&users)) {
                astman_send_ack(s, m, "There are no voicemail users currently defined.");
                AST_LIST_UNLOCK(&users);
+               astman_append(s, "Event: VoicemailUserEntryComplete\r\n%s\r\n", actionid);
                return RESULT_SUCCESS;
        }
        
-       astman_send_ack(s, m, "Voicemail user list will follow\r\n");
+       astman_send_ack(s, m, "Voicemail user list will follow");
        
        AST_LIST_TRAVERSE(&users, vmu, list) {
                char dirname[256];