User input a number

This sounds like a good fit for a custom context that you’ll have to have somebody write up to get that functionality.

This might be a good starting point for you:

https://community.freepbx.org/t/hooking-for-fun-and-income/57718/25