How to define the following?

Hello !

I have a phonenumber (0123456) and I defined a sip-trunk for that.
Now I want that if somebody dials 01234566 (one more 6) the person comes directly through to a specific extension (4001).

Thanks a lot for a hint on this probably simple problem.

Regards,
Fabianus