<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
To get ngrep to filter the capturing on "300" do :<br>
ngrep -d any -W byline -t <b>300</b> port 5060<br>
<br>
upload the output somewhere on pastebin or similar - this mailing
list is limited to attachments of 40K. <br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 03/15/2012 04:54 PM, talha jilal wrote:
<blockquote cite="mid:BAY166-W49F72B93AE6ECE080BC2BA825E0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<div dir="ltr">
<br>
Hello Bogdan,
<div><br>
</div>
<div><br>
</div>
<div>Here is my ngrep output, for only 300 extension where I am
calling. I also attached ngrep full out put from when I start
calling till end.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>To:
<a class="moz-txt-link-rfc2396E" href="sip:300@svoice.dyndns.org;user=phone"><sip:300@svoice.dyndns.org;user=phone></a>;tag=4249013220.</div>
<div>Contact: "300"
<a class="moz-txt-link-rfc2396E" href="sip:300@192.168.1.104:5060;transport=udp"><sip:300@192.168.1.104:5060;transport=udp></a>.</div>
<div>i="300"<sip:>.</div>
<div>a=X-NameLabel:300.</div>
<div>To:
<a class="moz-txt-link-rfc2396E" href="sip:300@svoice.dyndns.org;user=phone"><sip:300@svoice.dyndns.org;user=phone></a>;tag=4249013220.</div>
<div>Contact: "300"
<a class="moz-txt-link-rfc2396E" href="sip:300@192.168.1.104:5060;transport=udp"><sip:300@192.168.1.104:5060;transport=udp></a>.</div>
<div>i="300"<sip:>.</div>
<br>
<div>^C</div>
<div><br>
</div>
<font style="" color="#000000"><b><br>
</b></font>
<div><font style="" color="#000000"><b><br>
</b></font></div>
<div><font style="" color="#000000"><b>Thanks ! <br>
Talha Jilal <br>
<br>
</b></font><br>
<br>
<div>
<hr id="stopSpelling">Date: Wed, 14 Mar 2012 14:22:23
+0200<br>
From: <a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:talha_jilal@hotmail.com">talha_jilal@hotmail.com</a><br>
CC: <a class="moz-txt-link-abbreviated" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
Subject: Re: Users Digest, Vol 44, Issue 25<br>
<br>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft SafeHTML">
I mentioned ngrep, not grep :D .<br>
<br>
Do :<br>
ngrep -d any -W byline -t . port 5060<br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 03/12/2012 08:54 PM, talha jilal wrote:
<blockquote
cite="mid:BAY166-W2F0F24C0960C14D40AC4E825B0@phx.gbl">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<div dir="ltr"> <br>
Hi,
<div><br>
<br>
Here is output with grep </div>
<div><br>
</div>
<div>Please advise me full command if I am doing some
thing wrong, I am using centos 6.0 32 bit.</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div><br>
</div>
<div>-bash-4.1# tcpdump -i eth2 -n -s0 -vvv tcp
port 5060 | grep 300</div>
<div>tcpdump: listening on eth2, link-type EN10MB
(Ethernet), capture size 65535 bytes</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>07:51:21.257355 IP (tos 0x0, ttl 118, id 27728,
offset 0, flags [DF], proto TCP (6), length 1300)</div>
<div>07:51:27.511152 IP (tos 0x10, ttl 64, id 6173,
offset 0, flags [DF], proto TCP (6), length 1300)</div>
<div>07:51:28.015258 IP (tos 0x10, ttl 64, id 6175,
offset 0, flags [DF], proto TCP (6), length 1300)</div>
<div>07:51:29.022329 IP (tos 0x10, ttl 64, id 6177,
offset 0, flags [DF], proto TCP (6), length 1300)</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks </div>
<div><br>
<div>
<hr id="ecxstopSpelling">Date: Mon, 12 Mar 2012
20:30:10 +0200<br>
From: <a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:bogdan@opensips.org">bogdan@opensips.org</a><br>
To: <a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:talha_jilal@hotmail.com">talha_jilal@hotmail.com</a>;
<a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
Subject: Re: Users Digest, Vol 44, Issue 25<br>
<br>
Hi, <br>
<br>
1) please keep the list at CC all the time !<br>
<br>
2) the tcpdump output is no enough - use ngrep
as I need to see the actual content of the SIP
package ; or make a pcap capture and upload it
somewhere for download.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
</body>
</html>