[asterisk-users] asterisk and IVR

Salaheddine Elharit salah.elharit200 at gmail.com
Wed Jul 31 07:42:41 CDT 2013


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)


2013/7/31 Joshua Colp <jcolp at digium.com>

> A J Stiles wrote:
>
>> * PLEASE NOTE: YOUR RESPONSE BELONGS AT THE END, NOT HERE *
>>
>> On Wednesday 31 July 2013, Salaheddine Elharit wrote:
>>
>>> hello,
>>>
>>> the CLI for whe the call is answered  :
>>>
>>> Accepting call from '0661xxxxxx' to '534' on channel 0/26, span 1
>>>      -- Executing [534 at default:1] Dial("Zap/26-1", "SIP/228| 10") in new
>>> stack
>>>      -- Called 228
>>>      -- SIP/228-09e71378 is ringing
>>>      -- SIP/228-09e71378 answered Zap/26-1
>>>    == Spawn extension (default, 534, 1) exited non-zero on 'Zap/26-1'
>>>      -- Hungup 'Zap/26-1'
>>> srvradio*CLI>
>>>
>>
> As dialplan execution stops if the outgoing call is answered and then
> bridged the approach of using a Goto afterwards for ANSWER as well will not
> work. You *must* use the h extension that was previously mentioned to cover
> this case.
>
> Cheers,
>
> --
> Joshua Colp
> Digium, Inc. | Senior Software Developer
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
> Check us out at:  www.digium.com  & www.asterisk.org
>
>
> --
> ______________________________**______________________________**_________
> -- 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<http://lists.digium.com/mailman/listinfo/asterisk-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130731/41f3b9da/attachment.htm>


More information about the asterisk-users mailing list