Barry L. Kline
2009-Oct-19 21:29 UTC
[asterisk-users] IMAP voicemail using subfolders fails.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I am running 1.6.0.15 and am trying to get IMAP storage working. I have had no trouble doing so, except that I wish to create a subfolder in my account for voicemail, such that I have: #voicemail/ INBOX Old Family Friends Work I can set IMAPFOLDER=#voicemail.INBOX in voicemail.conf and successfully get voicemail to work as expected. Messages appear in INBOX and are deleted if removed from the phone. If, however, I attempt to "change folders" with option 2, I get the following error: file.c:950 ast_streamfile: Unable to open vm-#voicemail.INBOX (format 0x4 (ulaw)): No such file or directory Clearly, app_voicemail is looking for vm-INBOX and is building the voicemail prompt file name based upon the voicemail folder. I attempted to symlink vm-INBOX.gsm to vm-vm-#voicemail.INBOX.gsm but that didn't help, either. I have tried using the combination of: IMAPPARENTFOLDER=#voicemail IMAPFOLDER=INBOX but in this case the VM system can't find the messages and the voicemail app simply dies. So that isn't the right incantation. Surely, it's possible to do what I'm looking to do, isn't it? So my questions are: "How do I configure app_voicemail to use IMAP subfolders?" and "I have used '/' as the delimter as well as the '.' character. Am I using the wrong one and if so, what is the correct one?" TIA, Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFK3NotCFu3bIiwtTARAgXoAJ48uOG0DgJzjM2mtnjbqbZMJ/nWrQCfYxLJ yH55gWUN5iBp2+bagDHIklA=oJXN -----END PGP SIGNATURE-----
John A. Sullivan III
2009-Oct-19 22:42 UTC
[asterisk-users] IMAP voicemail using subfolders fails.
On Mon, 2009-10-19 at 17:29 -0400, Barry L. Kline wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I am running 1.6.0.15 and am trying to get IMAP storage working. I > have had no trouble doing so, except that I wish to create a subfolder > in my account for voicemail, such that I have: > > #voicemail/ > INBOX > Old > Family > Friends > Work > > I can set IMAPFOLDER=#voicemail.INBOX in voicemail.conf and successfully > get voicemail to work as expected. Messages appear in INBOX and are > deleted if removed from the phone. If, however, I attempt to "change > folders" with option 2, I get the following error: > > file.c:950 ast_streamfile: Unable to open vm-#voicemail.INBOX (format > 0x4 (ulaw)): No such file or directory > > Clearly, app_voicemail is looking for vm-INBOX and is building the > voicemail prompt file name based upon the voicemail folder. I attempted > to symlink vm-INBOX.gsm to vm-vm-#voicemail.INBOX.gsm but that didn't > help, either. > > I have tried using the combination of: > > IMAPPARENTFOLDER=#voicemail > IMAPFOLDER=INBOX > > but in this case the VM system can't find the messages and the voicemail > app simply dies. So that isn't the right incantation. > > Surely, it's possible to do what I'm looking to do, isn't it? So my > questions are: "How do I configure app_voicemail to use IMAP > subfolders?" and "I have used '/' as the delimter as well as the '.' > character. Am I using the wrong one and if so, what is the correct one?"<snip> I can't help you directly but I can share my experience with folders. I intentionally did not set up the folder structure in IMAP as recommended in the documentation. To my pleasant surprise, when the folders were needed (e.g., a user moves a voice mail via the voicemail application to "friends", etc.), they were created on the fly, i.e., Asterisk created them within the IMAP folder system. I am using 1.6.1.6 with Zimbra as the backend - John -- John A. Sullivan III Open Source Development Corporation +1 207-985-7880 jsullivan at opensourcedevel.com http://www.spiritualoutreach.com Making Christianity intelligible to secular society
Barry L. Kline
2009-Oct-19 23:06 UTC
[asterisk-users] IMAP voicemail using subfolders fails.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Barry L. Kline wrote: I know that it is bad form to reply to yourself, but here is the current state of affairs:> file.c:950 ast_streamfile: Unable to open vm-#voicemail.INBOX (format > 0x4 (ulaw)): No such file or directoryI'm thinking this is a bug. I just changed the delimiter to '/' and then the file that * attempted to open was vm-#voicemail/INBOX. I created a subdirectory vm-#voicemail and linked vm-INBOX.gsm to vm-#voicemail/INBOX.gsm and now I get my proper prompt for changing folders. Either I'm attempting to do something funky with my configuration or the code needs to look for vm-INBOX.gsm regardless. Any suggestions? Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFK3PD2CFu3bIiwtTARAqmuAJ9pSMfXlznArL7i/sUftbrarIKnowCbBB7E ywJVO3DMyWQlwG21KWqTGIU=+V7p -----END PGP SIGNATURE-----
--[ UxBoD ]--
2009-Oct-20 14:41 UTC
[asterisk-users] IMAP voicemail using subfolders fails.
----- "Kevin P. Fleming" <kpfleming at digium.com> wrote: | Barry L. Kline wrote: | | > I'm thinking this is a bug. I just changed the delimiter to '/' | and | > then the file that * attempted to open was vm-#voicemail/INBOX. I | > created a subdirectory vm-#voicemail and linked vm-INBOX.gsm to | > vm-#voicemail/INBOX.gsm and now I get my proper prompt for changing | folders. | > | > Either I'm attempting to do something funky with my configuration or | the | > code needs to look for vm-INBOX.gsm regardless. Any suggestions? | | That's a bug; the IMAP folder prefix should not be used in | construction | of prompt names to be played back. Please open an issue on | issues.asterisk.org reporting this problem (and while you are there, | also mention that the 'imapfolder' configuration option is not | documented in voicemail.conf.sample, and that the usage of | imapfolder/imapparentfolder is confusing and should be clarified). | Thanks! | | -- | Kevin P. Fleming | Digium, Inc. | Director of Software Technologies | 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA | skype: kpfleming | jabber: kpfleming at digium.com | Check us out at www.digium.com & www.asterisk.org | | _______________________________________________ | -- Bandwidth and Colocation Provided by http://www.api-digital.com -- | | asterisk-users mailing list | To UNSUBSCRIBE or update options visit: | http://lists.digium.com/mailman/listinfo/asterisk-users | | -- Would it be feasible to add an argument to the individual VM mailbox to override the default imapfolder ? -- This message has been scanned for viruses and dangerous content and is believed to be clean. SplatNIX IT Services :: Innovation through collaboration