[Asterisk-Users] ${variable:a:b}

Lele Forzani lele at windmill.it
Tue Mar 18 10:49:30 MST 2003


what's the intended behaviour of ${variable:a:b}?


given that ${exten} = 501234


until yesterday ${exten:2} would give '1234'

with current CVS ${exten:2} is '50' while ${exten:2:4} is '1234'

how do I just strip characters/digits in front of the variable without 
specifying a length?


I was doing things like:
exten => _00.,1,Goto(context,${EXTEN:2},1)

thanks,
lele







More information about the asterisk-users mailing list