Discussion:
[Freeswitch-users] Getting a sip trace on the console
Nik Middleton
2009-03-07 23:37:23 UTC
Permalink
Hi Guys,



I'm trying to debug some SIP messaging issues. Is there a way of doing
the Asterisk equivalent of SIP Debug so I can see what's being sent?



Regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090307/cc90119a/attachment.html
Jason White
2009-03-07 23:56:49 UTC
Permalink
Post by Nik Middleton
I'm trying to debug some SIP messaging issues. Is there a way of doing
the Asterisk equivalent of SIP Debug so I can see what's being sent?
http://wiki.freeswitch.org/wiki/Sofia#Debugging_SOFIA_SIP

You can also use the sofia loglevel command from fs_cli, e.g.,
sofia loglevel 9
which will give you everything but a SIP trace.

For the SIP trace, you'll need to set the environment variables as documented
on the above page, or turn on tracing in the SIP profile configuration.
Hadley Rich
2009-03-08 00:00:15 UTC
Permalink
Post by Nik Middleton
I'm trying to debug some SIP messaging issues. Is there a way of doing
the Asterisk equivalent of SIP Debug so I can see what's being sent?
TPORT_LOG=1 ./freeswitch will do it for you.

http://wiki.freeswitch.org/wiki/Sofia#Debugging_SOFIA_SIP

hads
--
http://nicegear.co.nz
New Zealands Open Source Hardware Supplier
Brian West
2009-03-08 00:54:56 UTC
Permalink
if you have latest SVN you can do this:

sofia profile XXX siptrace on

/b
Post by Hadley Rich
Post by Nik Middleton
I'm trying to debug some SIP messaging issues. Is there a way of doing
the Asterisk equivalent of SIP Debug so I can see what's being sent?
TPORT_LOG=1 ./freeswitch will do it for you.
http://wiki.freeswitch.org/wiki/Sofia#Debugging_SOFIA_SIP
hads
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090307/ad842ac7/attachment.html
Jason White
2009-03-08 06:00:36 UTC
Permalink
Post by Brian West
sofia profile XXX siptrace on
Thanks. That was enough to prompt me to recompile with rev. 12516.
Jason White
2009-03-08 06:00:36 UTC
Permalink
Post by Brian West
sofia profile XXX siptrace on
Thanks. That was enough to prompt me to recompile with rev. 12516.
Brian West
2009-03-08 00:55:53 UTC
Permalink
Also

sofia loglevel <all|default|tport|iptsec|nea|nta|nth_client|nth_server|
nua|soa|sresolv|stun> [0-9]

No need to restart FS to turn those on or off. ;) again Latest SVN.

/b
Post by Jason White
http://wiki.freeswitch.org/wiki/Sofia#Debugging_SOFIA_SIP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090307/04670f7f/attachment.html
Mathieu Rene
2009-03-08 03:08:03 UTC
Permalink
only sofia profile [name] siptrace [on/off] is required to get the
messages on the console

sofia loglevel is used to get debugging logs from sofia's internals.
(the sip library)

Math
Post by Brian West
Also
sofia loglevel <all|default|tport|iptsec|nea|nta|nth_client|
nth_server|nua|soa|sresolv|stun> [0-9]
No need to restart FS to turn those on or off. ;) again Latest SVN.
/b
Post by Jason White
http://wiki.freeswitch.org/wiki/Sofia#Debugging_SOFIA_SIP
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090307/b77a55bb/attachment-0001.html
Mathieu Rene
2009-03-08 03:08:03 UTC
Permalink
only sofia profile [name] siptrace [on/off] is required to get the
messages on the console

sofia loglevel is used to get debugging logs from sofia's internals.
(the sip library)

Math
Post by Brian West
Also
sofia loglevel <all|default|tport|iptsec|nea|nta|nth_client|
nth_server|nua|soa|sresolv|stun> [0-9]
No need to restart FS to turn those on or off. ;) again Latest SVN.
/b
Post by Jason White
http://wiki.freeswitch.org/wiki/Sofia#Debugging_SOFIA_SIP
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090307/b77a55bb/attachment-0002.html
Brian West
2009-03-08 00:54:56 UTC
Permalink
if you have latest SVN you can do this:

sofia profile XXX siptrace on

/b
Post by Hadley Rich
Post by Nik Middleton
I'm trying to debug some SIP messaging issues. Is there a way of doing
the Asterisk equivalent of SIP Debug so I can see what's being sent?
TPORT_LOG=1 ./freeswitch will do it for you.
http://wiki.freeswitch.org/wiki/Sofia#Debugging_SOFIA_SIP
hads
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090307/ad842ac7/attachment-0002.html
Brian West
2009-03-08 00:55:53 UTC
Permalink
Also

sofia loglevel <all|default|tport|iptsec|nea|nta|nth_client|nth_server|
nua|soa|sresolv|stun> [0-9]

No need to restart FS to turn those on or off. ;) again Latest SVN.

/b
Post by Jason White
http://wiki.freeswitch.org/wiki/Sofia#Debugging_SOFIA_SIP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090307/04670f7f/attachment-0002.html
Peter P GMX
2009-03-08 12:57:45 UTC
Permalink
I use the ngrep tool on the OS console and write the output to a file:
ngrep -d any port 5060 -W byline >outfile.txt

