Add a few extra headers in the voicemail users listing in
authorOlle Johansson <oej@edvina.net>
Mon, 10 Dec 2007 13:29:57 +0000 (13:29 +0000)
committerOlle Johansson <oej@edvina.net>
Mon, 10 Dec 2007 13:29:57 +0000 (13:29 +0000)
manager 1.1. Update documentation too.

(closes issue #11495)
Reported by: caio1982
Patches:
      extra_vm_manager_info1.diff uploaded by caio1982 (license 22)

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

apps/app_voicemail.c
doc/manager_1_1.txt

index 259c55e..be062d9 100644 (file)
@@ -7960,8 +7960,14 @@ static int manager_list_voicemail_users(struct mansession *s, const struct messa
                              "UniqueID: %s\r\n"
                              "ExitContext: %s\r\n"
                              "SayDurationMinimum: %d\r\n"
+                             "SayEnvelope: %s\r\n"
+                             "SayCID: %s\r\n"
+                             "AttachMessage: %s\r\n"
                              "AttachmentFormat: %s\r\n"
+                             "DeleteMessage: %s\r\n"
                              "VolumeGain: %.2f\r\n"
+                             "CanReview: %s\r\n"
+                             "CallOperator: %s\r\n"
                              "MaxMessageCount: %d\r\n"
                              "MaxMessageLength: %d\r\n"
                              "NewMessageCount: %d\r\n"
@@ -7970,11 +7976,31 @@ static int manager_list_voicemail_users(struct mansession *s, const struct messa
                              "IMAPUser: %s\r\n"
 #endif
                              "\r\n",
-                             actionid, vmu->context, vmu->mailbox, vmu->fullname, vmu->email,
-                             vmu->pager, vmu->serveremail, vmu->mailcmd, vmu->language,
-                             vmu->zonetag, vmu->callback, vmu->dialout, vmu->uniqueid,
-                             vmu->exit, vmu->saydurationm, vmu->attachfmt, vmu->volgain,
-                             vmu->maxmsg, vmu->maxsecs, 
+                             actionid,
+                             vmu->context,
+                             vmu->mailbox,
+                             vmu->fullname,
+                             vmu->email,
+                             vmu->pager,
+                             vmu->serveremail,
+                             vmu->mailcmd,
+                             vmu->language,
+                             vmu->zonetag,
+                             vmu->callback,
+                             vmu->dialout,
+                             vmu->uniqueid,
+                             vmu->exit,
+                             vmu->saydurationm,
+                             ast_test_flag(vmu, VM_ENVELOPE) ? "Yes" : "No",
+                             ast_test_flag(vmu, VM_SAYCID) ? "Yes" : "No",
+                             ast_test_flag(vmu, VM_ATTACH) ? "Yes" : "No",
+                             vmu->attachfmt,
+                             ast_test_flag(vmu, VM_DELETE) ? "Yes" : "No",
+                             vmu->volgain,
+                             ast_test_flag(vmu, VM_REVIEW) ? "Yes" : "No",
+                             ast_test_flag(vmu, VM_OPERATOR) ? "Yes" : "No",
+                             vmu->maxmsg,
+                             vmu->maxsecs,
 #ifdef IMAP_STORAGE
                                  new, old, vmu->imapuser
 #else
index 2a3818f..3a4b2d9 100644 (file)
@@ -107,6 +107,10 @@ Changes to manager version 1.1:
        New header
        - (new)         -> Items:       Reports number of channels reported
 
+- Action VoicemailUsersList
+       Added new headers for SayEnvelope, SayCID, AttachMessage, CanReview
+        and CallOperator voicemail configuration settings.
+
 * NEW ACTIONS
 -------------
 - Action: ModuleLoad