<div dir="ltr"><div><div><div>Hi Stas,<br><br></div>You are welcome.<br><br></div>Keep in mind, that in your set-up freeswitch should send back BYE to internal ip(172.31.0.16), it may even work with external IP(52.*.*.177), but it will be incorrect set-up...<br><br></div>With kind regards,<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Jurijs<br></div></div></div>
<br><div class="gmail_quote">On Mon, Apr 11, 2016 at 6:13 PM, Стас Тельнов <span dir="ltr">&lt;<a href="mailto:stasan89@gmail.com" target="_blank">stasan89@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"><div class="gmail_quote">Hi Jurijs,<span class=""><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>I assume:<br>UA =&gt; OpenSIPS =&gt; Freeswitch =&gt; VoIP provider<br><br></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div></div><div><div><a href="http://172.31.0.169:5060" target="_blank">172.31.0.169:5060</a> - OpenSIPS<br></div><div><a href="http://172.31.22.124:5060" target="_blank">172.31.22.124:5060</a> - Freeswitch<br></div>178.*.*.12:5060 -  VoIP provider</div></blockquote></span></div><div class="gmail_extra"><br></div><div class="gmail_extra">Yes, it is correct. <br><span class=""><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><pre>As you can see BYE is strange too... Bye should be sent back to OpenSIPS, but not to 52.*.*.177:5060.</pre></blockquote></span>It is external sip IP. <a href="http://172.31.0.169:5060" target="_blank">172.31.0.16</a> - it is IP in amazon local network; 52.*.*.177==<span><a href="http://sip0.MY_SIP_DOMAIN.com" target="_blank">sip0.MY_SIP_DOMAIN.com</a> - it is public IP and domain of opensips.<br><br></span></div><div class="gmail_extra"><span>Trouble was in opensips ports configures. On clients available only 5061 (tls) port and disablied 5060 port. In opensips server enabled 5060 and 5061 ports and </span><span><span>opensips</span> send request to freeswitch by 5060 port.<br></span></div><div class="gmail_extra"><span>Aftrer opensips send 200 OK command and ACK to client by 5060 port, but on clients available only 5061 port and packets dont delivered.<br><br></span></div><div class="gmail_extra"><span>Thanks for help, </span><span lang="en"><span>a programmer</span> <span>who does not have</span> <span>experience in </span></span><span lang="en"><span lang="en"><span>servers</span></span> <span>administration</span><span> and</span> <span>VOIP-</span><span>telephony</span> <span>is not easy to</span> <span>quickly</span> <span>deal with the fact</span> <span>that</span> <span>there is</span><span>.</span> <span>But</span> <span>with your help,</span> <span>I managed to</span> <span>make it</span> <span>work.</span><span></span></span></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>