[asterisk-users] exten => pattern match query

Steve Davies davies147 at gmail.com
Mon May 12 10:02:00 CDT 2008


Hi,

I read the WiKi, which implied there was a way of working around this,
but the HTML nature of the WiKi seems to have destroyed some of the
output so I cannot see the correct answer...

I would like to match a special case of a number dialled "0x....", now
normally I would simply do:

    exten => _0x.,1,NoOp(Got Hex dialling)

But the "X" pattern match is case-insensitive, so the above pattern
will match any 3 or more digit number starting with a zero. I suspect
that the answer may be:

    exten => _0[x].,1,NoOp(Got Hex dialling)

Could someone confirm this for me?

Thanks,
Steve



More information about the asterisk-users mailing list