<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Thanks, the two params helps a &nbsp;lot.</div><div><br></div><br><div><html>On Feb 26, 2009, at 12:44 AM, Anthony Minessale wrote:</html><br class="Apple-interchange-newline"><blockquote type="cite">there are 2 options you can enable in your sofia profile.<br><br>&lt;param name="inbound-use-callid-as-uuid" value="true"/><br>&lt;param name="outbound-use-uuid-as-callid" value="true"/><br> <br>This will use the FS uuid of the call leg as the call-id in the sip dialogs AND use the call-id from inbound sip calls as the uuid in FS.<br><br>This way the uuid of the channel from the cdr and the call-id in sip are identical and you can cross reference them.<br> <br>There is also a program called sippcapdump out there that puts each sip call in it's own dedicated pcap file you may want to consider.<br><br>Doing what you want in FS is not going to happen in the near future as it's a function of the sofia-sip lib that we are a partener project with and they would have to make changes to their api to allow us to get the data.&nbsp; What you see in TPORT_LOG is being generated well before FS ever gets the data.<br> <br><br><br><br><div class="gmail_quote">On Wed, Feb 25, 2009 at 10:03 AM, seven du <span dir="ltr">&lt;<a href="mailto:seven@idapted.com">seven@idapted.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div style="">Thank you Anthony. I'm using them. But I'm not debugging the current calls but want to check them later, if&nbsp;necessary. Like this:<div><br></div><div>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.</div> <div><br></div><div>I know wireshark even can display a graph, but hard to do that automatically and, &nbsp;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.</div> <div><div></div><div class="Wj3C7c"><div><br></div><div><div><br><div>On Feb 25, 2009, at 11:32 PM, Anthony Minessale wrote:<br><blockquote type="cite">try tcpdump or tshark<br><br><br><div class="gmail_quote">On Wed, Feb 25, 2009 at 9:06 AM, seven du <span dir="ltr">&lt;<a href="mailto:seven@idapted.com" target="_blank">seven@idapted.com</a>></span> wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi,<br> <br> I want to get all(or certain) SIP messages in FS(perhaps I want to<br> write a module), What's the easiest or best way to get that? or where<br> I can find it in code?<br> <br> I know we can see SIP messages with TPORT_LOG enabled, It's in<br> mod_sofia or sofia-lib? &nbsp;Why it is only possible to set that on start<br> time but can't change it lively?<br> <br> If I can get them, I think it's possible to write to a file/db, or<br> even send out from event_socket. I know it will hurt performance, but<br> we don't do high volume calls and want to debug easily. Third party<br> tools maybe work but also hurt performance right?<br> <br> Thanks.<br> <br> Seven<br> <br> <br> <br> _______________________________________________<br> Freeswitch-dev mailing list<br> <a href="mailto:Freeswitch-dev@lists.freeswitch.org" target="_blank">Freeswitch-dev@lists.freeswitch.org</a><br> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br> </blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br> ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br> <br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br> IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br> <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br> pstn:213-799-1400<br> _______________________________________________<br>Freeswitch-dev mailing list<br><a href="mailto:Freeswitch-dev@lists.freeswitch.org" target="_blank">Freeswitch-dev@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br> </blockquote></div><br></div></div></div></div></div><br>_______________________________________________<br> Freeswitch-dev mailing list<br> <a href="mailto:Freeswitch-dev@lists.freeswitch.org">Freeswitch-dev@lists.freeswitch.org</a><br> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br> <br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br> <br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br> IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br> _______________________________________________<br>Freeswitch-dev mailing list<br><a href="mailto:Freeswitch-dev@lists.freeswitch.org">Freeswitch-dev@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev<br>http://www.freeswitch.org<br></blockquote></div><br></body></html>