[Asterisk-Users] Dropping last digit from phone number
C F
shmaltz at gmail.com
Mon Nov 7 08:55:00 MST 2005
Here is what I do:
${EXTEN:0:$[${LEN(${EXTEN})} - 1]}
that should give you for the following
exten => 123456789,1,Noop(${EXTEN:0:$[${LEN(${EXTEN})} - 1]})
12345678
Hope this helps.
On 11/7/05, Bartosz Piec <sip at piec.info> wrote:
> Erik napisał(a):
> > exten => _XX*,1,NoOp(${EXTEN:0:-1})
>
> exten => _XX*,1,NoOp(${EXTEN:0:2})
> :)
>
> It works, thanks.
>
> --
> Best regards,
> Bartosz Piec
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com --
>
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list