; — если звонишь сам себе — попадаешь на свой mailbox
exten => s,1,GotoIf($[${CALLERID(num)} = ${MACRO_EXTEN}]?gomail:godial)
exten => s,n(gomail),VoiceMailMain(s${MACRO_EXTEN})
exten => s,n,Hangup()
exten => s,n(godial),Dial(SIP/${MACRO_EXTEN},30)
exten => s,n,Set(CHANNEL(language)=ru)
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s-ANSWER,1,Hangup()
exten => s-NOANSWER,1,HangUp()
exten => s-CONGESTION,1,Congestion()
exten => s-CANCEL,1,Hangup()
exten => s-BUSY,1,Hangup()
exten => s-CHANUNAVAIL,1,Voicemail(${MACRO_EXTEN})