[asterisk-users] Cut off last character of EXTEN

Jonas Kellens jonas.kellens at telenet.be
Tue Aug 20 03:29:08 CDT 2013


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.



Kind regards,
Jonas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130820/1955fb04/attachment.htm>


More information about the asterisk-users mailing list