[Asterisk-Users] pressing a key to get in of voicemail?

Moises Silva moises.silva at gmail.com
Fri May 27 08:19:05 MST 2005


may be something like this?

[macro-sipextens]
exten => s,1,SetVar(voicemail=${ARG1})
exten => s,2,Dial(SIP/${ARG1},40,r)
exten => s,3,GotoIf($[${DIALSTATUS} = NOANSWER] ? 66  : 3)
exten => s,4,GotoIf($[${DIALSTATUS} = BUSY]     ? 68  : 4)
exten => s,5,Playback(iss_invalid_sipexten)
exten => s,6,Hangup()
exten => s,66,Goto(ask_voice_mail_no_answer,s,1)
exten => s,68,Goto(ask_voice_mail_busy,s,1)

the context ask_voice_mail_no_answer could be
[ask_voice_mail_no_answer]
exten => s,1,Background(press_1_for_voicemail)
exten => 1,1,Voicemail(u${voicemail})
exten => 1,2,Hangup()

regards

On 5/26/05, Ing CIP Alejandro Celi Mariátegui <alex at linux.org.pe> wrote:
> 
> I've currently got Asterisk configured to take incoming calls, ask for
> extension, ring the phone and send them directly to the voicemail.
> 
> What I want to be able to do is first a message "press 1 for voicemail
> or hangup" before voicemail come up.
> 
> Any ideas?
> 
> regards,
> 
> --
> Ing CIP Alejandro Celi Mariátegui
> <alex at linux.org.pe>
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 


-- 
"Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"



More information about the asterisk-users mailing list