On 13.03.25 11:16, James Browne via sr-users wrote:
> - 
> https://kamailio.org/docs/modules/5.8.x/modules/nathelper.html#nathelper.f.add_contact_alias
> This add_contact_alias() function changes only the first Contact
> address in a REGISTER request, even though it's normal (RFC3261, 10.2)
> for a REGISTER to have multiple Contact addresses.
>
> This seems to me to be a kamailio bug.
> For example, a user might remove one binding while adding a second, in
> a REGISTER request. If kamailio relays this while adding an alias to
> only the expires=0 binding, then the new binding may be stored
> incorrectly in the registrar.

The functions for contact alias were designed for INVITEs/calls, where
only one contact is expected.

Normally, for REGISTER, the fix_nated_register() should be used if that
instance is the registrar server, or, in case of an intermediary proxy,
the Path headers (see path module) should be added.

On the other hand, it would be fine for me if someone wants to extend
the contact alias functions to handle more than one header.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services -- asipto.com
Kamailio Advanced Training, March 24-28, 2025 -- asipto.com
Kamailio World Conference, May 12-13, 2025, Berlin -- kamailioworld.com

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- 
sr-users@lists.kamailio.org
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to