Hey there. I've been working on a project to integrate Asterisk with Exchange Unified Messaging via sipX using large parts borrowed from: http://blog.lithiumblue.com/2007/04/accessing-exchange-2007-unified_29.html ... and everything works surprisingly well. The one problem I have is MWI, or a lack thereof. Exchange 2007 doesn't support MWI of any kind (!), so I've been looking into using a product from Geomant to fill that gap. They have a package called MWI2007 that handles MWI for Exchange 2007. The Geomant guys were good enough to supply me with a demo copy and I've got it running. So far, so good. The one thing I can't seem to figure out is how to make Asterisk accept external MWI notifications for the phones registered to it. At first I thought it was the sipX server not routing the MWI back to Asterisk, but a packet dump confirmed that the MWI packets are reaching Asterisk. I've been looking through voip-info.org and a few other sites, but I can't seem to find any information on how to allow Asterisk to accept external MWI SIP notifications. Could someone point me in the right direction on how to tell Asterisk to accept MWI notifications from an external source for phones it currently has registered? Thanks in advance! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080205/85640120/attachment.htm
Johansson Olle E
2008-Feb-05 06:52 UTC
[asterisk-users] External MWI question for Asterisk
5 feb 2008 kl. 06.31 skrev Jason Crum:> Hey there. I've been working on a project to integrate Asterisk with > Exchange Unified Messaging via sipX using large parts borrowed from: > > http://blog.lithiumblue.com/2007/04/accessing-exchange-2007-unified_29.html > > ... and everything works surprisingly well. The one problem I have > is MWI, or a lack thereof. Exchange 2007 doesn't support MWI of any > kind (!), so I've been looking into using a product from Geomant to > fill that gap. They have a package called MWI2007 that handles MWI > for Exchange 2007. > > The Geomant guys were good enough to supply me with a demo copy and > I've got it running. So far, so good. The one thing I can't seem to > figure out is how to make Asterisk accept external MWI notifications > for the phones registered to it. At first I thought it was the sipX > server not routing the MWI back to Asterisk, but a packet dump > confirmed that the MWI packets are reaching Asterisk. > > I've been looking through voip-info.org and a few other sites, but I > can't seem to find any information on how to allow Asterisk to > accept external MWI SIP notifications. > > Could someone point me in the right direction on how to tell > Asterisk to accept MWI notifications from an external source for > phones it currently has registered?It is currently not possible. With the new event-driven MWI notification system in 1.6, it should be possible to add code for it, but it would be kind of tricky. If you send an MWI to an extension - how do we know where to send it? We either need to use the existing hints that connect the extensions to the device name space, or add a new sort of voicemail hints that connects an extension to a voicemailbox ID that we devices can subscribe to. /O
----- Original Message ---->From: Jason Crum <jccrum at gmail.com>>To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com>>Sent: Tuesday, 5 February, 2008 7:13:12 PM>Subject: Re: [asterisk-users] External MWI question for Asterisk> >Gah. So currently in 1.4, there is no method of having Asterisk accept SIP NOTIFY from another server, and pass it on to >endpoints if it matches? I can't imagine this being that complex, but then again I'm not familiar with the Asterisk internals. It just >seems Asterisk would compare the SIP NOTIFY to what it has currently registered (sip show peers) and forward it on to the >endpoint. I'm pretty sure sipXecs can do this.Hi Jason, We use Asterisk with realtime so that all the SIP peer's contact URI's are recorded in a database. Our separate MWI service then is able to lookup where to send the MWI notifications to and doesn't need to involve Asterisk in their sending. Regards, Greyman. Get the name you always wanted with the new y7mail email address. www.yahoo7.com.au/y7mail
> ----- Original Message ----> From: Jason Crum <jccrum at gmail.com>> To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com>> Sent: Tuesday, 5 February, 2008 10:59:59 PM> Subject: Re: [asterisk-users] External MWI question for Asterisk> > Ah, so you have a MWI service that polls the Asterisk realtime DB for the SIP URI information for an external voicemail system? > I'm guessing whatever you're using for voicemail alerts the your MWI service (custom written for this?)?Hi Jason, We use the Asterisk voicemail system as well and have a custom app that accepts the piped voicemail from Asterisk, saves it and then sets a flag in the realtime database that the MWI service can check. It sounds like a lot of bits and pieces but it all works well. Regards, Greyman. Get the name you always wanted with the new y7mail email address. www.yahoo7.com.au/y7mail
> ----- Original Message ----> From: Olivier <oza-4h07 at myamail.com>> To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com>> Sent: Wednesday, 6 February, 2008 7:35:10 AM> Subject: Re: [asterisk-users] External MWI question for Asterisk> > Do you send those notifications to SIP hardphones ?> Then, how do you proceed ? Is there a standard way to make (or stop) a SIP hardphone Message Waiting Indicator > blinking ?Hi Olivier, Yes we send MWI notifications to all user agents on our service which include IP Phones and ATAs. We use the externnotify option in voicemail.conf to pipe out to an external script everytime a voicemail is checked. That script does a few things that allows our MWI service to know that there are no longer any new voicemails for a specific and a NOTIFY request is sent to the user agent to turn the MWI off. Regards, Greyman. Get the name you always wanted with the new y7mail email address. www.yahoo7.com.au/y7mail
2008/2/8, Grey Man <greyvoip at yahoo.com.au>:> > > > ----- Original Message ---- > > > From: Olivier <oza-4h07 at myamail.com> > > > To: Asterisk Users Mailing List - Non-Commercial Discussion < > asterisk-users at lists.digium.com> > > > Sent: Wednesday, 6 February, 2008 7:35:10 AM > > > Subject: Re: [asterisk-users] External MWI question for Asterisk > > > > > > Do you send those notifications to SIP hardphones ? > > > Then, how do you proceed ? Is there a standard way to make (or stop) a > SIP hardphone Message Waiting Indicator > > blinking ? > > > > Hi Olivier, > > Yes we send MWI notifications to all user agents on our service which > include IP Phones and ATAs. > > We use the externnotify option in voicemail.conf to pipe out to an > external script everytime a voicemail is checked. That script does a few > things that allows our MWI service to know that there are no longer any new > voicemails for a specific and a NOTIFY request is sent to the user agentDo you mean your script does send a NOTIFY messages to hardphones ? Then, how did you write such SIP-aware script (language, ...) ? If not, how external script and Asterisk do communicate ? to turn the MWI off.> > Regards,Regards Greyman.> > > > > > > > > > > Get the name you always wanted with the new y7mail email address. > www.yahoo7.com.au/y7mail > > > > _______________________________________________ > -- 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080209/966a2faf/attachment.htm
> ----- Original Message ----> From: Olivier <oza-4h07 at myamail.com>> To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com>> Sent: Saturday, 9 February, 2008 6:55:15 AM> Subject: Re: [asterisk-users] External MWI question for Asterisk> Do you mean your script does send a NOTIFY messages to hardphones ? Then, how did you write such SIP-aware script (language, ...) ?If not, how external script and Asterisk do communicate ? Our MWI program is written in C# but to send SIP NOTIFY requests is very straight forward and could be done in anything. Our program is 250 lines of code and that includes polling the database to decide when to send the NOTIFY requests. In the NOTIFY request the body consists of: Messages-Waiting: yes|no That's all you need to turn on and off the MWI indicators on every device we've come across. There's nothing tricky to MWI at all. Regards, Greyman. Get the name you always wanted with the new y7mail email address. www.yahoo7.com.au/y7mail