How to hide CLI content?

Hello,

This is my first post in this forum.

I’ve been looking everywhere for this to no avail. Is there a way to hide user input (from a read function) in the CLI?

Similarly, I also need to hide parameters sent to agi scripts from my custom dialplan.

If anyone has any information on this, it’ll be greatly appreciated.

Hmm

Why have you given people access to the CLI and then not want them to see data in it.

Well actually, the only people with access is us. However, we can’t afford to be held accountable should a hacker manage somehow to get his way in.

In the end, what we’re going to do is recompile asterisk to deactivate the verbosity level… I suppose I can always save the object files or recompile it again though, but this should be a good deterrent for the hacker hopefully.

edit: that is, recompile it again or revert to backed up object files to re-allow the verbosity levels.

edit:
For those interested, I modified asterisk/apps/app_read.c

In my case, I just replaced the line that outputs “User entered %d”.