Voicemail MWI not working

Status
Not open for further replies.

EasyBB

Active Member
Oct 23, 2016
240
33
28
Australia
I am unable to get MWI working on my Cubox. Everything is up to date and I matched all settings from a working server for internal sip profile. There are no NOTIFY packets in cli after I leave a voicemail. I've had this working on my previous install FP 3.9 and FS 1.4 on the same Cubox. Appreciate if anyone has any ideas.......
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
Do an ngrep or something, see if you can see a SUBSCRIBE after the REGISTER.

There should also be a subscriptions table in the DB somewhere that you can check to see if you have subscribed. I know there is some issue too with periodic notifications people have been having to make a change to the lua.conf.xml

/etc/freeswitch/autoload_configs/lua.conf.xml

There seem to be a couple:

<param name="startup-script" value="app/voicemail/resources/scripts/mwi.lua"/>
<param name="startup-script" value="app/voicemail/resources/scripts/mwi_subscribe.lua"/>

They are commented out by default.
 

EasyBB

Active Member
Oct 23, 2016
240
33
28
Australia
Thanks DigitalDaz.

I think I sorta understand where the problem lies. I have the source based install of FS on my Cubox, so the FS db is probably pointing to the wrong one? I don't know where to look. I can now see the NOTIFY messages but there is none immediately after voicemail is deposited. The NOTIFY says Message-waiting: no , even when there are messages, which makes me think it is referring to the wrong db.

Could you please tell me how to check the db in use and how to re-point if necessary?
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
switch.conf.xml should show you where the db is

On my sqlite versions, I do an apt-get install sqlite3

Then: sqlite3 /var/lib/freeswitch/db/sofia_reg_internal.db

select * from sip_subscriptions;

To exit sqlite3 do: .exit

The location of your sofia_reg_internal.db is probably different, you can veryfy you are looking in the correct db by: ls -l /var/lib/freeswitch/db/sofia_reg_internal.db

You should see a very recent time stamp on the correct db
 

EasyBB

Active Member
Oct 23, 2016
240
33
28
Australia
Yes my FS dbs are located in /usr/local/freeswitch/db/

I ran the sql command you mentioned; I can see my phones in there, e.g.

Code:
sqlite> select * from sip_subscriptions;
sip|654|192.168.10.30|654|192.168.10.30||message-summary|"user" <sip:654@192.168.10.212:5070>|f7c250e9f3e3aef2|<sip:654@192.168.10.30>;tag=0e6af70faf|SIP/2.0/UDP 192.168.10.212:5070;branch=z9hG4bK4f91a9377e80b2a1e|1477878684|Avaya IP Phone 1140E (SIP1140e.04.03.12.00)|application/simple-message-summary |internal|cubox-i|5070|192.168.10.212|-1||<sip:654@192.168.10.30>;tag=rgwxAaXeRvJR

The time stamp on the sofia_reg_internal.db is recent, so this must be the correct one.

Now I am totally confused.......
 

EasyBB

Active Member
Oct 23, 2016
240
33
28
Australia
Finally solved the issue.......
moteus on IRC was helping me to solve it; then I realised I have presence-hosts enabled in the remotephone profile as well in addition to the internal profile. Once I disabled it, MWI is working now.

So it looks like you can only have presence-hosts enabled in a single profile. I've kept the internal profile one.

I am unable to find any documentation detailing this, so hopefully this thread might be helpful for someone in the future......
 

yukon

Member
Oct 3, 2016
138
14
18
I've got an MWI question too... I keep seeing this over and over again in my logs:
2016-11-28 20:52:21.279022 [WARNING] switch_cpp.cpp:1360 [mwi_subscribe] non numeric voicemail id: *97
2016-11-28 20:52:21.279022 [WARNING] switch_cpp.cpp:1360 [mwi_subscribe] can not find voicemail: *97@mydomain.com
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
As EasyBB said, what looks like is happening there is you are trying to subscribe to the voicemail access number *97 instead of the mailbox itself. It should be subscribing to myextension@mydomain.com

Check the settings on your phone.
 

yukon

Member
Oct 3, 2016
138
14
18
As EasyBB said, what looks like is happening there is you are trying to subscribe to the voicemail access number *97 instead of the mailbox itself. It should be subscribing to myextension@mydomain.com

Check the settings on your phone.

I'm using the default provision templates for all my phones and only use yealinks.. Do you know what setting that might be?
 

yukon

Member
Oct 3, 2016
138
14
18
I only use T42, T46 and T48's. So it's one of those, but I'm not sure which of the phones are doing it because it's a lot. I assume it's all of them.
 

TheOperator

Member
Nov 30, 2016
39
14
8
Bavaria, Germany
The Yealink templates seem to have a number of pitfalls.

The MWI settings are controlled per accountby the following settings in the {$mac}.cfg files:

account.X.subscribe_mwi =
account.X.subscribe_mwi_to_vm =

I have updated .cfg my files to use global variables set in the provisioning section of the Default Settings like this for each account:

{if isset($subscribe_mwi)}
account.1.subscribe_mwi = {$subscribe_mwi}
{else}
account.1.subscribe_mwi =
{/if}

{if isset($subscribe_mwi_to_vm)}
account.1.subscribe_mwi_to_vm = {$subscribe_mwi_to_vm}
{else}
account.1.subscribe_mwi_to_vm =
{/if}


Setting "$subscribe_mwi" to 1 and "$subscribe_mwi_to_vm" to 0 should give you the setup you are looking for.
 
Last edited:
Status
Not open for further replies.