<div dir="ltr">Hello<div><br><div>sorry for the noise.</div><div>bad config caused the problem</div><div><br></div><div>thanks</div><div>huseyin</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 16, 2016 at 1:28 PM, huseyin kalyoncu <span dir="ltr"><<a href="mailto:hkalyoncu@gmail.com" target="_blank">hkalyoncu@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">Hello,<div><br></div><div>We have kamailio running as proxy in front of a freeswitch box.</div><div>This kamailio also acts as a registrar listening both 5060 and 5090 ports.</div><div><br></div><div>We have two devices registered to kamailio:</div><div><br></div><div>Device A on port 5060</div><div>Device B on port 5090</div><div><br></div><div>When Device B calls Device A everything is fine. Call released successfully.</div><div><br></div><div>When Device A calls Device B, call setup is ok and they can talk.</div><div>But when Device A tries to release the call, Device B remains open which cannot get a BYE message.</div><div><br></div><div>When I dug up for the cause of the problem, I realized that:</div><div><br></div><div>When Kamailo receives 200OK reply on port 5090 for the UPDATE message from Device B, it relays this reply internally and then sends this reply to freeswitch box on port 5060. </div><div>This results in loosing alias in the contact field of the reply message and</div><div>then which causes freeswitch to return BYE message with the wrong IP which is the local IP of the Device B. As a result this BYE message cannot be delivered to Device B.</div><div><br></div><div>Is this a normal behaviour ?  If it is so what changes should I make in the kamailio config to fix this?</div><div><br></div><div>You can find the ngrep outputs of the both calls as attachment.</div><div><br></div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Huseyin Kalyoncu    </div></font></span></div>
</blockquote></div><br></div>