<div dir="ltr">hello,<div><br></div><div style>the CLI for whe the call is <span style="font-family:arial,sans-serif;font-size:12.727272033691406px">answered</span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"> :</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></span></div><div style><div><font face="arial, sans-serif">Accepting call from '0661xxxxxx' to '534' on channel 0/26, span 1</font></div>
<div><font face="arial, sans-serif"> -- Executing [534@default:1] Dial("Zap/26-1", "SIP/228| 10") in new stack</font></div><div><font face="arial, sans-serif"> -- Called 228</font></div><div><font face="arial, sans-serif"> -- SIP/228-09e71378 is ringing</font></div>
<div><font face="arial, sans-serif"> -- SIP/228-09e71378 answered Zap/26-1</font></div><div><font face="arial, sans-serif"> == Spawn extension (default, 534, 1) exited non-zero on 'Zap/26-1'</font></div><div><font face="arial, sans-serif"> -- Hungup 'Zap/26-1'</font></div>
<div><font face="arial, sans-serif">srvradio*CLI></font></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<span style="font-family:arial;font-size:small">the CLI for whe the call is no answer</span> :<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div><div><font face="arial, sans-serif">Accepting call from '0661xxxxxx' to '534' on channel 0/23, span 1</font></div>
<div><font face="arial, sans-serif"> -- Executing [534@default:1] Dial("Zap/23-1", "SIP/228| 10") in new stack</font></div><div><font face="arial, sans-serif"> -- Called 228</font></div><div><font face="arial, sans-serif"> -- SIP/228-09e8b4b0 is ringing</font></div>
<div><font face="arial, sans-serif"> -- Nobody picked up in 10000 ms</font></div><div><font face="arial, sans-serif"> -- Executing [534@default:2] NoOp("Zap/23-1", "Dial status is NOANSWER") in new stack</font></div>
<div><font face="arial, sans-serif"> -- Executing [534@default:3] GotoIf("Zap/23-1", "0?answered") in new stack</font></div><div><font face="arial, sans-serif"> -- Executing [534@default:4] Goto("Zap/23-1", "home|s|1") in new stack</font></div>
<div><font face="arial, sans-serif"> -- Goto (home,s,1)</font></div><div><font face="arial, sans-serif"> -- Executing [s@home:1] SetGlobalVar("Zap/23-1", "sounds_path=/var/lib/asterisk/sounds/") in new stack</font></div>
<div><font face="arial, sans-serif"> == Setting global variable 'sounds_path' to '/var/lib/asterisk/sounds/'</font></div><div><font face="arial, sans-serif"> -- Executing [s@home:2] BackGround("Zap/23-1", "/var/lib/asterisk/sounds/welcome") in new stack</font></div>
<div><font face="arial, sans-serif"> -- <Zap/23-1> Playing '/var/lib/asterisk/sounds/welcome' (language 'en')</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"> -- Channel 0/23, span 1 got hangup request, cause 16</font></div>
<div><font face="arial, sans-serif"> == Spawn extension (home, s, 2) exited non-zero on 'Zap/23-1'</font></div><div><font face="arial, sans-serif"> -- Hungup 'Zap/23-1'</font></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/26 A J Stiles <span dir="ltr"><<a href="mailto:asterisk_list@earthshod.co.uk" target="_blank">asterisk_list@earthshod.co.uk</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">* THIS IS NOT WHERE YOUR RESPONSE GOES *<br>
<br>
On Friday 26 July 2013, Salaheddine Elharit wrote:<br>
</div><div class="im">> thanks for your response<br>
><br>
> but i get the same result i can't execut the next (go to home,s,1) with the<br>
> code below<br>
><br>
> 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>
><br>
> any help please<br>
<br>
</div>Do you get the dial status displayed? Then the NoOp() immediately before the<br>
GotoIf is executing. It's just possible I messed up the syntax of the<br>
GotoIf() since I can't actually test that right now -- I do have an Asterisk<br>
box with a dialplan stuffed with GotoIf() statements; but right at the moment,<br>
I can't get to that machine.<br>
<br>
Please paste your CLI output below, for the cases where (1) the call is<br>
answered and (2) the Dial() command times out.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
AJS<br>
<br>
Answers come *after* questions.<br>
<br>
--<br>
_____________________________________________________________________<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/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>