You are using incorrect syntax. Notice where the close bracket is placed, using your examples:
${CALLERIDNUM:3} erase first 3 digits ${CALLERIDNUM::3} returns first 3 digits ${CALLERIDNUM:3:3} should erase first 3 digits and return next 3 digits Pisac wrote on Saturday, 14 January 2006 5:10 AM: > No, > ${CALLERIDNUM}:3 erase first 3 digits > ${CALLERIDNUM}::3 returns first 3 digits > ${CALLERIDNUM}:3:3 should erase first 3 digits and return next 3 > digits > > So, > if > ${CALLERIDNUM}=0123456789 > Then > ${CALLERIDNUM}:3 returns 3456789 > ${CALLERDINUM}::3 returns 012 > ${CALLERIDNUM}:3:3 returns 345 > > But this do not work anymore in 1.2.1, and if I do not found solution > for this I will downgrade to 1.0.9 > > > > > ----- Original Message ----- > From: "Dinesh Nair" <[EMAIL PROTECTED]> >> >> i believe the syntax is ${CALLERIDNUM:3} and not as you're using it >> with double colons. also, the present accepted method is to use the >> CALLERID() function rather than the variable which may be deprecated >> in future releases. >> >> -- >> Regards, /\_/\ "All dogs go to heaven." >> [EMAIL PROTECTED] (0 0) http://www.alphaque.com/ _______________________________________________ --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