; Below assumes you are using the same number for Voicemail boxes as extensions
; if ${RDNIS} is blank then GotoIf will go to extension 2, otherwise it
will go to extension 102
exten => 8500,1,GoToIf($[X${RDNIS} = X]?2:102)
exten => 8500,2,VoiceMailMain(s${CALLERIDNUM})
exten => 8500,3,Hangup
exten => 8500,102,VoiceMail(u${RDNIS})
exten => 8500,103,Hangup; you should now be able to press the "Messages" key and get Voicemail man, and press the "ToVM" key when you have an incoming call and have the call immediately forwarded to your voicemail with the unavailable greeting.
_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
