Barry L. Kline
2008-Nov-23 04:17 UTC
[asterisk-users] How does IMAP notify Asterisk that I've read a message?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have an Asterisk box sitting between the PSTN and a legacy PBX. I have successfully configured Asterisk to use IMAP for voicemail and have written the necessary script to turn the MWI indicator (via a .call file to the PBX) on and off. I have two issues still outstanding: 1) When the user listens to his voice mail via the phone, it will be announced that the caller is unknown, in spite of the fact that the email headers show the appropriate Callerid(num) information. I can live with that, but I'll eventually need to get it fixed. 2) If I "listen" to the voicemail using my email client, the MWI on the phone is not turned off, which isn't surprising given that my script needs to be called to generate the .call file. What I don't know is how, exactly, Asterisk is notified that I've listened to my voicemail via email. Does Asterisk poll the server? If so, where is the frequency of the poll set? Can Asterisk be configured to call the script again when the messages are read and the MWI should be turned off? The docs don't say anything about this and I've not found anything in my googling that has given me any leads? I'm currently using Asterisk 1.4.22. Thanks for any information that you can provide. Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFJKNlyCFu3bIiwtTARAo4XAJwMlW8ylyY1JEu1H1qsth73m2cwzACdFzuI EwIJuEkqSyJdnVRJVeVA5Zk=DmZw -----END PGP SIGNATURE-----
joea at j4computers.com
2008-Nov-23 13:55 UTC
[asterisk-users] How does IMAP notify Asterisk that I've read amessage?
>>> On 11/22/2008 at 11:17 PM, "Barry L. Kline" <blkline at attglobal.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I have an Asterisk box sitting between the PSTN and a legacy PBX. I > have successfully configured Asterisk to use IMAP for voicemail and have > written the necessary script to turn the MWI indicator (via a .call file > to the PBX) on and off. I have two issues still outstanding: > > 1) When the user listens to his voice mail via the phone, it will be > announced that the caller is unknown, in spite of the fact that the > email headers show the appropriate Callerid(num) information. I can > live with that, but I'll eventually need to get it fixed. > > 2) If I "listen" to the voicemail using my email client, the MWI on the > phone is not turned off, which isn't surprising given that my script > needs to be called to generate the .call file. What I don't know is > how, exactly, Asterisk is notified that I've listened to my voicemail > via email. Does Asterisk poll the server? If so, where is the > frequency of the poll set? Can Asterisk be configured to call the > script again when the messages are read and the MWI should be turned off? > > The docs don't say anything about this and I've not found anything in my > googling that has given me any leads? > > I'm currently using Asterisk 1.4.22. > > Thanks for any information that you can provide. > > Barry >Regarding #2 - There is nothing in Asterisk, at this time, that is able to check the status of a attachment in a message in an external system. AFAIK. Sending an email is one thing. Being able to check the status of an attachment in a specific message, in any one of a variety of systems, is, I think, asking too much. I don't think most email systems keep track of wether or not an attachment has been read, in any case. joe a.
Tilghman Lesher
2008-Nov-23 20:14 UTC
[asterisk-users] How does IMAP notify Asterisk that I've read a message?
On Saturday 22 November 2008 22:17:54 Barry L. Kline wrote:> I have an Asterisk box sitting between the PSTN and a legacy PBX. I > have successfully configured Asterisk to use IMAP for voicemail and have > written the necessary script to turn the MWI indicator (via a .call file > to the PBX) on and off. I have two issues still outstanding: > > 1) When the user listens to his voice mail via the phone, it will be > announced that the caller is unknown, in spite of the fact that the > email headers show the appropriate Callerid(num) information. I can > live with that, but I'll eventually need to get it fixed. > > 2) If I "listen" to the voicemail using my email client, the MWI on the > phone is not turned off, which isn't surprising given that my script > needs to be called to generate the .call file. What I don't know is > how, exactly, Asterisk is notified that I've listened to my voicemail > via email. Does Asterisk poll the server? If so, where is the > frequency of the poll set? Can Asterisk be configured to call the > script again when the messages are read and the MWI should be turned off? > > The docs don't say anything about this and I've not found anything in my > googling that has given me any leads? > > I'm currently using Asterisk 1.4.22. > > Thanks for any information that you can provide.In 1.4, use the "checkmwi" option in the [general] section of sip.conf to specify how often the SIP channel should poll for message count. In 1.6, the message waiting has been changed to use a notification system by default, which should spare most systems a great deal of extra work. However, you will still be able to set the "pollmailboxes" option in voicemail.conf to specify that external programs modify the mailboxes and that Asterisk should poll the mailboxes (old behavior) to check whether the status of voicemail has changed. -- Tilghman