[Freeswitch-dev] What's the easiest way to get all the SIP messages in FS?
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
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 <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Or ngrep... The nice things about such tools is that you can use them to monitor several systems (if you have setup a port mirror/SPAN) from a separate host without even potentially impacting anything on the FS hosts - it's just passive monitoring anyway... On Wed, Feb 25, 2009 at 10:32 AM, Anthony Minessale <anthony.minessale@gmail.com> 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
-- Kristian Kielhofner http://blog.krisk.org http://www.submityoursip.com http://www.astlinux.org http://www.star2star.com
On Feb 25, 2009, at 9:51 AM, Kristian Kielhofner wrote:
Or ngrep...
The nice things about such tools is that you can use them to monitor several systems (if you have setup a port mirror/SPAN) from a separate host without even potentially impacting anything on the FS hosts - it's just passive monitoring anyway...
On Wed, Feb 25, 2009 at 10:32 AM, Anthony Minessale <anthony.minessale@gmail.com> 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
-- Kristian Kielhofner http://blog.krisk.org http://www.submityoursip.com http://www.astlinux.org http://www.star2star.com
_______________________________________________ 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
Brian West brian@freeswitch.org -- Meet us a ClueCon! http://www.cluecon.com
You can change them "lively" by using the following command (on the latest revisions from SVN): sofia profile <profilename> siptrace on/off Best regards, Even André On 30. mars. 2009, at 23.23, Brian West wrote:
On Feb 25, 2009, at 9:51 AM, Kristian Kielhofner wrote:
Or ngrep...
The nice things about such tools is that you can use them to monitor several systems (if you have setup a port mirror/SPAN) from a separate host without even potentially impacting anything on the FS hosts - it's just passive monitoring anyway...
On Wed, Feb 25, 2009 at 10:32 AM, Anthony Minessale <anthony.minessale@gmail.com> 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
-- Kristian Kielhofner http://blog.krisk.org http://www.submityoursip.com http://www.astlinux.org http://www.star2star.com
_______________________________________________ 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
Brian West brian@freeswitch.org
-- Meet us a ClueCon! http://www.cluecon.com
_______________________________________________ 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
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
there are 2 options you can enable in your sofia profile. <param name="inbound-use-callid-as-uuid" value="true"/> <param name="outbound-use-uuid-as-callid" value="true"/> 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. This way the uuid of the channel from the cdr and the call-id in sip are identical and you can cross reference them. 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. 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. What you see in TPORT_LOG is being generated well before FS ever gets the data. On Wed, Feb 25, 2009 at 10:03 AM, seven du <seven@idapted.com> wrote:
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 <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@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
_______________________________________________ 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 <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Thanks, the two params helps a lot. On Feb 26, 2009, at 12:44 AM, Anthony Minessale wrote:
there are 2 options you can enable in your sofia profile.
<param name="inbound-use-callid-as-uuid" value="true"/> <param name="outbound-use-uuid-as-callid" value="true"/>
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.
This way the uuid of the channel from the cdr and the call-id in sip are identical and you can cross reference them.
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.
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. What you see in TPORT_LOG is being generated well before FS ever gets the data.
On Wed, Feb 25, 2009 at 10:03 AM, seven du <seven@idapted.com> wrote: 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
_______________________________________________ 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
participants (6)
-
Anthony Minessale
-
Brian West
-
Even André Fiskvik
-
Kristian Kielhofner
-
seven
-
seven du