PIONEERS res_mwi_devstate - Voicemail BLF Module from FreePBX Distro

jerrm

Guru
Joined
Sep 23, 2015
Messages
838
Reaction score
405
MWI Device State Subscriptions

Updates voice mail hints created by FreePBX.

FreePBX has an option to create voicemail hints allowing a BLF to monitor any mailbox.

See the FreePBX wiki:
http://wiki.freepbx.org/display/F2/Subscribe+a+BLF+button+to+Monitor+a+Voicemail

Unfortunately, the module to update the hints is not part of Asterisk. It is provided in the official FreePBX distro as a patch to the distro Asterisk build.

This res_mwi_devstate.c was extracted from the FreePBX disto source rpm at:
http://yum.freepbxdistro.org/pbx/SRPMS/asterisk/13/asterisk13-13.7.2-1.shmz65.1.94.src.rpm

A Makefile has been added to build and install the module standalone and posted to github: https://github.com/jerrm/res_mwi_devstate.git

Only tested with Asterisk 13. This version uses the Stasis API, so would not be Asterisk 11 compatible.

This module was discussed on the forum previously here:
http://pbxinaflash.com/community/threads/voicemail-blf-with-freepbx-2-11.12633/

To install:
Code:
cd /usr/src
git clone https://github.com/jerrm/res_mwi_devstate.git
cd res_mwi_devstate
make
make install

Try to break it and let me know.
 
Last edited:

jerrm

Guru
Joined
Sep 23, 2015
Messages
838
Reaction score
405
After testing this for a few days, I think I actually prefer the script solution provided here: https://github.com/lgaetz/freepbx-VoicemailBLF.

The FreePBX module has the advantage that once installed all the hints are created automatically by FreePBX.

The script's biggest dis-advantage is that hints have to be manually added to extensions_custom.conf for each desired mailbox.

Both solutions suffer from the flaw that hints are not updated for any VM changes occurring outside of dialing into VM - such as deleting a message from UCP.

The script can be scheduled as a cron job to update the hint every so often if UCP or something else updates the mailbox. Extinguishing the BLF might not be immediate in such cases, but at least it gets updated.

While it might be possible to update the FreePBX hints it would require a separate script and maybe some more involved module code.

I think I prefer the "single script" method.

Maybe someone more knowledgeable can enlighten me to a better method.
 
Last edited:

nbroomhall

New Member
Joined
Jun 28, 2016
Messages
1
Reaction score
0
MWI Device State Subscriptions

Updates voice mail hints created by FreePBX.

FreePBX has an option to create voicemail hints allowing a BLF to monitor any mailbox.

See the FreePBX wiki:
http://wiki.freepbx.org/display/F2/Subscribe+a+BLF+button+to+Monitor+a+Voicemail

Unfortunately, the module to update the hints is not part of Asterisk. It is provided in the official FreePBX distro as a patch to the distro Asterisk build.

This res_mwi_devstate.c was extracted from the FreePBX disto source rpm at:
http://yum.freepbxdistro.org/pbx/SRPMS/asterisk/13/asterisk13-13.7.2-1.shmz65.1.94.src.rpm

A Makefile has been added to build and install the module standalone and posted to github: https://github.com/jerrm/res_mwi_devstate.git

Only tested with Asterisk 13. This version uses the Stasis API, so would not be Asterisk 11 compatible.

This module was discussed on the forum previously here:
http://pbxinaflash.com/community/threads/voicemail-blf-with-freepbx-2-11.12633/

To install:
Code:
cd /usr/src
git clone https://github.com/jerrm/res_mwi_devstate.git
cd res_mwi_devstate
make
make install

Try to break it and let me know.
Hi Jerrm

I have used this now on a couple of Non-Official Distro builds of FreePBX V13 with Asterisk V13 and it works a treat, creating the hints dynamically as phones request them.

When I used the above installation on a V12 FreePBX I did not get the dynamic function, but rather the hints were added to extensions_additional.conf on a reload.

Do you know if it's possible to get the dynamic version to work on V12 or is this not really an issue with the way the hints are generated.

Apologies if I've posted this in the wrong place.

Kind regards, Nigel.
 

jerrm

Guru
Joined
Sep 23, 2015
Messages
838
Reaction score
405
Hi Jerrm

I have used this now on a couple of Non-Official Distro builds of FreePBX V13 with Asterisk V13 and it works a treat, creating the hints dynamically as phones request them.

When I used the above installation on a V12 FreePBX I did not get the dynamic function, but rather the hints were added to extensions_additional.conf on a reload.

Do you know if it's possible to get the dynamic version to work on V12 or is this not really an issue with the way the hints are generated.

Apologies if I've posted this in the wrong place.

Kind regards, Nigel.

Assuming you have dynamic hints properly enabled in FBX12(under advanced settings and editing asterisk.conf), it is probably just a FPBX12 v FPBX13 difference. I think dynamic hints got some attention in FPBX13.
 

Members online

Forum statistics

Threads
25,810
Messages
167,754
Members
19,240
Latest member
nikko
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top