Change voicemail box


I am using FreePBX 2.0.1, and I am wondering if the following is possible…

I have an extension 709 (IAX2)

I want the voicemail box number for this extension to be 9

Currently, when I click apply, the perl script that runs to populate extensions_additional.conf automatically gives the voicemail box number 709…

exten => 709,1,Macro(exten-vm,709,709)

However, I notice that the macro exten-vm accepts two parameters, first being the extension? and the second being the voicemail box?

So I can modify extensions_additional.conf to…

exten => 709,1,Macro(exten-vm,709,9)

but of course, if I change an extension, this gets removed.

I have also tried modifying extensions_custom.conf, but it never gets there…

How can I change it so that the voicemail box number is different?

I have thought of adding a new field to extensions table in asterisk mysql database and modifying the perl script… BUT… given that there are two parameters for exten-vm, there must allready be a way to do this?

If so… how can this be done?

Antonio Broughton



Well, the main reason why… is for example if you have 3 extensions, (all for the same person, maybe, IAX2 account on their laptop, one on their handheld phone, and maybe a hardphone)…

exten => 701,1,Macro(exten-vm,701,701)
exten => 702,1,Macro(exten-vm,702,702)
exten => 703,1,Macro(exten-vm,703,703)

It would be nice to only use the one voicemail box for all three wouldn’t it?


exten => 701,1,Macro(exten-vm,701,9)
exten => 702,1,Macro(exten-vm,702,9)
exten => 703,1,Macro(exten-vm,703,9)

FreePBX can already do this. You should switch to using Device/User mode (check /etc/amportal.conf for the switch). Then, you configure three devices (one for each phone type) but only one User account. Thus, the same user (i.e. the same extension) rings all three phones, and all three go to the same mailbox.