On 20/08/13 09:29, Jonas Kellens wrote:
Hello,
how can I cut off the last character of the EXTEN-variable with
variating length ?
So I have :
112233#
123#
123456789#
I want to cut off the last character.
${EXTEN:-1} gives me #, but that is the character I want to cut off.
Set(variable=${EXTEN:0:$[LEN(${EXTEN})-1]})
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users