>From previous experience in web development, I know that sometimes the most obvious way isn't the right way.<div><br></div><div>So, until I've tried it myself, I really can't say whether or not having the packets with the CDRs would be the right/wrong thing to do.</div>
<div><br></div><div>However, HOMER on a switch port mirror looks very interesting - thank you for this recommendation.</div><div><br></div><div>I'm going to be spending some time looking into all these different approaches, then I'll post back once I'm a bit more exposed to it.</div>
<div><br></div><div>Really appreciate the feedback from everyone on this</div><div><br></div><div>Cal<br><br><div class="gmail_quote">On Mon, Jan 7, 2013 at 9:46 PM, Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have.<br>
<br>
Personally I use my own custom daemon that simply uses libpcap to<br>
capture and logs packets on port 5060/5080 to pcap files rotated on<br>
time/size limits which're stored for N days then deleted by a cronjob.<br>
<br>
I agree a separate project is probably a good way to log the SIP traffic...<br>
<br>
Cal, a project like Homer allows you to capture the SIP traffic from a<br>
separate server on the same LAN segment or using a monitor port of a<br>
managed switch. That offloads the SIP capture entirely away from the<br>
CPU/Disk of the SIP server, which can have performance benefits for<br>
your softswitch server. Additionally using a pcap file format can have<br>
other benefits, since it allows you to use existing tools like<br>
wireshark for analysis. Searching for a call in a pcap file is trivial<br>
using the Call-ID header which you'll have in the sip_call_id channel<br>
variable.<br>
<br>
That said, the idea of storing a history of the received SIP packets<br>
within the CDR itself is interesting and would have benefits on<br>
simpler installs such as a small office PBX - although I wouldn't<br>
necessarily do it by default.<br>
<br>
-Steve<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On 7 January 2013 21:16, Anthony Minessale <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>> wrote:<br>
> have you seen the homer project?<br>
><br>
><br>
> On Mon, Jan 7, 2013 at 3:03 PM, Steven Ayre <<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>> wrote:<br>
>><br>
>> Current logging is the Sofia-SIP stack calling the sofia.c:logger()<br>
>> callback for the transport log. At this level packets are not attached<br>
>> to any call, so matching it to a call would require a 2nd parsing of<br>
>> the packet and matching it based on Call-ID... it would be quite a<br>
>> performance hit.<br>
>><br>
>> The callback functions where mod_sofia handles a packet matched to a<br>
>> call receives the packet from the Sofia-SIP stack via the sip_t data<br>
>> structure. This contains the parsed message, not the raw packet. This<br>
>> makes it unsuitable for logging. I'm not sure if any other parameters<br>
>> passed to the callback contain the raw packet, which would be required<br>
>> to implement the feature. One of the mod_sofia developers would have a<br>
>> better grasp of the Sofia-SIP API though.<br>
>><br>
>> -Steve<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> On 7 January 2013 20:40, Lloyd Aloysius <<a href="mailto:lloyd.aloysius@gmail.com">lloyd.aloysius@gmail.com</a>> wrote:<br>
>> > I saw a demo from siproutes carrier. Their cdr have sip trace for every<br>
>> > record and they keep for three months , then archive.<br>
>> ><br>
>> > It is awesome if freeswitch attach sip trace to the cdr. May be we can<br>
>> > setup<br>
>> > a bounty for this.<br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > On Mon, Jan 7, 2013 at 9:17 AM, Saugort Dario Garcia Tovar<br>
>> > <<a href="mailto:dgarcia@anew.com.ve">dgarcia@anew.com.ve</a>> wrote:<br>
>> >><br>
>> >> Hi Cal,<br>
>> >><br>
>> >> Also I use this way to get a sip trace with filter criterias. Take a<br>
>> >> look<br>
>> >> to this link:<br>
>> >><br>
>> >><br>
>> >><br>
>> >> <a href="http://www.jonathanmanning.com/2009/10/26/how-to-voip-sip-capture-with-tcpdump-on-linux/" target="_blank">http://www.jonathanmanning.com/2009/10/26/how-to-voip-sip-capture-with-tcpdump-on-linux/</a><br>
>> >><br>
>> >> With Wireshark you can apply additional filter<br>
>> >><br>
>> >><br>
>> >><br>
>> >> On 1/6/2013 3:31 PM, Cal Leeming [Simplicity Media Ltd] wrote:<br>
>> >><br>
>> >> Could a core dev speculate on how much the expected bounty would be for<br>
>> >> this?<br>
>> >><br>
>> >> Thanks<br>
>> >><br>
>> >> Cal<br>
>> >><br>
>> >><br>
>> >><br>
>> >> _________________________________________________________________________<br>
>> >> Professional FreeSWITCH Consulting Services:<br>
>> >> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>> >> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>> >><br>
>> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
>> >> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
>> >><br>
>> >> Official FreeSWITCH Sites<br>
>> >> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> >> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
>> >> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
>> >><br>
>> >> FreeSWITCH-users mailing list<br>
>> >> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> >> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> >><br>
>> >> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> >> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> >><br>
>> >><br>
>> >><br>
>> >> No virus found in this message.<br>
>> >> Checked by AVG - <a href="http://www.avg.com" target="_blank">www.avg.com</a><br>
>> >> Version: 2012.0.2221 / Virus Database: 2637/5476 - Release Date:<br>
>> >> 12/21/12<br>
>> >> Internal Virus Database is out of date.<br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> Atentamente,<br>
>> >> Dario García<br>
>> >> Consultor.<br>
>> >><br>
>> >> CCCT, Nivel C2, Sector Yarey, Mz,<br>
>> >> Ofc. MZ03a.<br>
>> >> Caracas-Venezuela.<br>
>> >> Teléfono: <a href="tel:%2B58%20212%209081842" value="+582129081842">+58 212 9081842</a><br>
>> >> Cel: <a href="tel:%2B58%20412%202221515" value="+584122221515">+58 412 2221515</a><br>
>> >> <a href="mailto:dgarcia@anew.com.ve">dgarcia@anew.com.ve</a><br>
>> >> <a href="http://www.anew.com.ve" target="_blank">http://www.anew.com.ve</a><br>
>> >><br>
>> >><br>
>> >> _________________________________________________________________________<br>
>> >> Professional FreeSWITCH Consulting Services:<br>
>> >> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>> >> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>> >><br>
>> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
>> >> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
>> >><br>
>> >> Official FreeSWITCH Sites<br>
>> >> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> >> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
>> >> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
>> >><br>
>> >> FreeSWITCH-users mailing list<br>
>> >> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> >> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> >><br>
>> >> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> >> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> >><br>
>> ><br>
>> ><br>
>> ><br>
>> > _________________________________________________________________________<br>
>> > Professional FreeSWITCH Consulting Services:<br>
>> > <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>> > <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>> ><br>
>> > FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
>> > <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
>> ><br>
>> > Official FreeSWITCH Sites<br>
>> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> > <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
>> > <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
>> ><br>
>> > FreeSWITCH-users mailing list<br>
>> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> ><br>
>><br>
>> _________________________________________________________________________<br>
>> Professional FreeSWITCH Consulting Services:<br>
>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>><br>
>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
>> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
>><br>
>> Official FreeSWITCH Sites<br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
>><br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
><br>
><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>
> Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</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" target="_blank">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="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
> pstn:<a href="tel:%2B19193869900" value="+19193869900">+19193869900</a><br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
><br>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>