Hi, does somebody know how to use NGREP command to show \r and \n symbols instead of a dot "." replacing them?
By default NGREP prints a dot "." relacing any non-printable caracter. This symbol can be changed with "-p" option but waht I want is to show \r and \n literally.
Thanks for any suggestion.
PD: Any other recomendation (program) to get SIP traces showing \r and \n?
Hi Iñaki,
have you tried the "-W byline" ? - it will format you the lines.
Regards, Bogdan
Iñaki Baz Castillo wrote:
Hi, does somebody know how to use NGREP command to show \r and \n symbols instead of a dot "." replacing them?
By default NGREP prints a dot "." relacing any non-printable caracter. This symbol can be changed with "-p" option but waht I want is to show \r and \n literally.
Thanks for any suggestion.
PD: Any other recomendation (program) to get SIP traces showing \r and \n?
El Tuesday 20 May 2008 16:37:03 Bogdan-Andrei Iancu escribió:
Hi Iñaki,
have you tried the "-W byline" ? - it will format you the lines.
Hi Bogdan. Yes, in fact I use this option "-W byline", but this option just splits the trace into lines (macthing "\n"). This is not enough for me since \r is not showed.
I need it since I send and receive traffic from a carrier using a painful Nortel CS2K softswitch that separes SDP lines with \r instead of the mandatory \r\n adn they are applying dirty and not working patches during production state so I need a way to monitorize it.
Thanks a lot.
Hello Inaki,
Perform a raw capture using tcpdump and open the file with wireshark. Check the lower window in wireshark where you have the message displayed in hex format. There you will be able to spot '\n' and '\r'. To find the hex codes, perform a 'man ascii' on your linux box.
Regards, Ovidiu Sas
On Tue, May 20, 2008 at 10:53 AM, Iñaki Baz Castillo ibc@in.ilimit.es wrote:
El Tuesday 20 May 2008 16:37:03 Bogdan-Andrei Iancu escribió:
Hi Iñaki,
have you tried the "-W byline" ? - it will format you the lines.
Hi Bogdan. Yes, in fact I use this option "-W byline", but this option just splits the trace into lines (macthing "\n"). This is not enough for me since \r is not showed.
I need it since I send and receive traffic from a carrier using a painful Nortel CS2K softswitch that separes SDP lines with \r instead of the mandatory \r\n adn they are applying dirty and not working patches during production state so I need a way to monitorize it.
Thanks a lot.
-- Iñaki Baz Castillo ibc@in.ilimit.es
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
Hi Iñaki,
I had the same issue with a Nortel CS1k switch, the easiest way to check this problem is to use the Wireshark feature "Display raw text for SIP message" which can be enabled under preferences / protocols / SIP
regards, Andreas
Ovidiu Sas schrieb:
Hello Inaki,
Perform a raw capture using tcpdump and open the file with wireshark. Check the lower window in wireshark where you have the message displayed in hex format. There you will be able to spot '\n' and '\r'. To find the hex codes, perform a 'man ascii' on your linux box.
Regards, Ovidiu Sas
On Tue, May 20, 2008 at 10:53 AM, Iñaki Baz Castillo ibc@in.ilimit.es wrote:
El Tuesday 20 May 2008 16:37:03 Bogdan-Andrei Iancu escribió:
Hi Iñaki,
have you tried the "-W byline" ? - it will format you the lines.
Hi Bogdan. Yes, in fact I use this option "-W byline", but this option just splits the trace into lines (macthing "\n"). This is not enough for me since \r is not showed.
I need it since I send and receive traffic from a carrier using a painful Nortel CS2K softswitch that separes SDP lines with \r instead of the mandatory \r\n adn they are applying dirty and not working patches during production state so I need a way to monitorize it.
Thanks a lot.
-- Iñaki Baz Castillo ibc@in.ilimit.es
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
Nope, not the only one. I'm working with a CS1k as well.
This may or may not be an 'offline' sort of discussion, but seeing as how we have a least a triumvirate of OpenSER users who also need to interoperate with Nortel gear I'd be interested in discussing what you have and haven't been able to accomplish in this regard.
- Brad
The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.
From: users-bounces@lists.openser.org [mailto:users-bounces@lists.openser.org] On Behalf Of Iñaki Baz Castillo Sent: Friday, May 23, 2008 3:32 AM To: users@lists.openser.org Subject: Re: [OpenSER-Users] [OT] NGREP showing \r and \n symbols
El Thursday 22 May 2008 23:55:56 Andreas Heise escribió:
Hi Iñaki,
I had the same issue with a Nortel CS1k switch
It's nice to know that I'm not theonly sending/receiving traffic from a Nortel CS[12]K. ;)
-- Iñaki Baz Castillo ibc@in.ilimit.es
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
Watkins, Bradley writes:
This may or may not be an 'offline' sort of discussion, but seeing as how we have a least a triumvirate of OpenSER users who also need to interoperate with Nortel gear I'd be interested in discussing what you have and haven't been able to accomplish in this regard.
nortel people are active on ietf sip list. perhaps you could ask those people to get nortel sip/sdp problems fixed.
-- juha
Well,
if you do a pcap capture, you can inspected later both as text and binary (so you could see the ascii codes) in ethereal, for example.
also tcpdump (in command line) can display both hexa and ascii in the same time - do not ask me about switches as I do not recall (I dig the man page each time)
Regards, Bogdan
Iñaki Baz Castillo wrote:
El Tuesday 20 May 2008 16:37:03 Bogdan-Andrei Iancu escribió:
Hi Iñaki,
have you tried the "-W byline" ? - it will format you the lines.
Hi Bogdan. Yes, in fact I use this option "-W byline", but this option just splits the trace into lines (macthing "\n"). This is not enough for me since \r is not showed.
I need it since I send and receive traffic from a carrier using a painful Nortel CS2K softswitch that separes SDP lines with \r instead of the mandatory \r\n adn they are applying dirty and not working patches during production state so I need a way to monitorize it.
Thanks a lot.