]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
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 ad1f0a23acf8b1e670edfc6569b723ff0afc1923..27146eecb002c3924bb8833266b113c7e58a821b 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];