External Voicemail Server

Hello,

i’m trying to setup an external voicemail server to meet my retirements of expansion and future growth. I seem to have everything working except one part, I need to figure out how to modify the default context to send busy or unanswered calls to the external voicemail server. I am using an IAX trunk to connect the two boxes and can dial across into it as well as transfer calls over. I also already have the MWI publishing across, so once I get this figured out I should be set.

I’ve found and read some really old articles on this which seem to no longer pertain. Does anyone around have experience with this?

So a post that I was referencing a while ago has some marco updates to complete this, but it seems to be too far out of date as I cannot find the matching config. There’s a few things that catch my eye, but no direct matches.

The article I was reading is located here:

And the portion I need to revise to work with the current version of Asterisk and FreePBX is:

Change this:
exten => s-NOANSWER,1,Voicemail(u${ARG1})
exten => s-NOANSWER,2,Goto(default,s,1)
exten => s-BUSY,1,Voicemail(b${ARG1})
exten => s-BUSY,2,Goto(default,s,1)

To this (I’ve named the IAX connection to the voicemail server “toVMail”):

exten => s-NOANSWER,1,Dial(IAX2/toVMail/u${ARG1})
exten => s-NOANSWER,2,Goto(default,s,1)
exten => s-BUSY,1,Dial(IAX2/toVMail/b${ARG1})
exten => s-BUSY,2,Goto(default,s,1)

So far i’ve added the following to my extensions_custom.conf, but I feel there has to be an “Unavailable” context im not seeing that should also be included:

(The IAX trunk in my lab to the VM server is called “Mailbox”)

[macro-vm]
exten => dovm,1,Noop(VMX Timeout - go to voicemail)
exten => dovm,n,Dial(IAX2/Mailbox/b${ARG1})
exten => dovm,n,Goto(exit-${VMSTATUS},1)

exten => s-BUSY,1,Noop(BUSY voicemail)
exten => s-BUSY,n,Macro(get-vmcontext,${MEXTEN})
exten => s-BUSY,n,Dial(IAX2/Mailbox/b${ARG1})
exten => s-BUSY,n,Goto(exit-${VMSTATUS},1)

exten => s-NOMESSAGE,1,Noop(NOMESSAGE (beep only) voicemail)
exten => s-NOMESSAGE,n,Macro(get-vmcontext,${MEXTEN})
exten => s-NOMESSAGE,n,Dial(IAX2/Mailbox/b${ARG1})
exten => s-NOMESSAGE,n,Goto(exit-${VMSTATUS},1)

exten => s-INSTRUCT,1,Noop(NOMESSAGE (beeb only) voicemail)
exten => s-INSTRUCT,n,Macro(get-vmcontext,${MEXTEN})
exten => s-INSTRUCT,n,Dial(IAX2/Mailbox/b${ARG1})
exten => s-INSTRUCT,n,Goto(exit-${VMSTATUS},1)

exten => s-DIRECTDIAL,1,Noop(DIRECTDIAL voicemail)
exten => s-DIRECTDIAL,n,Macro(get-vmcontext,${MEXTEN})
exten => s-DIRECTDIAL,n,Dial(IAX2/Mailbox/b${ARG1})
exten => s-DIRECTDIAL,n,Goto(exit-${VMSTATUS},1)

exten => _s-.,1,Macro(get-vmcontext,${MEXTEN})
exten => _s-.,n,Dial(IAX2/Mailbox/b${ARG1})
exten => _s-.,n,Goto(exit-${VMSTATUS},1)

Alright, so it seems i’ve got it resolved. I was able to track down the change to the voicemail app that invalidated the old config from that original post. Here’s the working config I put together just in case anyone is interested:

On the main PBX I added the following to my extensions_custom.conf file:

[macro-vm]
exten => s-NOANSWER,1,Dial(IAX2/Mailbox/${ARG1}u)
exten => s-NOANSWER,2,Goto(default,s,1)
exten => s-BUSY,1,Dial(IAX2/Mailbox/${ARG1}b)
exten => s-BUSY,2,Goto(default,s,1)

and I added the following to my extensions_custom.conf file:

[from-internal]
exten => _XXXXb,1,Voicemail(${EXTEN:0:-1}@default,b)
exten => _XXXXu,1,Voicemail(${EXTEN:0:-1}@default,u)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.