It supports the substring with positive and negative vals so:${foo:3:4} would start at char 3 in the string and eval to the next 4 chars${foo:-3:2} would start at the end and go back 3 chars then print the next 2 charsIf the var name is followed by a ( or a space, it will pass the values to the FSAPI and expand the result inline.${sofia_contact 1004}equiv of...${sofia_contact(1004)}On Thu, Dec 13, 2012 at 8:53 AM, <covici@ccs.covici.com> wrote:
Hi. I was experimenting with ${variable} and was wondering what could
be in there before the }? I can do a substring if I say variable:2, but
I wonder what else you can do? The bash manual has all kinds of things
you can have, but how much of this will fs do?
Thanks in advance for any suggestions.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici@ccs.covici.com
Brian West
brian@freeswitch.org

Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest