Re: [asterisk-users] Increasing variables - Changes v13 vs v16

2019-10-01 Thread Administrator TOOTAI

Le 01/10/2019 à 16:38, Eric Wieling a écrit :

Verify ${myCpt} is not empty.


Yes, it was that. Many thanks



On 10/1/19 10:24 AM, Administrator TOOTAI wrote:

Hi list,

on asterisk 13 I use

same => n,Set(__myCpt=$[${myCpt} + 1])

which is working well. On an Asterisk 16 I get, for this same command

[2019-10-01 16:15:01] WARNING[28197][C-0008]: ast_expr2.fl:470 
ast_yyerror: ast_yyerror():  syntax error: syntax error, unexpected 
'+', expecting $end; Input:


  + 1

  ^

What changes in 16 version creates this behavior and how to get it work ?

Thanks for any hint





--
Daniel

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Increasing variables - Changes v13 vs v16

2019-10-01 Thread Eric Wieling

Verify ${myCpt} is not empty.

On 10/1/19 10:24 AM, Administrator TOOTAI wrote:

Hi list,

on asterisk 13 I use

same => n,Set(__myCpt=$[${myCpt} + 1])

which is working well. On an Asterisk 16 I get, for this same command

[2019-10-01 16:15:01] WARNING[28197][C-0008]: ast_expr2.fl:470 
ast_yyerror: ast_yyerror():  syntax error: syntax error, unexpected '+', 
expecting $end; Input:


  + 1

  ^

What changes in 16 version creates this behavior and how to get it work ?

Thanks for any hint



--
http://help.nyigc.net/

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] Increasing variables - Changes v13 vs v16

2019-10-01 Thread Administrator TOOTAI

Hi list,

on asterisk 13 I use

same => n,Set(__myCpt=$[${myCpt} + 1])

which is working well. On an Asterisk 16 I get, for this same command

[2019-10-01 16:15:01] WARNING[28197][C-0008]: ast_expr2.fl:470 
ast_yyerror: ast_yyerror():  syntax error: syntax error, unexpected '+', 
expecting $end; Input: 



 + 1 



 ^

What changes in 16 version creates this behavior and how to get it work ?

Thanks for any hint

--
Daniel

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users