External access to feature codes

Hi All

Been trying for a while now to find a way to do this and not having much luck.

In a nut shell, I want to be able to access the asterisk feature code to divert a phone. There will never be a occasion when a extension number won’t have a DDI assigned to it. When a person dials that number, I want them to be able to press *72 (or anything) and be prompted for a password. This will then forward all calls to that DDI to the number they are calling off.

For example …
DDI = 794613

645879 dials 794613 and presses *72.
Caller get’s asked for a password.
If the password is correct then 794613 is now diverted to 645879.

Hope that makes sense! I’m running Asterisk 1.8.10.1 and FreePBX 2.10

I think that Asterisk does not support that feature from the get go. But you can eazily write your own dialplan code that will do what you want.