[Asterisk-Users] Dropping last digit from phone number

Erik erik at infopact.nl
Mon Nov 7 07:09:08 MST 2005


exten => _XX*,1,NoOp(${EXTEN:0:-1})
?

Bartosz Piec wrote:
> Matt Riddell napisał(a):
> 
>> What does that result in?
> 
> 
> I have this in extensions.conf:
> exten => _XX*,1,NoOp(${EXTEN:-LEN(${EXTEN:1})})
> 
> And when I dial 61*, the result in Asterisk console is:
>     -- Executing NoOp("SIP/65-aad1", "61*") in new stack
> just like with ${EXTEN}.
> 





More information about the asterisk-users mailing list