[asterisk-users] asterisk and IVR

Salaheddine Elharit salah.elharit200 at gmail.com
Thu Aug 1 10:11:41 CDT 2013


i have Create a "h" extension and all works without issue .thank you so
much for your help and support i really appreciate it.


2013/7/31 A J Stiles <asterisk_list at earthshod.co.uk>

> On Wednesday 31 July 2013, Salaheddine Elharit wrote:
> > hi
> >
> > i use the code below but i didn't get the We reached step 102" the same
> > result
> >
> > exten => 534,1,Dial(SIP/228, 10)
> > exten => 534,n,NoOp(Dial status is ${DIALSTATUS})
> > exten => 534,n,GotoIf($["${DIALSTATUS}" = "ANSWER"]?answered)
> > exten => 534,n,Goto(home,s,1)
> > exten => 534,n(answered),NoOp(Call was answered)
> > exten => 534,102,NoOp(We reached step 102)
>
>
> So it looks as though it's breaking out of the extension logic altogether,
> if
> the call gets answered.  In that case, you'll have to do it the
> old-fashioned
> way:  Create a "h" extension  (which fires when a call is hung up)  *in the
> same context as your 534 extension*  (you can have a h extension in each
> context, if needs be), and do all your fancy end-of-call stuff there.
>
> exten => 534,1,Dial(SIP/228, 10)
> exten => 534,n,NoOp(Dial status is ${DIALSTATUS})
> exten => 534,n,Goto(home,s,1)
>
> exten => h,1,NoOp(Hangup received. Dial status is ${DIALSTATUS})
>
> Note that if there are other extensions in the context, h will be called
> when
> they get hung up -- you might need some logic in there to deal with this
>  (or
> cheat by just having one extension besides h in this context, and use a
> fully-
> specified Goto() to jump into it.)
>
>
> --
> AJS
>
> Answers come *after* questions.
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130801/caaf6e36/attachment.htm>


More information about the asterisk-users mailing list