Best regards
Peter
Post by Nik Middleton
Hi Guys,
I?m trying to debug some SIP messaging issues. Is there a way of
doing the Asterisk equivalent of SIP Debug so I can see what?s being sent?
Regards,
------------------------------------------------------------------------
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Nik Middleton
2009-03-08 16:03:45 UTC
Permalink
That's exactly what I was looking for, many thanks

Regards,

-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
Peter P GMX
Sent: 08 March 2009 12:58
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Getting a sip trace on the console

I use the ngrep tool on the OS console and write the output to a file:
ngrep -d any port 5060 -W byline >outfile.txt

Best regards
Peter
Post by Nik Middleton
Hi Guys,
I'm trying to debug some SIP messaging issues. Is there a way of
doing the Asterisk equivalent of SIP Debug so I can see what's being
sent?
Post by Nik Middleton
Regards,
------------------------------------------------------------------------
Post by Nik Middleton
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
Post by Nik Middleton
http://www.freeswitch.org
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Diego Viola
2009-03-09 02:30:01 UTC
Permalink
Use SVN, or wait for the next release, fs_cli+siptrace rocks :)

On Sun, Mar 8, 2009 at 12:03 PM, Nik Middleton
Post by Nik Middleton
That's exactly what I was looking for, many thanks
Regards,
-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
Peter P GMX
Sent: 08 March 2009 12:58
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Getting a sip trace on the console
ngrep -d any port 5060 -W byline >outfile.txt
Best regards
Peter
Post by Nik Middleton
Hi Guys,
I'm trying to debug some SIP messaging issues. ?Is there a way of
doing the Asterisk equivalent of SIP Debug so I can see what's being
sent?
Post by Nik Middleton
Regards,
------------------------------------------------------------------------
Post by Nik Middleton
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
Post by Nik Middleton
http://www.freeswitch.org
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Diego Viola
2009-03-09 02:30:01 UTC
Permalink
Use SVN, or wait for the next release, fs_cli+siptrace rocks :)

On Sun, Mar 8, 2009 at 12:03 PM, Nik Middleton
Post by Nik Middleton
That's exactly what I was looking for, many thanks
Regards,
-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
Peter P GMX
Sent: 08 March 2009 12:58
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Getting a sip trace on the console
ngrep -d any port 5060 -W byline >outfile.txt
Best regards
Peter
Post by Nik Middleton
Hi Guys,
I'm trying to debug some SIP messaging issues. ?Is there a way of
doing the Asterisk equivalent of SIP Debug so I can see what's being
sent?
Post by Nik Middleton
Regards,
------------------------------------------------------------------------
Post by Nik Middleton
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
Post by Nik Middleton
http://www.freeswitch.org
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Nik Middleton
2009-03-08 16:03:45 UTC
Permalink
That's exactly what I was looking for, many thanks

Regards,

-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
Peter P GMX
Sent: 08 March 2009 12:58
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Getting a sip trace on the console

I use the ngrep tool on the OS console and write the output to a file:
ngrep -d any port 5060 -W byline >outfile.txt

Best regards
Peter
Post by Nik Middleton
Hi Guys,
I'm trying to debug some SIP messaging issues. Is there a way of
doing the Asterisk equivalent of SIP Debug so I can see what's being
sent?
Post by Nik Middleton
Regards,
------------------------------------------------------------------------
Post by Nik Middleton
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
Post by Nik Middleton
http://www.freeswitch.org
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Nik Middleton
2009-03-07 23:37:23 UTC
Permalink
Hi Guys,



I'm trying to debug some SIP messaging issues. Is there a way of doing
the Asterisk equivalent of SIP Debug so I can see what's being sent?



Regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090307/cc90119a/attachment-0002.html
Jason White
2009-03-07 23:56:49 UTC
Permalink
Post by Nik Middleton
I'm trying to debug some SIP messaging issues. Is there a way of doing
the Asterisk equivalent of SIP Debug so I can see what's being sent?
http://wiki.freeswitch.org/wiki/Sofia#Debugging_SOFIA_SIP

You can also use the sofia loglevel command from fs_cli, e.g.,
sofia loglevel 9
which will give you everything but a SIP trace.

For the SIP trace, you'll need to set the environment variables as documented
on the above page, or turn on tracing in the SIP profile configuration.
Hadley Rich
2009-03-08 00:00:15 UTC
Permalink
Post by Nik Middleton
I'm trying to debug some SIP messaging issues. Is there a way of doing
the Asterisk equivalent of SIP Debug so I can see what's being sent?
TPORT_LOG=1 ./freeswitch will do it for you.

http://wiki.freeswitch.org/wiki/Sofia#Debugging_SOFIA_SIP

hads
--
http://nicegear.co.nz
New Zealands Open Source Hardware Supplier
Peter P GMX
2009-03-08 12:57:45 UTC
Permalink
I use the ngrep tool on the OS console and write the output to a file:
ngrep -d any port 5060 -W byline >outfile.txt

Best regards
Peter
Post by Nik Middleton
Hi Guys,
I?m trying to debug some SIP messaging issues. Is there a way of
doing the Asterisk equivalent of SIP Debug so I can see what?s being sent?
Regards,
------------------------------------------------------------------------
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Loading...