Thank you Anthony. I'm using them. But I'm not debugging the current calls but want to check them later, if necessary. Like this:

post XML cdr to a web interface, store in db, and every time I list cdrs on web and click "View all related SIP" will list all the related sip messages on that cdr record.

I know wireshark even can display a graph, but hard to do that automatically and,  Even I can capture all the packets through tshark, I still need to parse all the SIP messages from a pcap file and perhaps store them into a database. So I think it maybe easy to implement something in FS like "record-sip-session" and record all the SIP messages related to a session. I'm not sure whether that works.


On Feb 25, 2009, at 11:32 PM, Anthony Minessale wrote:
try tcpdump or tshark


On Wed, Feb 25, 2009 at 9:06 AM, seven du <seven@idapted.com> wrote:
Hi,

I want to get all(or certain) SIP messages in FS(perhaps I want to
write a module), What's the easiest or best way to get that? or where
I can find it in code?

I know we can see SIP messages with TPORT_LOG enabled, It's in
mod_sofia or sofia-lib?  Why it is only possible to set that on start
time but can't change it lively?

If I can get them, I think it's possible to write to a file/db, or
even send out from event_socket. I know it will hurt performance, but
we don't do high volume calls and want to debug easily. Third party
tools maybe work but also hurt performance right?

Thanks.

Seven



_______________________________________________
Freeswitch-dev mailing list
Freeswitch-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org



--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org
pstn:213-799-1400
_______________________________________________
Freeswitch-dev mailing list
Freeswitch-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org