Filter WARNINGS on CLI

HI!, im debugging asterisk from cli and recently change to version Asterisk 2.6 build 3.07.2012, and i got this three warnings for each registered extension, every 1 or 2 minutes

[Apr 20 09:41:17] WARNING[1936]: chan_sip.c:13199 check_auth: check_auth() username=99998 secret=mypasswordinplaintext md5secret= uri=sip:10.50.4.20:5060
[Apr 20 09:41:17] WARNING[1936]: chan_sip.c:13240 check_auth: Parsing response=Digest username="99998",realm="sipproxy",nonce="368a1c1d",uri="sip:10.50.4.20:5060",response="b7822859bb7f30a327b2f0ba8e8b512b",algorithm=MD5 nonce= ignore=0
[Apr 20 09:41:18] WARNING[1936]: chan_sip.c:13199 check_auth: check_auth() username=99998 secret=mypasswordinplaintext md5secret= uri=sip:10.50.4.20:5060
[Apr 20 09:41:18] WARNING[1936]: chan_sip.c:13240 check_auth: Parsing response=Digest username="99998",realm="sipproxy",nonce="576c8b39",uri="sip:10.50.4.20:5060",response="6e82ad5f9dbdeaac1e5d3a9ead973a2e",algorithm=MD5 nonce=576c8b39 ignore=0
[Apr 20 09:41:18] WARNING[1936]: chan_sip.c:13332 check_auth: MD5 Challenge--- user=99998 realm=sipproxy secret=mypasswordinplaintext

is there a way to filter this kind of warning?

Asterisk 2.6 build 3.07.2012 Dont know if such version existed but if so it is very old

Current LTS version of Asterisk it is 13, Using logger.conf file you can configure the type of message you want the system to display for example notice,warning,error, if you want to remove the specific Warning message above,you will need to find out what is causing Asterisk to display such warning

but from logger.conf i can only disable all warnings, i want to filter only that kind of warning

There is no ability to filter specific messages like that. As well, that message does not exist in Asterisk mainline so it sounds as though whatever you are using has modified it.

1 Like

These look like debug messages, have you tried a ‘sip set debug off’

I gues debug message have the DEBUG flag