Transfer voicemail to different box?

I’m setup with Trixbox and I’m trying to figure out how to automatically make a message left in one vm box automatically transfer to another then delete from the originating box. So,

if a vm is left in box 101, it gets moved to 102 and the original message in 101 is deleted.

if a vm is left in box 105, it gets moved to 102 and the original message in 105 is deleted.

Any ideas on how to accomplish this?

Found this on the wiki

Voicemail broadcasts
Voicemail broadcasts can be created with the VoiceMail command in the dialplan. This can be combined with the delete option to delete the original voicemail.

In extensions.conf:
exten => 100,1,VoiceMail(u101&102&103)

In voicemail.conf:
101 => 4242,Group Mailbox,delete=1
102 => 4242,Buckaroo Bonzai,buckaroo@bonzai.com
103 => 4242,John Whorphin,john@monkeyboy.com

This entry creates a group mailbox at mailbox 101, which, on receipt, is copied to mailboxes 102 and 103. Following the copy to these other mailboxes, the original voice message is deleted.

When multiple mailboxes are specified, the unavailable or busy message will be taken from the first mailbox specified. This could be used to record a special unavailable or busy message for the broadcast mailbox (101 in this example).

Tanks, but I tried that and could not get it to work. Where in the extension.conf file should I place that entry?

You would put it in whatever context you are in when going to voicemail. Also I think this is kingd of old so you might have to use the context of the voicemail.conf such as
exten => 100,1,VoiceMail(u101@context&102@context)

[quote=“rusty”]You would put it in whatever context you are in when going to voicemail. Also I think this is kingd of old so you might have to use the context of the voicemail.conf such as
exten => 100,1,VoiceMail(u101@context&102@context)[/quote]

Sorry to sound like a dummy, but I don’t understand the “context” concept. I could not find a context section in my extensions.cof either.

[context] in extensions.conf is a group of extensions that can be dialed. same idea with voicemail.

if all the voicemail boxes are under [default] put the format in the thing as exten@default.

the joy of FreePBX/TrixBox … great at keeping you away from the dirty stuff, but utterly useless when you need to actually understand what’s happening.

step one would be to read the book linked to in the sticky at the top of the forum.

extensions.conf (and the assorted "include"d files your setup will contain) is divided into lots (and lots) of contexts. contexts are the building blocks of your dialplan and to not understand them or the concept of them is going to mean trouble. each one will be indicated by [context-name], e.g. [from-pstn].

Well there is no [context] section in my extension.conf!

its an example. i dont mean you will have a context called [context] but that square braces are what defines a context. Same thing if i said to dial 9 to get an outside line, dial 9-1-xxx-phonenumber. I dont mean dial ‘phonenumber’ but to put your phone number there.

[voicemail]
blah blah blah

[othercontext]
blah blah blah

[thirdcontext]
blah blah blah

three contexts…

you mean, there is no [context] context in my extension.conf.

extensions.conf (and the assorted "include"d files your setup will contain) is divided into lots (and lots) of contexts. contexts are the building blocks of your dialplan and to not understand them or the concept of them is going to mean trouble. each one will be indicated by [context-name], e.g. [from-pstn].[/quote]

I guess this is why I’m at this forum, asking for help. I just want to have a simple thing done and should not have to understand the entire programming syntax of asterisk to do so.

which is why you chose the TrixBox route. fair enough, but when you reach the limit of what the GUI can do you either live with it or get your hands mucky editing config files. the limitation is certainly not with Asterisk.

seriously, read the book. all will become clearer.

edit: or provide ssh access and appeal to someone here for intervention !

[quote=“rusty”]You would put it in whatever context you are in when going to voicemail. Also I think this is kingd of old so you might have to use the context of the voicemail.conf such as
exten => 100,1,VoiceMail(u101@context&102@context)[/quote]

here are the section of my extensions.conf file. Any suggestions where to insert that command?

Header
from-trunk
from-pstn
from-did-direct
macro-dial
macro-exten-vm
macro-vm
macro-get-vmcontext
macro-fixcid
macro-rg-group
macro-outisbusy
macro-hangupcall
macro-faxreceive
macro-dialout
macro-dialout-default
macro-dialout-trunk
macro-agent-add
macro-agent-del
macro-dialout-enum
macro-record-enable
macro-dumpvars
macro-user-logon
macro-user-logoff
macro-systemrecording
macro-user-callerid
macro-outbound-callerid
macro-privacy-mgr
from-sip-external
from-internal
from-zaptel
ext-fax
default

[quote=“baconbuttie”]

seriously, read the book. all will become clearer.

[quote]

Thanks, but it may be easier to just check 3 different voicemail boxes!

:smile:

i think the biggest problems you’re going to have are working out where in the complex dialplan to put your changes, and keeping any changes you make through a FreePBX rebuild of your config files.

like i say, if this is more than you care to do you can appeal to someones better nature, pay for support, or live with the limitation.