VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
davies147 at gmail.com Guest
|
Posted: Mon May 12, 2008 10:02 am Post subject: [asterisk-users] exten => pattern match query |
|
|
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 |
|
Back to top |
|
|
davies147 at gmail.com Guest
|
Posted: Tue May 13, 2008 6:44 am Post subject: [asterisk-users] exten => pattern match query |
|
|
2008/5/12 Steve Davies <davies147 at gmail.com>:
Quote: | 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?
|
For the archives, in 1.2.28, the following is true...
_0x.
matches a 0, followed by a digit ('x' is NOT a digit) followed by anything
_0[x].
matches a 0 followed by a lower case X followed by anything.
I should have just tried it for myself in the first place
Steve |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|