Dialing another DID internally

When I dial other DID’s that are within my local freepbx system it errors. I understand why but I don’t quite know the proper way to fix it without requiring me to create a huge list of all my DID’s as I add them to the system.

In this application we have a very large number of DIDs registered to extensions and in some cases users may try and call a DID within the system. Ideally it would not go outside via outbound route and trunk, instead it would route locally to the extension.

Any good way to do this?

Thanks.

create a loopback trunk to 127.0.0.1 (localhost) no password or username required, and send such calls there.