I am trying to get MWI to work on my Snom and Polycom phones, but I am a little in over my head.
The phones are connected to FreePBX 17, with a trunk to voip.ms, and I am using the voip.ms voicemail. Internal FreePBX voicemail is disabled and bypassed.
As a bit of background - MWI works on my older FreePBX system using chan_sip for the voip.ms trunk. I was able to configure it with guidance from here and here:
However, the old FreePBX instance is EOL, and I would like to migrate to the current version of the software. chan_sip is no longer available in FreePBX 17 as far as I know, so I have to use chan_pjsip.
Voip.MS refused to help me with the setup, telling me that they don’t have an article on setting up MWI with PJSIP.
The most info I was able to find outline was this, this, and this.
Then this post gave me a lead on how to add custom options to the trunk under /etc/asterisk/pjsip.endpoint_custom_post.conf, and I wrote something like this:
On the phone’s extension I kept {mailboxnumber}@SIP_Remote as with the previous chan_sip setup.
But that did not work.
I would appreciate any help/suggestions. I can’t be the only one trying to pass WMI from voip.ms to my PBX and phones, and I’m hoping that figuring this out will help others too.
I am not super familiar with chan_pjsip but curious which polycom phones you are working with? I am going to assume that the phones currently work with the older chan_sip config? I am on an older version of Freepbx as well with chan_sip and my poly CCX600 have the MWI working. Can you also provide the polycom model?
I have a Polycom VVX 311 configured on chan_pjsip with MWI working just fine, phone software version 6.4.7.4477
From the webinterface, under Settings, Lines, Message Center, subscription address is the same number as the line number, 805, Callback mode is Contact, Callback Contact is *98805
From the pjsip definition in FreePBX, Connectivity, Extensions, into the extension, and under MWI Subscription Type, I have Auto selected.
Other than that, I really didn’t have to do anything. In fact, I think those are the defaults for FreePBX.
I think the issue is how the voip.ms trunk is configured. That’s the only change between my old system and the new one, as far as I can tell, as I’ve been using chan_pjsip for extensions on both systems.
Would you mind sharing how you have the trunk to voip.ms set up with chan_pjsip?
There has been an update from someone who has this working in a vanilla Asterisk setup here. But I’m still unsure how to get this configured in FreePBX.
I tried to edit pjsip.endpoint_custom_post.conf, adding incoming_mwi_mailbox={vm_number}@default, but this did not yield a working setup.
With that said, I think that now periodically my phones show a message waiting for a brief second, then it promptly disappears. Very erratic and unpredictable behaviour.
When I run sngrep, I see periodic messages like this: Voice-Message: 0/0 (0/0)
and Voice-Message: 1/1 (0/0)
based on that reddit post looks like the inbound notify is what is causing the issue, have you seen this in a SIP Debug? From what I can see in the FreePBX (PJSIP) - VoIP.ms Wiki for the authentication you can specify just the outbound and not inbound FreePBX (PJSIP) - VoIP.ms Wiki. The only other place I can think of now is your custom_post.conf file. Are you able to post what you have setup now with that?
In the Freepbx GUI there is a section under your pjsip trunk that has a tab “PJSIP settings” in there the authentication has outbound inbound or both. Just wondering what that is set to? It’s in the link I posted above to the Voip.ms wiki.