[Asterisk-Users] Loops and Variables

trixter aka Bret McDanel trixter at 0xdecafbad.com
Sun Feb 19 18:52:31 MST 2006


On Sun, 2006-02-19 at 20:30 -0500, Doug Lytle wrote:
> I have the following in my dialplan, counts the number of loops and when 
> it hits greater then 5, exit.  It works, but errors initially with,
> 
> "syntax error, unexpected TOK_PLUS, expecting TOK_MINUS or TOK_LP or 
> tolken; Input: +1".
> 
> Could somebody tell me why?

is count defined before it tries to do count + 1?

if count is null you will see a parser error like that becuase it
evaluates to "count = + 1"


-- 
Trixter http://www.0xdecafbad.com     Bret McDanel
UK +44 870 340 4605   Germany +49 801 777 555 3402
US +1 360 207 0479 or +1 516 687 5200
FreeWorldDialup: 635378
http://www.sacaug.org/ Sacramento Asterisk Users Group
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060219/318b75cb/attachment.pgp


More information about the asterisk-users mailing list