[asterisk-users] authentication number at the end of the number before calls go through.

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Wed Mar 12 01:40:07 CDT 2008


On Wednesday 12 March 2008 01:29:16 Mark Quitoriano wrote:
> ok i got the answer
>
> Substrings    ${foo:*offset*:*length*}
>
> returns a substring of the string *foo*, beginning at offset *offset* and
> returning the next *length* characters.
>
>    - If *offset* is negative, it is taken leftwards from the right hand
>    end of the string.
>    - If *length* is omitted or is negative, then all the rest of the
>    string beginning at *offset* is returned.

In 1.4 and 1.6, a negative length reduces the length of the total string:

${EXTEN:0:-5} gives you everything but the last 5 digits.

-- 
Tilghman



More information about the asterisk-users mailing list