Asterisk 1.8.24 MWI and Voip Provider

Hello,

I recently installed asterisk on the DD-WRT platform through optware and I wanted to connect a trunk to my voip provider (Voip.ms). I was able to successfully get the trunk to connect and I am able to make/receive calls. I am getting stuck on having the MWI function working. I have not configured any local voicemail because I wanted to stick with my providers VM. I have a number of phones but mostly Avaya IP phones which I am using. After researching I was able to come up with some ideas on first specifying the “mwi” in the sip.conf. Here is what I have:


[general]    
alwaysauthreject=yes
srvlookup=yes
register => 1234:mypass@toronto.voip.ms:5060
tcpenable=yes
tcpbindaddr=0.0.0.0

mwi => 12345:mypass@toronto.voip.ms/54321

[voipms]
canreinvite=no
context=mycontext
host=toronto.voip.ms 
secret=mypass ;your password
type=peer
username=12345
disallow=all
allow=ulaw
allow=g729 
fromuser=12345
trustrpid=yes
sendrpid=yes
insecure=invite
nat=yes
dtmfmode=rfc2833

[101]
type=friend
context=mycontext
host=dynamic
username=101
secret=password!
transport=tcp
allow=ulaw
allow=g729

I know that there are a few other options that I may need to configure but I played around with “mwi_from=asterisk” and also “subscribemwi=yes/no” and none of those seem to help. I thought at first it was an issue with my Avaya phones but if I do not use asterisk and just use OpenSER (sip proxy) on my router the MWI works on the Avaya phones.

Even if I were to use X-lite the MWI does not get passed through to the phones. In the CLI if I do a “sip show mwi” I can see the mailbox is subscribed. but I am not sure if that is going to be translated to the clients.

Other posts have stated that I need to setup the “mailbox” option of the clients but if I am not using the local VM for asterisk what would I be pointing that option to?

Any help would be appreciated.

I believe you just need to add mailbox=54321@SIP_Remote to your client definitions in sip.conf. For example:

[office-phone](!) type=friend context=LocalSets host=dynamic dtmfmode=auto disallow=all allow=g722 allow=ulaw allow=gsm mailbox=54321@SIP_Remote

Be aware that 54321 is only the number by which your clients refer to the MWI. It’s a number you’ve made up, not your real mailbox number on voip.ms