<div>Hi all,</div>
<div>&nbsp;</div>
<div>I recently found GotoIf not working right in my extensions.conf, so I write a simple test and test it on my newly installed v1.2 box.</div>
<div>However, in all cases, GotoIf seems to always result in &quot;true&quot;.&nbsp; This happens to me in both ABE and V1.2</div>
<div>&nbsp;</div>
<div>my extensions.conf :</div>
<div>[globals]<br>Music=123</div>
<div>[default]</div>
<div>exten =&gt; ${Music},1,Answer<br>exten =&gt; ${Music},2,SetVar(t=1)<br>exten =&gt; ${Music},3,NoOp(${TIMESTAMP} - ${T})<br>exten =&gt; ${Music},4,MP3Player(/var/lib/asterisk/mohmp3/deck.mp3)<br>exten =&gt; ${Music},5,SetVar(t=$[${T} + 1])
<br>exten =&gt; ${Music},6,GotoIf(${T}&lt;3?3:7)<br>exten =&gt; ${Music},7,Hangup</div>
<div>&nbsp;</div>
<div>CLI&gt; output :</div>
<div>*CLI&gt;&nbsp;&nbsp;&nbsp;&nbsp; -- Executing Answer(&quot;SIP/100-274e&quot;, &quot;&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing Set(&quot;SIP/100-274e&quot;, &quot;t=1&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing NoOp(&quot;SIP/100-274e&quot;, &quot;20051118-153136 - 1&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing MP3Player(&quot;SIP/100-274e&quot;, &quot;/var/lib/asterisk/mohmp3/deck.mp3&quot;)<br>in new stack<br>Nov 18 15:31:39 NOTICE[5414]: app_mp3.c:108 timed_read: Poll timed out/errored o<br>ut with 0<br>&nbsp;&nbsp;&nbsp; -- Executing Set(&quot;SIP/100-274e&quot;, &quot;t=2&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing <font color="#ff0000">GotoIf(&quot;SIP/100-274e&quot;, &quot;2&lt;3?3:7&quot;)</font> in new stack<br>&nbsp;&nbsp;&nbsp; -- Goto (default,123,3)<br>&nbsp;&nbsp;&nbsp; -- Executing NoOp(&quot;SIP/100-274e&quot;, &quot;20051118-153139 - 2&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing MP3Player(&quot;SIP/100-274e&quot;, &quot;/var/lib/asterisk/mohmp3/deck.mp3&quot;)<br>in new stack<br>Nov 18 15:31:42 NOTICE[5414]: app_mp3.c:108 timed_read: Poll timed out/errored o<br>ut with 0<br>&nbsp;&nbsp;&nbsp; -- Executing Set(&quot;SIP/100-274e&quot;, &quot;t=3&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing <font color="#ff0000">GotoIf(&quot;SIP/100-274e&quot;, &quot;3&lt;3?3:7&quot;)</font> in new stack<br>&nbsp;&nbsp;&nbsp; -- Goto (default,123,<font color="#ff0000">3</font>)<br>&nbsp;&nbsp;&nbsp; -- Executing NoOp(&quot;SIP/100-274e&quot;, &quot;20051118-153142 - 3&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing MP3Player(&quot;SIP/100-274e&quot;, &quot;/var/lib/asterisk/mohmp3/deck.mp3&quot;)<br>in new stack<br>Nov 18 15:31:45 NOTICE[5414]: app_mp3.c:108 timed_read: Poll timed out/errored o<br>ut with 0<br>&nbsp;&nbsp;&nbsp; -- Executing Set(&quot;SIP/100-274e&quot;, &quot;t=4&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing <font color="#ff0000">GotoIf(&quot;SIP/100-274e&quot;, &quot;4&lt;3?3:7&quot;)</font> in new stack<br>&nbsp;&nbsp;&nbsp; -- Goto (default,123,<font color="#ff0000">3</font>)<br>&nbsp;&nbsp;&nbsp; -- Executing NoOp(&quot;SIP/100-274e&quot;, &quot;20051118-153145 - 4&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing MP3Player(&quot;SIP/100-274e&quot;, &quot;/var/lib/asterisk/mohmp3/deck.mp3&quot;)<br>in new stack<br>Nov 18 15:31:48 NOTICE[5414]: app_mp3.c:108 timed_read: Poll timed out/errored o<br>ut with 0</div>

<div>&nbsp;</div>
<div>&nbsp;</div>
<div>I have been trying to figure this out for the past few days.&nbsp; I think it must be some stupid mistake of mine, but just can't figure out what/where.</div>
<div>&nbsp;</div>
<div>Please help.</div>
<div>Thank you very much.</div>
<div>Andy</div>