Hello list,
how can I go from *100* to 100 ?
I know I can do something like ${EXTEN:1} but that way I only get rid of
just one *.
Kind regards,
Jonas.
--
_
-- Bandwidth and Colocation Provided by
: 30 September 2010 08:31
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Go from *100* to just 100
Hello list,
how can I go from *100* to 100 ?
I know I can do something like ${EXTEN:1} but that way I only get rid of
just one *.
Kind regards,
Jonas
On Thu, 30 Sep 2010, Jonas Kellens wrote:
Hello list,
how can I go from *100* to 100 ?
I know I can do something like ${EXTEN:1} but that way I only get rid of just
one *.
${EXTEN:1:3}
That gives 3 characters from an offset of 1.
Read the file channelvariables.txt in the doc directory.
how can I go from *100* to 100 ?
I know I can do something like ${EXTEN:1} but that way I only get rid of just
one *.
${EXTEN:1:-1} removes the first and last characters of ${EXTEN}.
--
_
-- Bandwidth and Colocation