<div>Nick,</div><div><br></div><div>It is my understanding the "relay ip" option needs to refer to a local, public IP assigned to an interface on the machine. I don't believe mediaproxy will function behind NAT. The error is showing up likely because the media relay process cannot bind to the "relay ip" you specify.</div>
<div><br></div><div><br></div><div>- Jeff</div><br>
<br><br><div class="gmail_quote">On Sun, Sep 30, 2012 at 10:57 PM, Nick Chang <span dir="ltr"><<a href="mailto:nick.chang@kland.com.tw" target="_blank">nick.chang@kland.com.tw</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="ZH-TW" link="blue" vlink="purple"><div><p class="MsoNormal"><span lang="EN-US">Hello<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">I build a mediaproxy. It behind the Firewall(Cisco ASA)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">In /etc/mediaproxy/config.ini<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">dispatchers = private ip<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">relay_ip = public ip<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">port_range = 35000:65000<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Than I startup media-dispatcher and media-relay<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">But I saw this error</span><span style="font-family:"\0065b0\007d30\00660e\009ad4","serif"">:</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">media-relay[9663]: warning: Cannot use port pair 54816/54817<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">media-relay[9663]: warning: Cannot use port pair 54818/54819<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">media-relay[9663]: warning: Cannot use port pair 54820/54821<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">media-relay[9663]: warning: Cannot use port pair 54822/54823<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">media-relay[9663]: warning: Cannot use port pair 54824/54825<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">media-relay[9663]: warning: Cannot use port pair 54826/54827<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">media-relay[9663]: warning: Cannot use port pair 54828/54829<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">media-relay[9663]: warning: Cannot use port pair 54830/54831<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">media-relay[9663]: warning: Cannot use port pair 54832/54833<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">In Firewall<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I opened the port 25060 with TCP and port 5060 with UDP and port 35000~65000 with UDP<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal">
<span lang="EN-US">Now,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">I had two smartphone behind the NAT.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal">
<span lang="EN-US">When A call B. It’s OK. But no Voice.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Can mediaproxy behind the firewall?? Or just used public ip??<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Thanks for everyone give me a suggest.<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p>
<span class="HOEnZb"><font color="#888888"><p class="MsoNormal"><span lang="EN-US">Nick<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p></font></span></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>