(Try again from the proper email address) --Rob -----Original Message----- From: Rob Thomas Sent: Thursday, 22 June 2006 12:22 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [Asterisk-Users] syntax error That's freePBX or AMP code that we've since fixed - The replacement line is exten => s,2,GotoIf($["${CALLERID(name):0:${LEN(${RGPREFIX})}}" != "${RGPREFIX}"]?4:3) ; check for old prefix (Upgrade to freePBX 2.1.1, it's much better, really) --Rob (freePBX dev)> -----Original Message----- > From: dviggiani@tiscali.it [mailto:dviggiani@tiscali.it] > Sent: Wednesday, 21 June 2006 10:17 PM > To: 'Asterisk Users Mailing List - Non-Commercial Discussion' > Subject: [Asterisk-Users] syntax error > > > Does anyone know why this row: > > exten => s,2,GotoIf($[${CALLERIDNAME:0:${LEN(${RGPREFIX})}} !> ${RGPREFIX}]?4:3) > > generate this error: > > ast_expr2.fl: ast_yyerror(): syntax error: syntax error, > unexpected TOK_NE, expecting TOK_MINUS or TOK_COMPL or TOK_LP > or TOKEN; Input: != > ^ > > ? > > I was unable to debug it. > -- > DV > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Third time's the charm.. (Email server is sending from wrong address!) --Rob -----Original Message----- From: Rob Thomas Sent: Thursday, 22 June 2006 12:22 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [Asterisk-Users] syntax error That's freePBX or AMP code that we've since fixed - The replacement line is exten => s,2,GotoIf($["${CALLERID(name):0:${LEN(${RGPREFIX})}}" != "${RGPREFIX}"]?4:3) ; check for old prefix (Upgrade to freePBX 2.1.1, it's much better, really) --Rob (freePBX dev)> -----Original Message----- > From: dviggiani@tiscali.it [mailto:dviggiani@tiscali.it] > Sent: Wednesday, 21 June 2006 10:17 PM > To: 'Asterisk Users Mailing List - Non-Commercial Discussion' > Subject: [Asterisk-Users] syntax error > > > Does anyone know why this row: > > exten => s,2,GotoIf($[${CALLERIDNAME:0:${LEN(${RGPREFIX})}} !> ${RGPREFIX}]?4:3) > > generate this error: > > ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected > TOK_NE, expecting TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input: > != ^ > > ? > > I was unable to debug it. > -- > DV > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
> From: Rob Thomas > > That's freePBX or AMP code that we've since fixed - The > replacement line is > > exten => > s,2,GotoIf($["${CALLERID(name):0:${LEN(${RGPREFIX})}}" != > "${RGPREFIX}"]?4:3) ; check for old prefixYes, ok. I'm gradually fixing all the code using Asterisk 1.2 syntax.> (Upgrade to freePBX 2.1.1, it's much better, really)I "upgraded" to custom, 'made with vi' files, thanks! This was an AMP residue. DV