General Voicemail BLF - newb help needed

assimlatr
Posts: 5
Member Since:
2009-12-31

All,

I searched and searched and searched...and I just either seem to be looking for the wrong items or I am blind...but I need some help figuring this one out.

On a 2.8.0.3 trixbox build, I have about 15 extensions (attached to SNOM 320s) and a general voice-mail "extension" that I have setup. 1/2 the phones have normal voice-mail, the rest I have all funneled to my general voice-mail. I also have is setup to where if no one really gets a response in the phone tree, it routes to the general voice-mail.

With regard to the 1/2 of the phones that have normal voice-mail, I have on of the programmable softkeys set to dest *98299 (extension 299 being my general voice-mail extension). It works for checking the general voice-mail, but there is no clear indication to those 7 folks if there is new voice-mail in there or not.

So...what I want to do is have it so that for those 7 folks, that softkey will light up when there is new voice-mail in the general voice-mail box, keeping it separate from the MWI for their normal voicemail. I know I can create a custom extension for the hint (and change the "dest" key on the SNOM accordingly), but I have no clue how to trigger the extension to light up when there is new voice-mail, or go out when there is no new voice-mail. I've seen some pages that suggested creating a script...but I don't know where to start, or where to hook into the dial-plan, or how to schedule such a script to get this rolling.

HELP?!?!



SkykingOH
Posts: 9678
Member Since:
2007-12-17
Happy New Year ! BLF keys

Happy New Year !

BLF keys are a different type of SIP subscription than MWI. You could probably use the devstate function and hack together something that send out s SIP notify that tracks MWI state.

--

Scott

aka "Skyking"



assimlatr
Posts: 5
Member Since:
2009-12-31
devstate function

That's what I was thinking. Realistically, I thought I would set up a custom extension hint and just trigger the INUSE NOT_INUSE on it with devstate to trigger a message that is in the inbox.

Do you think that would be something that I could trigger on the fly, or is it a script that I would have to schedule?



assimlatr
Posts: 5
Member Since:
2009-12-31
External notify

Ok, so I am getting a little further. I can see that I can trigger it using external notify from voicemail.conf. So now I just need to validate the extension and check message waiting status from a script.

One issue I think I might run into, does external notify also notify if no messages? (For example, so I can turn off the BLF light after it has been checked)?



assimlatr
Posts: 5
Member Since:
2009-12-31
Answering my own questions...

OK, so doing a little more looking, it looks like externalnotify also initiates when a person logs out of voicemailmain. Soooo, is it possible, through a bash script, to execute a "Set(DEVICE_STATE(Custom:someextension)=BUSY)" via asterisk -rx? Or do I have to initiate it a different way.



assimlatr
Posts: 5
Member Since:
2009-12-31
Once again...

Ok...so check my math here folks...

So I will create a custom extension in asterisk to act as a MWI for my general mailbox.

Something like:
exten => 229000,hint,custom:genvmail

and create a macro:

exten => 229000,1,Macro(checkvmail)
[checkvmail]
exten => s,1,dial(*98299)

For the notification: I would set a script from externalnotify in voicemail.conf

That script would basically validate the extension, read the message count it gives, if greater than 0, send asterisk -rx "devstate change custom:genvmail INUSE", if zero "devstate change custom:genvmail NOT_INUSE"

Sound right? (baring some syntax)



apcsonny
Posts: 8
Member Since:
2008-05-09
Looking to do the same - did this work?

Did you end up implementing this? Attempting to setup the same general concept...



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.