[Asterisk-Users] pressing a key to get in of voicemail?
Ing CIP Alejandro Celi Mariátegui
alex at linux.org.pe
Fri May 27 17:28:09 MST 2005
Hi Moises, I made some changes, but the idea is the same. This is my
extensions.conf file, my extension is the 403 and I'm trying to
configure it:
[context]
...
[ask_voice_mail_no_answer]
exten => s,1,Background(presione_1_para_voicemail)
exten => 1,1,Voicemail(u${voicemail})
exten => 1,2,Hangup()
[default]
exten => s,1,Wait,1
exten => s,2,Answer
exten => s,3,DigitTimeout,5
exten => s,4,ResponseTimeout,10
exten => s,5,BackGround(vm-inicio)
exten => t,1,Dial(SIP/401,30,Tt) ; Default phone
; When I hear the voice, y press 403 keys and...
exten => 403,1,SetVar(voicemail=${ARG1})
exten => 403,2,Dial(SIP/403,10,Tt)
exten => 403,3,Wait,1
exten => 403,66,Goto(ask_voice_mail_no_answer,s,1)
exten => 403,103,Hangup
But don't work, logs say:
-- Starting simple switch on 'Zap/3-1'
-- Executing Wait("Zap/3-1", "1") in new stack
-- Executing Answer("Zap/3-1", "") in new stack
-- Executing DigitTimeout("Zap/3-1", "5") in new stack
-- Set Digit Timeout to 5
-- Executing ResponseTimeout("Zap/3-1", "10") in new stack
-- Set Response Timeout to 10
-- Executing BackGround("Zap/3-1", "vm-inicio") in new stack
-- Playing 'vm-inicio' (language 'en')
== CDR updated on Zap/3-1
-- Executing SetVar("Zap/3-1", "voicemail=") in new stack
-- Executing Dial("Zap/3-1", "SIP/403|10|Tt") in new stack
-- Called 403
-- SIP/403-293c is ringing
-- Nobody picked up in 10000 ms
== Everyone is busy/congested at this time
-- Timeout on Zap/3-1
== CDR updated on Zap/3-1
-- Executing Dial("Zap/3-1", "SIP/401|30|Tt") in new stack
-- Called 401
-- SIP/401-3ab3 is ringing
-- Hungup 'Zap/1-1'
Regards,
Alex
--
Ing CIP Alejandro Celi Mariátegui
<alex at linux.org.pe>
El vie, 27-05-2005 a las 10:19, Moises Silva escribió:
> 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
> >
More information about the asterisk-users
mailing list