<div>Hi all,</div>
<div> </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 "true". This happens to me in both ABE and V1.2</div>
<div> </div>
<div>my extensions.conf :</div>
<div>[globals]<br>Music=123</div>
<div>[default]</div>
<div>exten => ${Music},1,Answer<br>exten => ${Music},2,SetVar(t=1)<br>exten => ${Music},3,NoOp(${TIMESTAMP} - ${T})<br>exten => ${Music},4,MP3Player(/var/lib/asterisk/mohmp3/deck.mp3)<br>exten => ${Music},5,SetVar(t=$[${T} + 1])
<br>exten => ${Music},6,GotoIf(${T}<3?3:7)<br>exten => ${Music},7,Hangup</div>
<div> </div>
<div>CLI> output :</div>
<div>*CLI> -- Executing Answer("SIP/100-274e", "") in new stack<br> -- Executing Set("SIP/100-274e", "t=1") in new stack<br> -- Executing NoOp("SIP/100-274e", "20051118-153136 - 1") in new stack
<br> -- Executing MP3Player("SIP/100-274e", "/var/lib/asterisk/mohmp3/deck.mp3")<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> -- Executing Set("SIP/100-274e", "t=2") in new stack
<br> -- Executing <font color="#ff0000">GotoIf("SIP/100-274e", "2<3?3:7")</font> in new stack<br> -- Goto (default,123,3)<br> -- Executing NoOp("SIP/100-274e", "20051118-153139 - 2") in new stack
<br> -- Executing MP3Player("SIP/100-274e", "/var/lib/asterisk/mohmp3/deck.mp3")<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> -- Executing Set("SIP/100-274e", "t=3") in new stack
<br> -- Executing <font color="#ff0000">GotoIf("SIP/100-274e", "3<3?3:7")</font> in new stack<br> -- Goto (default,123,<font color="#ff0000">3</font>)<br> -- Executing NoOp("SIP/100-274e", "20051118-153142 - 3") in new stack
<br> -- Executing MP3Player("SIP/100-274e", "/var/lib/asterisk/mohmp3/deck.mp3")<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> -- Executing Set("SIP/100-274e", "t=4") in new stack
<br> -- Executing <font color="#ff0000">GotoIf("SIP/100-274e", "4<3?3:7")</font> in new stack<br> -- Goto (default,123,<font color="#ff0000">3</font>)<br> -- Executing NoOp("SIP/100-274e", "20051118-153145 - 4") in new stack
<br> -- Executing MP3Player("SIP/100-274e", "/var/lib/asterisk/mohmp3/deck.mp3")<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> </div>
<div> </div>
<div>I have been trying to figure this out for the past few days. I think it must be some stupid mistake of mine, but just can't figure out what/where.</div>
<div> </div>
<div>Please help.</div>
<div>Thank you very much.</div>
<div>Andy</div>