Re: [asterisk-users] IMAP voicemail using subfolders fails.

2009-10-22 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Darrick Hartman wrote:

> I don't think that Maildir or a database backend solution (such as 
> Exchange) suffers from this same limitation.

Maildir makes sense, but the text I quoted in an earlier message is now
no longer part of the imapstorage text.   I moved to that last evening
and we'll see how it works out today.

> I would be more interested in knowing how sensitive this would be to 
> latency if using an IMAP server that isn't on the same device as the 
> Asterisk server (or perhaps even a remote IMAP server)?

- From what I can see, the file is downloaded locally and then played.  So
I don't think that latency is an issue.   I'm not 100% on that but based
on what I read in the docs that's the general feeling that I get.
Obviously the best solution if I want to be sure is to convert our
inbound to Maildir format.

Glad you made it home okay from the flight!

Barry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFK4EgQCFu3bIiwtTARAsO9AJ9Mw6H1uGaVDdotKGlJ7hUWDMfwEACfRhDf
5so8No4MOtdOC93piRff8jI=
=4C8D
-END PGP SIGNATURE-

___
-- 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


Re: [asterisk-users] IMAP voicemail using subfolders fails.

2009-10-21 Thread Darrick Hartman
Barry L. Kline wrote:
> Kevin P. Fleming wrote:
> 
>> It's not present in the current 1.4 doc/imapstorage.txt file, or any
>> later version. I don't even know why the storage format would matter,
>> since that would be very specific to the IMAP server that is managing
>> that folder.
> 
> Hmmm
> 
> http://markmail.org/message/up3rfmdk2kjf6r7y
> 
> is a link that contains the contents of a README file that looks like it
> came from Digium.   About half-way down is:
> 
> -- Mailbox Format --
> 
> Mailboxes should use the "mbx" mailbox format. The "mbox" format does
> not support concurrent access to mailboxes, which can cause deadlock or
> strange behaviors. You can convert mailboxes from mbox to mbx using
> mailutil:
> 
> 
> Perhaps that came from a different product?   I think that I'm going to
> just go ahead and implement IMAP VM and see what happens.

Barry,

I don't think that Maildir or a database backend solution (such as 
Exchange) suffers from this same limitation.

I would be more interested in knowing how sensitive this would be to 
latency if using an IMAP server that isn't on the same device as the 
Asterisk server (or perhaps even a remote IMAP server)?

Darrick

___
-- 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


Re: [asterisk-users] IMAP voicemail using subfolders fails.

2009-10-21 Thread Barry L. Kline
Kevin P. Fleming wrote:

> It's not present in the current 1.4 doc/imapstorage.txt file, or any
> later version. I don't even know why the storage format would matter,
> since that would be very specific to the IMAP server that is managing
> that folder.

Hmmm

http://markmail.org/message/up3rfmdk2kjf6r7y

is a link that contains the contents of a README file that looks like it
came from Digium.   About half-way down is:

-- Mailbox Format --

Mailboxes should use the "mbx" mailbox format. The "mbox" format does
not support concurrent access to mailboxes, which can cause deadlock or
strange behaviors. You can convert mailboxes from mbox to mbx using
mailutil:


Perhaps that came from a different product?   I think that I'm going to
just go ahead and implement IMAP VM and see what happens.

Thanks very much Kevin!

Regards,

Barry

___
-- 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


Re: [asterisk-users] IMAP voicemail using subfolders fails.

2009-10-20 Thread Kevin P. Fleming
Barry L. Kline wrote:
> Kevin P. Fleming wrote:
> 
>> 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 ...
> 
> Done:  https://issues.asterisk.org/view.php?id=16104
> 
> On a side note Kevin, my INBOX is in mbox format.   The 1.4
> imapstorage.txt file used to contain an admonition to use maildir format
> for storage.  I can't seem to find that warning in the 1.6 branch.  Is
> this no longer a problem?

It's not present in the current 1.4 doc/imapstorage.txt file, or any
later version. I don't even know why the storage format would matter,
since that would be very specific to the IMAP server that is managing
that folder.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kpflem...@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


Re: [asterisk-users] IMAP voicemail using subfolders fails.

2009-10-20 Thread Barry L. Kline
Kevin P. Fleming wrote:

> 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 ...

Done:  https://issues.asterisk.org/view.php?id=16104

On a side note Kevin, my INBOX is in mbox format.   The 1.4
imapstorage.txt file used to contain an admonition to use maildir format
for storage.  I can't seem to find that warning in the 1.6 branch.  Is
this no longer a problem?

Barry

___
-- 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


Re: [asterisk-users] IMAP voicemail using subfolders fails.

2009-10-20 Thread --[ UxBoD ]--
- "Kevin P. Fleming"  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: kpflem...@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


___
-- 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


Re: [asterisk-users] IMAP voicemail using subfolders fails.

2009-10-20 Thread Kevin P. Fleming
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: kpflem...@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


Re: [asterisk-users] IMAP voicemail using subfolders fails.

2009-10-19 Thread Barry L. Kline
John A. Sullivan III wrote:

> I'm using the INBOX - John

I'm throwing in the towel and going that route as well.  Now that I'm
not trying to swim upstream things are working well.

Thanks John.

Barry


___
-- 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


Re: [asterisk-users] IMAP voicemail using subfolders fails.

2009-10-19 Thread John A. Sullivan III
On Mon, 2009-10-19 at 19:08 -0400, Barry L. Kline wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> John A. Sullivan III wrote:
> 
> > 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
> 
> Thanks, John.
> 
> I didn't see that in the docs.  I am going to do what you suggested and
> just let Asterisk put things in the root directory.   Did you perhaps
> use the INBOX or are you using a custom folder?

I'm using the INBOX - John
-- 
John A. Sullivan III
Open Source Development Corporation
+1 207-985-7880
jsulli...@opensourcedevel.com

http://www.spiritualoutreach.com
Making Christianity intelligible to secular society


___
-- 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


Re: [asterisk-users] IMAP voicemail using subfolders fails.

2009-10-19 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

John A. Sullivan III wrote:

> 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

Thanks, John.

I didn't see that in the docs.  I am going to do what you suggested and
just let Asterisk put things in the root directory.   Did you perhaps
use the INBOX or are you using a custom folder?

Barry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFK3PGCCFu3bIiwtTARAnSMAJ4m4PJnV73DsJEU6Y7X2hzJ6u+r0QCeM+76
4U9Gk9wGlUCB0Xp/UpYpmzQ=
=Ys8S
-END PGP SIGNATURE-

___
-- 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


Re: [asterisk-users] IMAP voicemail using subfolders fails.

2009-10-19 Thread Barry L. Kline
-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 directory

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?

Barry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFK3PD2CFu3bIiwtTARAqmuAJ9pSMfXlznArL7i/sUftbrarIKnowCbBB7E
ywJVO3DMyWQlwG21KWqTGIU=
=+V7p
-END PGP SIGNATURE-

___
-- 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


Re: [asterisk-users] IMAP voicemail using subfolders fails.

2009-10-19 Thread John A. Sullivan III
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?"

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
jsulli...@opensourcedevel.com

http://www.spiritualoutreach.com
Making Christianity intelligible to secular society


___
-- 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


[asterisk-users] IMAP voicemail using subfolders fails.

2009-10-19 Thread Barry L. Kline
-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-

___
-- 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