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

Martin Pycko martinp at digium.com
Tue Mar 18 12:24:26 MST 2003


It's fixed now.

> what's the intended behaviour of ${variable:a:b}?
it's the same as substring application

> given that ${exten} = 501234
> until yesterday ${exten:2} would give '1234'
and it does now

>
> 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?
you can do ${variable:a} or ${variable:a:1000} :)

Martin
>
>
> I was doing things like:
> exten => _00.,1,Goto(context,${EXTEN:2},1)
>
> thanks,
> lele
>
>
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list