You need port mirroring or a hub. The traffic for your sip server ONLY goes to your sip server. The opensips server will not receive/see any of the packets. You need to find a way on your switch to send the packets to both servers. There are two ways. Port mirroring on your switch if it has that feature (recommended with a lot better performance) or install a hub in the middle (which would be good enough for debugging etc.)<div>
<br></div><div>Regards,</div><div>Ali Pey <br><br><div class="gmail_quote">On Wed, May 30, 2012 at 3:57 AM, azza miled <span dir="ltr">&lt;<a href="mailto:azza.miled@gmail.com" target="_blank">azza.miled@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">the two servers are running in separate physical machines. They are connected via an ethernet network. the ngrep command I&#39;am using is &quot;ngrep -p -q -W byline host IP_address_of_the_other_server&quot;. I don&#39;t have any port mirroring setup. the problem that I don&#39;t get that well. The mechanism of the port mirroring must be installed in the other server, right??? <div>
<div class="h5"><br>
<br><div class="gmail_quote">2012/5/29 Ali Pey <span dir="ltr">&lt;<a href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Are they running on two separate physical servers? or are you running the opensips server on the same machine?<div>If they are on separate servers, what&#39;s your network connectivity? do you have proper port mirroring setup? without port mirroring, you will not be able to see any traffic unless you find a hub instead of a switch - most hubs are actually switches and they send the traffic the one port only. </div>


<div>You need to first fix you network setup and examine it with ngrep or tcpdump and then run opensips on that port. What&#39;s the ngrep command you are running?</div><div><br></div><div>Regards,</div><div>Ali</div><div>

<div><div>
<br><br><div class="gmail_quote">On Tue, May 29, 2012 at 11:51 AM, azza miled <span dir="ltr">&lt;<a href="mailto:azza.miled@gmail.com" target="_blank">azza.miled@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr">First of all,thanks for the response. I made my opensips listen to the same port of the other server <br><pre style="font-size:0.9em;font-family:&#39;Lucida Console&#39;,&#39;Andale Mono&#39;,&#39;Courier New&#39;,Courier;line-height:1.2em;margin-top:0px;margin-bottom:0px;padding:6px;border:1px solid rgb(235,235,235);background-color:rgb(251,254,250)">
listen=udp:my_IP_Addres:7003
listen=tcp:<span style="font-size:0.9em;line-height:1.2em">my_IP_Addres:7003</span></pre><pre style="font-size:0.9em;font-family:&#39;Lucida Console&#39;,&#39;Andale Mono&#39;,&#39;Courier New&#39;,Courier;line-height:1.2em;margin-top:0px;margin-bottom:0px;padding:6px;border:1px solid rgb(235,235,235);background-color:rgb(251,254,250)">
<span style="font-size:0.9em;line-height:1.2em">I restarted OpenSIPS after that, and I used ngrep to detect traffic. But my server still does not detect any traffic coming from the other server. </span></pre><div><div>
<div class="gmail_quote">
2012/5/29 Ali Pey <span dir="ltr">&lt;<a href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



if you uncomment the port, it will listen to the default port which is 5060. You can never have opensips to listen to all ports. You always need to listen to a port number. You can bind it to multiple ip addresses though.<div>




<br></div><div>You need to know what port the other sip server is using and configure the same port. Are you doing port mirroring? Use tcpdump command see if the traffic is coming to the server.</div><div><br></div><div>



Regards,</div>
<div>Ali<br><br><div class="gmail_quote"><div>On Tue, May 29, 2012 at 10:57 AM, azza miled <span dir="ltr">&lt;<a href="mailto:azza.miled@gmail.com" target="_blank">azza.miled@gmail.com</a>&gt;</span> wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<div dir="ltr">I want to make my OpenSIPS server listen to another sip server&#39;s flow. I uncomment the port=5060 in the opensips.cfg so, the server can listen to all ports but this didn&#39;t work and I don&#39;t receive any trafic from the other server.  In fact I have the IP adress and the port of the other server. How this can be useful??Can any one help, please??</div>





<br></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>