Matching a 7 digit number in the dialplan


im my dialplan, i want to know when a 7 digit number was dialed by the user. But, the dialplan already contains an extension _X. , which would override the seven digit number check.
So,can someone please tell me the right extension to use to match a seven digit number dialed by the user considering the dial plan already contains _X. .

Thank You.


_XXXXXXX will match before _X.


Yes, _XXXXXXX. will match before because it’s more specific.

So what is the matter ?