Ok Here is my scenario:
I currently have asterisk 1.6 connected to Exchange 2007 UM. When a extension doesn’t answer I use this custom config to send the caller to the exchange mailbox instead of the asterisk mailbox.
[custom-exchangevm-tr]
exten => s,1,NoOp(Entering custom-exchangevm for a call to ${DNID})
exten => s,n,Set(EXTTOCALL=50)
exten => s,n,NoOp(Sending to Voicemail box ${EXTTOCALL})
exten => s,n,SIPAddHeader(Diversion: ;reason=no-answer;screen=no;privacy=off)
exten => s,n,Dial(SIP/Exchange/999)
exten => s,n,Hangup
The issue for me is that Exchange 2007 UM goes offline every now and then and gives the “All circuits are busy” message to the caller and hangs up. So I’m wondering what can I add to this custom extension that will try the SIP/999 first then if its unavailable it will send them to the regular trixbox mailbox for the dialed extension.
Any insight would be great.
Thanks,
Tom