Specific DID number Inbound route

Any ideas!
I have 19 block of numbers, i want to setup some numbers inbound route to IVR, Conference Room and some to designated extension. Now im facing this problems, sample one number like 87654310501 inbound route to Ring Groups as destination, this will process as fail but it will execute the local extension 0501. Likewise when 87654310501 inbound route to Ring Groups or any destination but no 0501 extension create, the process success.

BTW 0501 is the phone extension create at the FreePBX.

thanks in advance