On Fri, Mar 15, 2019 at 9:19 AM sean darcy <seandar...@gmail.com> 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()
>
> which would match anything ending in 1234567890.
>
> But that doesn't work since ! can only be used at the end of a pattern.
>
> I tried
>
> [+\ ][1\ ]1234567890
>
> which didn't work, probably because "\ " means  space, not nothing.
>
> Any suggestions?
>

You must have multiple patterns to match the various starting sequences you
receive.
One that begins with +
One that begins with 1
One that is for a 10 digit number

Richard
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to