[Asterisk-Users] Gogoif with variables acting funny?

Shaun Dawson bigchiefscd at yahoo.com
Mon Jul 12 09:26:02 MST 2004


<snip>

>     -- Executing SetVar("Zap/99-1", "counter=[0+1]")
> in new stack
>     -- Executing GotoIf("Zap/99-1",
> "[[0+1]<3]?s|7:h|1") in new stack
>     -- Goto (inbound-analog,h,1)

<snip>

> 
> It looks to me as if the Gotoif thinks that [0+1] is
> greater than or
> equal to 3 and therefore jumps to hangup.
> 
> Am I missing something here?
> 

  I apologize in advance for the stupid question, but
is it at all possible that counter is being evaluated
in a string context either in the additionor the
GoToIf command?  (One quick way to check that is to
see what happens if you put a second addition in right
after the first, and see if you get '2', or
'[[0+1]+1]').


Shaun


		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 



More information about the asterisk-users mailing list