[from-internal-custom] screws outgoing CID

It’s not appropriate to use a broad pattern match like _. in this context. It’s intended to create your own explicit extension numbers which you can dial. If your intent is to add your own dialplan to all dialed numbers, you must use a dialplan hook: Hooking for fun and income