“sip Set Debug On” Output To File Only (not To Console)

Home » Asterisk Users » “sip Set Debug On” Output To File Only (not To Console)
Asterisk Users 5 Comments

Hello everybody,

I am trying to find an intermittent SIP error with one provider and thought the best first step would be to have “sip set DEBUG on” for some days and check the logs.

Everything gets logged nicely, but the SIP log clutters up the console quite badly. Is it possible to have SIP debug log go only to the log file and not to the console?

My logger.conf:

console => notice,warning,error messages => notice,warning,error full => notice,warning,error,debug,verbose,dtmf,fax

On the console, I entered:

core set verbose 3
core set debug 0
sip set debug on


5 thoughts on - “sip Set Debug On” Output To File Only (not To Console)

  • Sure I do and happy with that. 🙂

    The point is, I also have my Asterisk console full of SIP messages and I asked if it was possible to switch those off.

  • hi, open debug only on problematic peer. sip set debug peer “peer name”
    or sip set debug ip “peer ip”

  • I recently faced the same issue. I didn’t find a way in Asterisk to do what I wanted.

    A good workaround is to use wireshark in batch mode (tshark) to trace traffic to the IP address you are interested in. You should be able to filter it to capture only SIP traffic.