That shows up when you have a console connected with a verbosity of 3 or higher. Do you have Asterisk started like “asterisk -vvvc” or are you connected like “asterisk -vvvr” ?
What you describe as Cli Spam is NOT a bug , a Bug is an error in code, this is a perfectly acceptable and correct verbose output to the console screen. It is designed to be there at certain verbose levels and as such acts correctly displaying what is expected.
It also is not Spam, spam is as described by wikipedia [quote]Spam is the use of electronic messaging systems (including most broadcast media, digital delivery systems) to send unsolicited bulk messages indiscriminately[/quote] This is not any of those.
if you dont want any cli output set verbose and debug to 0 . Just because something doesnt work as YOU expect it is not a Bug.
I agree with Ian’s sentiments. “Spam” is getting devalued by being used to refer to frequent diagnostic messges that the user doesn’t like. It isn’t a bug.
This message relates to console connections, not to AMI ones. If you are getting lots of them, it is because you are shelling to asterisk -r with commands on the command line. To suppress the message:
find a better way of doing what you want to do: starting up asterisk -r is relatively expensive;
reduce the console verbosity;
edit the source code to remove it or change its verbosity level - neither of these changes should require any significant understanding of programming or the source code;