Today, I see a MWI on my phone. It doesn't tell which line has the message waiting as the line doesn't MWI itself, only the MWI for the phone does. It requires me to "touch" the phone and check to see where the message is and that's what I'm trying to avoid as are my clients that have asked for it. I want a light to see where the message is. For instance, if there's a message at home, I really don't care during business hours, yet my MWI is on, because I have a line there. The phone shows the number of messages of the last used line. In the case of clients with unmonitored mail boxes like reception, etc, they won't even get a MWI indicator; this script will do that for them. Similarly, one individual might be tasked with monitoring a "support" or "group" mailbox but everyone has the common line on their set hence their MWI would be on...
Bottom line is yes, you can touch the phone to check what's going on but the point of this script is to avoid that. It provide distinct MWI for the monitored extension, regardless of whether the set contains the extension or not. Yes, I agree that the script should be triggered by an event in Asterisk (messaged added, deleted, etc) however, the only event way I know to do that now without patching the voicemail app is to cron a job periodicaly checking...again...something is polling..then use a blank sip notify to trigger the script...a kludge to be sure....that's why I'm looking for feedback...or some ingenious method that I'm too dumb to see ;) ...such that any change to the status of the MWI runs the script...and turns on/off the LED / message counters respectively for the monitored lines. The script could easily enough be triggered when a voicemail is left...the challenge is the other events...a message is picked up remotely, phone is offline/onhook/etc when message left. Dave Bour Desktop Solution Center 905.381.0077 X501 [EMAIL PROTECTED] For people who just want IT to work Business http://www.desktopsolutioncenter.ca Personal http://www.davebour.com > -----Original Message----- > From: John Lange [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 01, 2008 10:11 AM > To: [email protected] > Subject: RE: [on-asterisk] Aastra Set Multiple VMail Indicator Script - > alpha possible beta Release > > While reading through your message a couple of thoughts spring to mind. > > First, on phones where the user needs access to more than one > voicemail, > why not define a line key and account for each voicemail? The MWI will > light if there is a message on any line and by pressing the left and > right arrow buttons on the phone you can see which line has the > messages > and how many. > > Further, if you tie the softkeys to the line keys then it will even > show > messages without having to use the arrow keys. > > Assuming the above doesn't work in your scenario then the script that > updates the MWI on the phones should be triggered by Asterisk each time > a call ends by using the hangup extension to trigger an AGI. > > e.g. > > exten => h,1,AGI(...) > > Triggering it on a cron or by the phone calling a script on a set > interval will work but is really just a messy work around. > > Perhaps I'm not understanding something about your scenario? > > - > John Lange > www.johnlange.ca > > > On Thu, 2008-05-01 at 06:02 -0400, Dave Bour wrote: > > John et al. > > Another thought just thinking about it would be a cron job on the > asterisk server to simply monitor for changes to the voicemail > count...that could be configured to query every 10 seconds or even run > continuously...very little overhead on the system...then issue a empty > sip notify to all or the respective sets.... > > Again, not the most elegant...but brute force crude and > effective...and less overhead on the phone... In a small environment, > an all phone broadcast would be fine for vm changes however, in a > larger office, the overhead could rapidly become > significant...requiring the broadcast to be more selective. > > > > To my postscript on the last message, the sip notify gets rid of the > polling...and all the features could be monitored easily by tracking > database changes in DND, CFWD, voicemail, DayNight, etc whatever > variable was desired to be tracked. > > > > Unless someone has any other feedback, this may become a wee project > for next week... > > > > Once again, for anyone joining this thread, you can grab the led and > label control script off my web at > http://www.davebour.com/misc/vmailled.php > > > > Dave Bour > > Desktop Solution Center > > 905.381.0077 X501 > > [EMAIL PROTECTED] > > > > For people who just want IT to work > > > > Business http://www.desktopsolutioncenter.ca > > Personal http://www.davebour.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
