<div dir="ltr"><div>Hello guys,</div><div><br></div><div>So i've setup kamailio 5 with wss. Registration goes ok, but when trying to call, SIPML as well as jsSIP send garbage as Contact header, something like:</div><div><br></div><div>Contact: <sip:0ku6du26@7j65fcf53i2k.invalid;transport=ws>;reg-id=1;+sip.instance="<urn:uuid:8b49ac42-2039-4122-9f5b-6f4e9f471f52>";expires=600<br></div><div><br></div><div>so when it passes through:</div><div><br></div><div><div><span style="white-space:pre">              </span>if (is_method("REGISTER")) {</div><div><span style="white-space:pre">                        </span>fix_nated_register();</div><div><span style="white-space:pre">         </span>} else {</div><div><span style="white-space:pre">                      </span>if (!add_contact_alias()) {</div><div><span style="white-space:pre">                           </span>xlog("L_ERR", "Error aliasing contact <$ct>\n");</div><div><span style="white-space:pre">                            </span>sl_send_reply("400", "Bad Request");</div><div><span style="white-space:pre">                              </span>exit;</div><div><span style="white-space:pre">                 </span>}</div><div><span style="white-space:pre">             </span>}</div></div><div><br></div><div>(taken from several examples i've found around)</div><div><br></div><div>add_contact_alias() fails because it tries to find whether the ip address in the contact header is different from the received ip, and if not, it adds the received ip as a parameter... so the call doesn't work...</div><div><br></div><div>I assume there's a way around this, can anyone help?</div><div><br></div><div><br></div><div><div class="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div>
</div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=11007804-68e7-4f7e-9deb-66f304c7f365"><font color="#ffffff" size="1">ᐧ</font></div>