<div dir="ltr">hi <div><br></div><div style>i use the code below but i didn't get the <span style="font-family:arial,sans-serif;font-size:12.727272033691406px">We reached step </span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">102" the same result</span></div>
<div style><br></div><div style><div class="im" style="font-family:arial,sans-serif;font-size:12.727272033691406px">exten => 534,1,Dial(SIP/228, 10)<br>exten => 534,n,NoOp(Dial status is ${DIALSTATUS})<br>exten => 534,n,GotoIf($["${DIALSTATUS}" = "ANSWER"]?answered)<br>
exten => 534,n,Goto(home,s,1)<br>exten => 534,n(answered),NoOp(Call was answered)<br></div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">exten => 534,102,NoOp(We reached step 102)</span><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/31 Joshua Colp <span dir="ltr"><<a href="mailto:jcolp@digium.com" target="_blank">jcolp@digium.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">A J Stiles wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
* PLEASE NOTE: YOUR RESPONSE BELONGS AT THE END, NOT HERE *<br>
<br>
On Wednesday 31 July 2013, Salaheddine Elharit wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hello,<br>
<br>
the CLI for whe the call is answered :<br>
<br>
Accepting call from '0661xxxxxx' to '534' on channel 0/26, span 1<br>
-- Executing [534@default:1] Dial("Zap/26-1", "SIP/228| 10") in new<br>
stack<br>
-- Called 228<br>
-- SIP/228-09e71378 is ringing<br>
-- SIP/228-09e71378 answered Zap/26-1<br>
== Spawn extension (default, 534, 1) exited non-zero on 'Zap/26-1'<br>
-- Hungup 'Zap/26-1'<br>
srvradio*CLI><br>
</blockquote></blockquote>
<br></div>
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.<br>
<br>
Cheers,<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Joshua Colp<br>
Digium, Inc. | Senior Software Developer<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>
Check us out at: <a href="http://www.digium.com" target="_blank">www.digium.com</a> & <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font></span><div class="HOEnZb"><div class="h5"><br>
<br>
--<br>
______________________________<u></u>______________________________<u></u>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a><br>
</div></div></blockquote></div><br></div>