[asterisk-users] Cut off last character of EXTEN

Łukasz Grzywański lukasz.grzywanski at fastwhitecat.com
Tue Aug 20 05:19:50 CDT 2013


Hi,
try

[testEx]
exten => _X.,1,noop(${EXTEN})
same => n,noop(len: ${LEN(${EXTEN})})
same => n,noop(${EXTEN:0:${MATH(${LEN(${EXTEN})}-1)}})
exten => _X.,n,hangup



On 20 August 2013 12:15, Jonas Kellens <jonas.kellens at telenet.be> wrote:

>  On 08/20/2013 10:47 AM, jg wrote:
>
> How about "${EXTEN:-1:1}"?
>
> "The Definitive Guide" has a special paragraph with the title "*More
> Advanced Digit Manipulation".*
>
> jg
>
>
>
> Same result : #
>
>
> Jonas.
>
> --
> _____________________________________________________________________
> -- 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130820/1f78bb6d/attachment.htm>


More information about the asterisk-users mailing list