sofia allows you to enable siptrace from the cli
http://wiki.freeswitch.org/wiki/Sofia#Debugging_Sofia-SIP

Or external tools like tcpdump/ngrep etc can be used
http://wiki.freeswitch.org/wiki/Packet_Capture