Bounty for - FS-4268 Sip trace with filter for IP or extension
Could a core dev speculate on how much the expected bounty would be for this? Thanks Cal
You can basically already do this with ngrep, see: http://wiki.freeswitch.org/wiki/Packet_Capture#ngrep e.g.: ngrep -q '8005551212' -W byline port 5060 show packets on 5060 (might need to change port to 5080) to 8005551212. What would be far more awesome is an option for FS to attach the sip trace, or even the RTP, to the CDR, that way all debug info is together. -Avi Marcus On Sun, Jan 6, 2013 at 10:01 PM, Cal Leeming [Simplicity Media Ltd] < cal.leeming@simplicitymedialtd.co.uk> wrote:
Could a core dev speculate on how much the expected bounty would be for this?
Thanks
Cal
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
That's a pretty good idea - ty :) I agree having all this info together would be pretty amazing, and is somewhat close to what I'm trying to achieve at the moment. Would it be a complex thing to modify FS to attach the sip trace to a CDR callback? I.e. are we talking a couple of thousand bucks in bounty? Cal On Sun, Jan 6, 2013 at 8:09 PM, Avi Marcus <avi@avimarcus.net> wrote:
You can basically already do this with ngrep, see: http://wiki.freeswitch.org/wiki/Packet_Capture#ngrep
e.g.: ngrep -q '8005551212' -W byline port 5060 show packets on 5060 (might need to change port to 5080) to 8005551212.
What would be far more awesome is an option for FS to attach the sip trace, or even the RTP, to the CDR, that way all debug info is together.
-Avi Marcus
On Sun, Jan 6, 2013 at 10:01 PM, Cal Leeming [Simplicity Media Ltd] < cal.leeming@simplicitymedialtd.co.uk> wrote:
Could a core dev speculate on how much the expected bounty would be for this?
Thanks
Cal
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi Cal, Also I use this way to get a sip trace with filter criterias. Take a look to this link: http://www.jonathanmanning.com/2009/10/26/how-to-voip-sip-capture-with-tcpdu... With Wireshark you can apply additional filter On 1/6/2013 3:31 PM, Cal Leeming [Simplicity Media Ltd] wrote:
Could a core dev speculate on how much the expected bounty would be for this?
Thanks
Cal
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
No virus found in this message. Checked by AVG - www.avg.com <http://www.avg.com> Version: 2012.0.2221 / Virus Database: 2637/5476 - Release Date: 12/21/12 Internal Virus Database is out of date.
-- Atentamente, *Dario García* Consultor. CCCT, Nivel C2, Sector Yarey, Mz, Ofc. MZ03a. Caracas-Venezuela. Teléfono: +58 212 9081842 Cel: +58 412 2221515 dgarcia@anew.com.ve http://www.anew.com.ve
I saw a demo from siproutes carrier. Their cdr have sip trace for every record and they keep for three months , then archive. It is awesome if freeswitch attach sip trace to the cdr. May be we can setup a bounty for this. * * On Mon, Jan 7, 2013 at 9:17 AM, Saugort Dario Garcia Tovar < dgarcia@anew.com.ve> wrote:
Hi Cal,
Also I use this way to get a sip trace with filter criterias. Take a look to this link:
http://www.jonathanmanning.com/2009/10/26/how-to-voip-sip-capture-with-tcpdu...
With Wireshark you can apply additional filter
On 1/6/2013 3:31 PM, Cal Leeming [Simplicity Media Ltd] wrote:
Could a core dev speculate on how much the expected bounty would be for this?
Thanks
Cal
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2221 / Virus Database: 2637/5476 - Release Date: 12/21/12 Internal Virus Database is out of date.
-- Atentamente, *Dario García* Consultor.
CCCT, Nivel C2, Sector Yarey, Mz, Ofc. MZ03a. Caracas-Venezuela. Teléfono: +58 212 9081842 Cel: +58 412 2221515 dgarcia@anew.com.ve http://www.anew.com.ve
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Current logging is the Sofia-SIP stack calling the sofia.c:logger() callback for the transport log. At this level packets are not attached to any call, so matching it to a call would require a 2nd parsing of the packet and matching it based on Call-ID... it would be quite a performance hit. The callback functions where mod_sofia handles a packet matched to a call receives the packet from the Sofia-SIP stack via the sip_t data structure. This contains the parsed message, not the raw packet. This makes it unsuitable for logging. I'm not sure if any other parameters passed to the callback contain the raw packet, which would be required to implement the feature. One of the mod_sofia developers would have a better grasp of the Sofia-SIP API though. -Steve On 7 January 2013 20:40, Lloyd Aloysius <lloyd.aloysius@gmail.com> wrote:
I saw a demo from siproutes carrier. Their cdr have sip trace for every record and they keep for three months , then archive.
It is awesome if freeswitch attach sip trace to the cdr. May be we can setup a bounty for this.
On Mon, Jan 7, 2013 at 9:17 AM, Saugort Dario Garcia Tovar <dgarcia@anew.com.ve> wrote:
Hi Cal,
Also I use this way to get a sip trace with filter criterias. Take a look to this link:
http://www.jonathanmanning.com/2009/10/26/how-to-voip-sip-capture-with-tcpdu...
With Wireshark you can apply additional filter
On 1/6/2013 3:31 PM, Cal Leeming [Simplicity Media Ltd] wrote:
Could a core dev speculate on how much the expected bounty would be for this?
Thanks
Cal
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2221 / Virus Database: 2637/5476 - Release Date: 12/21/12 Internal Virus Database is out of date.
-- Atentamente, Dario García Consultor.
CCCT, Nivel C2, Sector Yarey, Mz, Ofc. MZ03a. Caracas-Venezuela. Teléfono: +58 212 9081842 Cel: +58 412 2221515 dgarcia@anew.com.ve http://www.anew.com.ve
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
have you seen the homer project? On Mon, Jan 7, 2013 at 3:03 PM, Steven Ayre <steveayre@gmail.com> wrote:
Current logging is the Sofia-SIP stack calling the sofia.c:logger() callback for the transport log. At this level packets are not attached to any call, so matching it to a call would require a 2nd parsing of the packet and matching it based on Call-ID... it would be quite a performance hit.
The callback functions where mod_sofia handles a packet matched to a call receives the packet from the Sofia-SIP stack via the sip_t data structure. This contains the parsed message, not the raw packet. This makes it unsuitable for logging. I'm not sure if any other parameters passed to the callback contain the raw packet, which would be required to implement the feature. One of the mod_sofia developers would have a better grasp of the Sofia-SIP API though.
-Steve
On 7 January 2013 20:40, Lloyd Aloysius <lloyd.aloysius@gmail.com> wrote:
I saw a demo from siproutes carrier. Their cdr have sip trace for every record and they keep for three months , then archive.
It is awesome if freeswitch attach sip trace to the cdr. May be we can setup a bounty for this.
On Mon, Jan 7, 2013 at 9:17 AM, Saugort Dario Garcia Tovar <dgarcia@anew.com.ve> wrote:
Hi Cal,
Also I use this way to get a sip trace with filter criterias. Take a
look
to this link:
http://www.jonathanmanning.com/2009/10/26/how-to-voip-sip-capture-with-tcpdu...
With Wireshark you can apply additional filter
On 1/6/2013 3:31 PM, Cal Leeming [Simplicity Media Ltd] wrote:
Could a core dev speculate on how much the expected bounty would be for this?
Thanks
Cal
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2221 / Virus Database: 2637/5476 - Release Date: 12/21/12 Internal Virus Database is out of date.
-- Atentamente, Dario García Consultor.
CCCT, Nivel C2, Sector Yarey, Mz, Ofc. MZ03a. Caracas-Venezuela. Teléfono: +58 212 9081842 Cel: +58 412 2221515 dgarcia@anew.com.ve http://www.anew.com.ve
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire 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 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
I have. Personally I use my own custom daemon that simply uses libpcap to capture and logs packets on port 5060/5080 to pcap files rotated on time/size limits which're stored for N days then deleted by a cronjob. I agree a separate project is probably a good way to log the SIP traffic... Cal, a project like Homer allows you to capture the SIP traffic from a separate server on the same LAN segment or using a monitor port of a managed switch. That offloads the SIP capture entirely away from the CPU/Disk of the SIP server, which can have performance benefits for your softswitch server. Additionally using a pcap file format can have other benefits, since it allows you to use existing tools like wireshark for analysis. Searching for a call in a pcap file is trivial using the Call-ID header which you'll have in the sip_call_id channel variable. That said, the idea of storing a history of the received SIP packets within the CDR itself is interesting and would have benefits on simpler installs such as a small office PBX - although I wouldn't necessarily do it by default. -Steve On 7 January 2013 21:16, Anthony Minessale <anthony.minessale@gmail.com> wrote:
have you seen the homer project?
On Mon, Jan 7, 2013 at 3:03 PM, Steven Ayre <steveayre@gmail.com> wrote:
Current logging is the Sofia-SIP stack calling the sofia.c:logger() callback for the transport log. At this level packets are not attached to any call, so matching it to a call would require a 2nd parsing of the packet and matching it based on Call-ID... it would be quite a performance hit.
The callback functions where mod_sofia handles a packet matched to a call receives the packet from the Sofia-SIP stack via the sip_t data structure. This contains the parsed message, not the raw packet. This makes it unsuitable for logging. I'm not sure if any other parameters passed to the callback contain the raw packet, which would be required to implement the feature. One of the mod_sofia developers would have a better grasp of the Sofia-SIP API though.
-Steve
On 7 January 2013 20:40, Lloyd Aloysius <lloyd.aloysius@gmail.com> wrote:
I saw a demo from siproutes carrier. Their cdr have sip trace for every record and they keep for three months , then archive.
It is awesome if freeswitch attach sip trace to the cdr. May be we can setup a bounty for this.
On Mon, Jan 7, 2013 at 9:17 AM, Saugort Dario Garcia Tovar <dgarcia@anew.com.ve> wrote:
Hi Cal,
Also I use this way to get a sip trace with filter criterias. Take a look to this link:
http://www.jonathanmanning.com/2009/10/26/how-to-voip-sip-capture-with-tcpdu...
With Wireshark you can apply additional filter
On 1/6/2013 3:31 PM, Cal Leeming [Simplicity Media Ltd] wrote:
Could a core dev speculate on how much the expected bounty would be for this?
Thanks
Cal
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2221 / Virus Database: 2637/5476 - Release Date: 12/21/12 Internal Virus Database is out of date.
-- Atentamente, Dario García Consultor.
CCCT, Nivel C2, Sector Yarey, Mz, Ofc. MZ03a. Caracas-Venezuela. Teléfono: +58 212 9081842 Cel: +58 412 2221515 dgarcia@anew.com.ve http://www.anew.com.ve
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
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 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
From previous experience in web development, I know that sometimes the most obvious way isn't the right way.
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. However, HOMER on a switch port mirror looks very interesting - thank you for this recommendation. 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. Really appreciate the feedback from everyone on this Cal On Mon, Jan 7, 2013 at 9:46 PM, Steven Ayre <steveayre@gmail.com> wrote:
I have.
Personally I use my own custom daemon that simply uses libpcap to capture and logs packets on port 5060/5080 to pcap files rotated on time/size limits which're stored for N days then deleted by a cronjob.
I agree a separate project is probably a good way to log the SIP traffic...
Cal, a project like Homer allows you to capture the SIP traffic from a separate server on the same LAN segment or using a monitor port of a managed switch. That offloads the SIP capture entirely away from the CPU/Disk of the SIP server, which can have performance benefits for your softswitch server. Additionally using a pcap file format can have other benefits, since it allows you to use existing tools like wireshark for analysis. Searching for a call in a pcap file is trivial using the Call-ID header which you'll have in the sip_call_id channel variable.
That said, the idea of storing a history of the received SIP packets within the CDR itself is interesting and would have benefits on simpler installs such as a small office PBX - although I wouldn't necessarily do it by default.
-Steve
On 7 January 2013 21:16, Anthony Minessale <anthony.minessale@gmail.com> wrote:
have you seen the homer project?
On Mon, Jan 7, 2013 at 3:03 PM, Steven Ayre <steveayre@gmail.com> wrote:
Current logging is the Sofia-SIP stack calling the sofia.c:logger() callback for the transport log. At this level packets are not attached to any call, so matching it to a call would require a 2nd parsing of the packet and matching it based on Call-ID... it would be quite a performance hit.
The callback functions where mod_sofia handles a packet matched to a call receives the packet from the Sofia-SIP stack via the sip_t data structure. This contains the parsed message, not the raw packet. This makes it unsuitable for logging. I'm not sure if any other parameters passed to the callback contain the raw packet, which would be required to implement the feature. One of the mod_sofia developers would have a better grasp of the Sofia-SIP API though.
-Steve
On 7 January 2013 20:40, Lloyd Aloysius <lloyd.aloysius@gmail.com>
wrote:
I saw a demo from siproutes carrier. Their cdr have sip trace for every record and they keep for three months , then archive.
It is awesome if freeswitch attach sip trace to the cdr. May be we can setup a bounty for this.
On Mon, Jan 7, 2013 at 9:17 AM, Saugort Dario Garcia Tovar <dgarcia@anew.com.ve> wrote:
Hi Cal,
Also I use this way to get a sip trace with filter criterias. Take a look to this link:
http://www.jonathanmanning.com/2009/10/26/how-to-voip-sip-capture-with-tcpdu...
With Wireshark you can apply additional filter
On 1/6/2013 3:31 PM, Cal Leeming [Simplicity Media Ltd] wrote:
Could a core dev speculate on how much the expected bounty would be
for
this?
Thanks
Cal
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2221 / Virus Database: 2637/5476 - Release Date: 12/21/12 Internal Virus Database is out of date.
-- Atentamente, Dario García Consultor.
CCCT, Nivel C2, Sector Yarey, Mz, Ofc. MZ03a. Caracas-Venezuela. Teléfono: +58 212 9081842 Cel: +58 412 2221515 dgarcia@anew.com.ve http://www.anew.com.ve
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
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 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
The best bet would probably to be using the call-id from the cdr to generate a link over to homer to look at a particular trace similar to how fisheye and jira work together. On Mon, Jan 7, 2013 at 5:21 PM, Cal Leeming [Simplicity Media Ltd] < cal.leeming@simplicitymedialtd.co.uk> wrote:
From previous experience in web development, I know that sometimes the most obvious way isn't the right way.
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.
However, HOMER on a switch port mirror looks very interesting - thank you for this recommendation.
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.
Really appreciate the feedback from everyone on this
Cal
On Mon, Jan 7, 2013 at 9:46 PM, Steven Ayre <steveayre@gmail.com> wrote:
I have.
Personally I use my own custom daemon that simply uses libpcap to capture and logs packets on port 5060/5080 to pcap files rotated on time/size limits which're stored for N days then deleted by a cronjob.
I agree a separate project is probably a good way to log the SIP traffic...
Cal, a project like Homer allows you to capture the SIP traffic from a separate server on the same LAN segment or using a monitor port of a managed switch. That offloads the SIP capture entirely away from the CPU/Disk of the SIP server, which can have performance benefits for your softswitch server. Additionally using a pcap file format can have other benefits, since it allows you to use existing tools like wireshark for analysis. Searching for a call in a pcap file is trivial using the Call-ID header which you'll have in the sip_call_id channel variable.
That said, the idea of storing a history of the received SIP packets within the CDR itself is interesting and would have benefits on simpler installs such as a small office PBX - although I wouldn't necessarily do it by default.
-Steve
On 7 January 2013 21:16, Anthony Minessale <anthony.minessale@gmail.com> wrote:
have you seen the homer project?
On Mon, Jan 7, 2013 at 3:03 PM, Steven Ayre <steveayre@gmail.com> wrote:
Current logging is the Sofia-SIP stack calling the sofia.c:logger() callback for the transport log. At this level packets are not attached to any call, so matching it to a call would require a 2nd parsing of the packet and matching it based on Call-ID... it would be quite a performance hit.
The callback functions where mod_sofia handles a packet matched to a call receives the packet from the Sofia-SIP stack via the sip_t data structure. This contains the parsed message, not the raw packet. This makes it unsuitable for logging. I'm not sure if any other parameters passed to the callback contain the raw packet, which would be required to implement the feature. One of the mod_sofia developers would have a better grasp of the Sofia-SIP API though.
-Steve
On 7 January 2013 20:40, Lloyd Aloysius <lloyd.aloysius@gmail.com>
wrote:
I saw a demo from siproutes carrier. Their cdr have sip trace for every record and they keep for three months , then archive.
It is awesome if freeswitch attach sip trace to the cdr. May be we can setup a bounty for this.
On Mon, Jan 7, 2013 at 9:17 AM, Saugort Dario Garcia Tovar <dgarcia@anew.com.ve> wrote:
Hi Cal,
Also I use this way to get a sip trace with filter criterias. Take a look to this link:
http://www.jonathanmanning.com/2009/10/26/how-to-voip-sip-capture-with-tcpdu...
With Wireshark you can apply additional filter
On 1/6/2013 3:31 PM, Cal Leeming [Simplicity Media Ltd] wrote:
Could a core dev speculate on how much the expected bounty would be
for
this?
Thanks
Cal
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2221 / Virus Database: 2637/5476 - Release Date: 12/21/12 Internal Virus Database is out of date.
-- Atentamente, Dario García Consultor.
CCCT, Nivel C2, Sector Yarey, Mz, Ofc. MZ03a. Caracas-Venezuela. Teléfono: +58 212 9081842 Cel: +58 412 2221515 dgarcia@anew.com.ve http://www.anew.com.ve
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
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 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire 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 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
http://www.sipcapture.org/ http://code.google.com/p/homer/wiki/HOWTO Thanks, -- Muhammad Naseer Bhatti On Jan 7, 2013, at 11:40 PM, Lloyd Aloysius <lloyd.aloysius@gmail.com> wrote:
I saw a demo from siproutes carrier. Their cdr have sip trace for every record and they keep for three months , then archive.
It is awesome if freeswitch attach sip trace to the cdr. May be we can setup a bounty for this.
On Mon, Jan 7, 2013 at 9:17 AM, Saugort Dario Garcia Tovar <dgarcia@anew.com.ve> wrote: Hi Cal,
Also I use this way to get a sip trace with filter criterias. Take a look to this link:
http://www.jonathanmanning.com/2009/10/26/how-to-voip-sip-capture-with-tcpdu...
With Wireshark you can apply additional filter
On 1/6/2013 3:31 PM, Cal Leeming [Simplicity Media Ltd] wrote:
Could a core dev speculate on how much the expected bounty would be for this?
Thanks
Cal
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2221 / Virus Database: 2637/5476 - Release Date: 12/21/12 Internal Virus Database is out of date.
-- Atentamente, Dario García Consultor.
CCCT, Nivel C2, Sector Yarey, Mz, Ofc. MZ03a. Caracas-Venezuela. Teléfono: +58 212 9081842 Cel: +58 412 2221515 dgarcia@anew.com.ve http://www.anew.com.ve
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (7)
-
Anthony Minessale
-
Avi Marcus
-
Cal Leeming [Simplicity Media Ltd]
-
Lloyd Aloysius
-
Muhammad Naseer Bhatti
-
Saugort Dario Garcia Tovar
-
Steven Ayre