Marie Fischer
2013-Mar-29 13:02 UTC
[asterisk-users] "sip set debug on" output to file only (not to console)
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 Thanks, -- marie
Doug Lytle
2013-Mar-29 13:05 UTC
[asterisk-users] "sip set debug on" output to file only (not to console)
Marie Fischer wrote:> full => notice,warning,error,debug,verbose,dtmf,faxYou should have a log called full in: /var/log/asterisk Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Doug Lytle
2013-Mar-29 13:08 UTC
[asterisk-users] "sip set debug on" output to file only (not to console)
Marie Fischer wrote:> but the SIP log clutters up the console quite badlyI guess I should slow down when reading. Sorry for the noise. Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Marie Fischer
2013-Mar-29 13:09 UTC
[asterisk-users] "sip set debug on" output to file only (not to console)
On 29.03.2013, at 15:05, Doug Lytle <support at drdos.info> wrote:> Marie Fischer wrote: >> full => notice,warning,error,debug,verbose,dtmf,fax > > You should have a log called full in: > > /var/log/asteriskSure 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. -- marie
Asghar Mohammad
2013-Mar-29 13:56 UTC
[asterisk-users] "sip set debug on" output to file only (not to console)
hi, open debug only on problematic peer. sip set debug peer "peer name" or sip set debug ip "peer ip" On Fri, Mar 29, 2013 at 2:02 PM, Marie Fischer <marie at vtl.ee> wrote:> 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 > > Thanks, > > -- > > marie > > > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130329/073c641e/attachment.htm>
Mitch Claborn
2013-Mar-29 13:59 UTC
[asterisk-users] "sip set debug on" output to file only (not to console)
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. Mitch On 03/29/2013 08:02 AM, Marie Fischer wrote:> 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 > > Thanks, >