[sr-dev] [kamailio/kamailio] set_contact_alias() issue with clients adding it to their Contact (#2308)

mtryfoss notifications at github.com
Thu Jul 2 14:00:07 CEST 2020


handle_ruri_alias() only handle alias in Request-URI, not the Contact returned by the registrar for REGISTER.

For most phone clients this is not a problem but Bria used that info in subsequent requests.
So, when the proxy again doing set_contact_alias() on an INVITE from Bria (already containing an alias), you'll end up with two alias parameters. One of them might be outdated if port/source-ip has changed through NAT since initial registration.

When proxy then calls handle_ruri_alias() the first parameter is handled and removed, and you'll send the one which the proxy actually added back to the client. The ip/port used in the reply might be wrong if the alias Bria added is outdated.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2308#issuecomment-652963591
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20200702/257aa24b/attachment.html>


More information about the sr-dev mailing list