Sorry, I use correct syntax in dialplan, but here in e-mail I maked this mistake. In dialplan I'm using ${CALLERIDNUM::3}
----- Original Message ----- From: "Trevor G. Hammonds" <[EMAIL PROTECTED]> > 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 _______________________________________________ --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