Hello guys,
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:
Contact: <sip:0ku6du26@7j65fcf53i2k.invalid
;transport=ws>;reg-id=1;+sip.instance="<urn:uuid:8b49ac42-2039-4122-9f5b-6f4e9f471f52>";expires=600
so when it passes through:
if (is_method("REGISTER")) {
fix_nated_register();
} else {
if (!add_contact_alias()) {
xlog("L_ERR", "Error aliasing contact <$ct>\n");
sl_send_reply("400", "Bad Request");
exit;
}
}
(taken from several examples i've found around)
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...
I assume there's a way around this, can anyone help?
Regards,
David Villasmil
email: david.villasmil.work(a)gmail.com
phone: +34669448337
ᐧ