[Asterisk-Users] CALLERIDNUM::3 do not working on 1.2.1

Trevor G. Hammonds trevor at concipient.net
Sat Jan 14 06:18:07 MST 2006


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" <dinesh at alphaque.com>
>> 
>> 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."
>> dinesh at alphaque.com                (0 0)    http://www.alphaque.com/




More information about the asterisk-users mailing list