voicemail server

apaijmans
Posts: 5
Member Since:
2009-10-11

Hi,

I am trying to create a dedicated voicemail server and need a little help.
There are two things I want to accomplish with a dedicated voicemail server,
First thing is reliability so with a trunk / multiple trunks it is possible to route all calls to a voicemail server.
With a seperate web gui (Crystal Recording Interface) you can easily manage the voicemail
All is well accept that our users are not able to turn the voicemail box on or off in realtime.
They can forward there call's but this requires them to know there extension number and allways remember to forward calls to voicemail or turn it off.

What if you create an application in the dial plan to allways forward calls to voicemail after XX number of seconds. Lets say users dial *123 to activate or deactivate there voicemail after XX number of seconds.
They will not be able to change the number of seconds but it is good enough.

On the dedicated voicemail server I create a voicemailbox for all the extensions. All voicemailboxes will be active but only when you forward calls to the voicemail server will you get a voicemailbox. Dialing extension 101@voicemailserver would dial into the voicemailbox for this extension
Lets say the 2 trunks (fallover) are voicemail1 and voicemail2, the custom application would look something like this,

[custom-voicemail]
exten => *123.n,Answer
exten => *123.n,Wait(1)
exten => *123,n,Playback(custom/switchvoicemailonof)
exten => *123,n,Wait(1)
exten=_*123,n,GotoIf($[$["${OUT_${DIAL_TRUNK}" != "SIP/voicemail1"] & $["${OUT_${DIAL_TRUNK}}" != "voicemail2/"]]?skip)
exten => s,n(skip),MacroExit()
; end of [custom-voicemail]

But what argument should I place behind the GotoIf statement? This should be a general application for all users. So the argument to send with the forwarded call should be the extension $EXTEN$ or $CLID$ so that the voicemail server could send the call to the correct voicemail box.

If you dialed *123 with extension 101 the call gets forwarded to voicemailbox 101 but if extension 105 would dial *123 the call would be forwarded to voicemailbox 105.

Albert



dickson
Posts: 1831
Member Since:
2006-06-02
I read your post a couple of

I read your post a couple of times, and i'm not sure if i completely understand the logic you are doing, but I'm wondering if you could instead just go into each extension, setup 'follow-me' to ring their extension for the 15 seconds, then make the failover destination the route to your new voicemail server? You would need to create a miscellaneous destination, for each person, but the entire thing would automatic and invisible to your users.

Do you have a lot of voicemail users? Sounds like a lot of work.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.