Matching a 7 digit number in the dialplan

Hello,

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.

Hi

_XXXXXXX will match before _X.

Ian

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

So what is the matter ?

Haytham