Discussion:
[Asterisk-Users] SIP debug logging
Nikolai Lusan
2006-07-03 03:55:52 UTC
Permalink
Hi,

i am trying to sort out an issue with my SIP provider (I can make
outgoing calls but am not recieving calls) and have been trying to use
"sip debug" from the CLI. I am after a way to get these debug messages
into a file (I find it easier to go over a file than having to deal with
all the re-register messages flying by the screen). I have tried setting
the debug field in logger.conf, but this doesn't seem to be doing what I
want. Is there an easy way to have these messages going into a file?
--
Nikolai Lusan

#################################################
#
# Weblog: http://lusan.id.au/~nikolai/blog
# Website: http://lusan.id.au/~nikolai
#
#################################################
William Piper
2006-07-04 03:33:15 UTC
Permalink
If you are using putty as your ssh client... create the ssh tunnel to the *
box & then go to "session-> logging-> log printable output only" in your
putty configuration & save.

To do it on the asterisk box only, I only know of the logger:

1. In logger.conf set "full => warning,error,verbose,debug" then save the
file.
2. Do a "logger reload" command from the CLI.
3. Do "sip debug peer/ip 'whatever' " and make your test calls.

The debug will show in /var/log/asterisk/full

bp
Post by Nikolai Lusan
Hi,
i am trying to sort out an issue with my SIP provider (I can make
outgoing calls but am not recieving calls) and have been trying to use
"sip debug" from the CLI. I am after a way to get these debug messages
into a file (I find it easier to go over a file than having to deal with
all the re-register messages flying by the screen). I have tried setting
the debug field in logger.conf, but this doesn't seem to be doing what I
want. Is there an easy way to have these messages going into a file?
--
Nikolai Lusan
#################################################
#
# Weblog: http://lusan.id.au/~nikolai/blog
# Website: http://lusan.id.au/~nikolai
#
#################################################
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
http://lists.digium.com/mailman/listinfo/asterisk-users
Olle E Johansson
2006-07-04 08:00:30 UTC
Permalink
Post by Nikolai Lusan
i am trying to sort out an issue with my SIP provider (I can make
outgoing calls but am not recieving calls) and have been trying to use
"sip debug" from the CLI. I am after a way to get these debug messages
into a file (I find it easier to go over a file than having to deal with
all the re-register messages flying by the screen). I have tried setting
the debug field in logger.conf, but this doesn't seem to be doing what I
want. Is there an easy way to have these messages going into a file?
I find that the easiest way is to connect to asterisk like this:

asterisk -rnvvvvdddd | tee /tmp/asterisk-debug

The "n" will remove some ascii color codes. You might want to add a
"g" as
well to force core files if Asterisk crashes.

/o

---
* Olle E. Johansson - ***@edvina.net
* Asterisk Training http://edvina.net/training/
Tzafrir Cohen
2006-07-04 08:58:54 UTC
Permalink
Post by Olle E Johansson
Post by Nikolai Lusan
i am trying to sort out an issue with my SIP provider (I can make
outgoing calls but am not recieving calls) and have been trying to use
"sip debug" from the CLI. I am after a way to get these debug messages
into a file (I find it easier to go over a file than having to deal with
all the re-register messages flying by the screen). I have tried setting
the debug field in logger.conf, but this doesn't seem to be doing what I
want. Is there an easy way to have these messages going into a file?
asterisk -rnvvvvdddd | tee /tmp/asterisk-debug
What's wrong with:

tail -f /var/log/asterisk/full

(after setting the desired verbosity and debug level)

This also removes the need for -n
--
Tzafrir Cohen sip:***@local.xorcom.com
icq#16849755 iax:***@local.xorcom.com
+972-50-7952406
***@xorcom.com http://www.xorcom.com
Continue reading on narkive:
Search results for '[Asterisk-Users] SIP debug logging' (Questions and Answers)
5
replies
What is the best router to use for sunrocket voip?
started 2006-05-17 19:50:00 UTC
computer networking
Loading...