[asterisk-users] pattern matching "+"

Antony Stone Antony.Stone at asterisk.open.source.it
Fri Mar 15 09:28:00 CDT 2019


On Friday 15 March 2019 at 15:18:04, sean darcy wrote:

>  From my provider I get extensions of:
> 
> +1<10digit number>
> 1<10 digit number>
> <10 digit number>
> 
> seemingly randomly.
> 
> What I'd like to do is
> 
> exten=_!1234567890,1,Answer()

> Any suggestions?

exten => _+1XXXXXXXXXX,Goto(${EXTEN:2})
exten => _1XXXXXXXXXX,Goto(${EXTEN:1})
exten => _XXXXXXXXXX,Rest of your dialplan


Antony.

-- 
What makes you think I know what I'm talking about?
I just have more O'Reilly books than most people.

                                                   Please reply to the list;
                                                         please *don't* CC me.



More information about the asterisk-users mailing list