<div dir="ltr">the two servers are running in separate physical machines. They are connected via an ethernet network. the ngrep command I'am using is "ngrep -p -q -W byline host IP_address_of_the_other_server". I don't have any port mirroring setup. the problem that I don't get that well. The mechanism of the port mirroring must be installed in the other server, right??? <br>
<br><div class="gmail_quote">2012/5/29 Ali Pey <span dir="ltr"><<a href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>></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'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's the ngrep command you are running?</div><div><br></div><div>Regards,</div><div>Ali</div><div class="HOEnZb">
<div class="h5"><div>
<br><br><div class="gmail_quote">On Tue, May 29, 2012 at 11:51 AM, azza miled <span dir="ltr"><<a href="mailto:azza.miled@gmail.com" target="_blank">azza.miled@gmail.com</a>></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:'Lucida Console','Andale Mono','Courier New',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:'Lucida Console','Andale Mono','Courier New',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"><<a href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>></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"><<a href="mailto:azza.miled@gmail.com" target="_blank">azza.miled@gmail.com</a>></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's flow. I uncomment the port=5060 in the opensips.cfg so, the server can listen to all ports but this didn't work and I don'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">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>