Module: kamailio
Branch: master
Commit: 13423d1536dd239267425a9b1fb5e610bee19e15
URL: 
https://github.com/kamailio/kamailio/commit/13423d1536dd239267425a9b1fb5e610bee19e15

Author: Flavio Grossi <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-07-01T08:26:41+02:00

uac: allow customizing the contact user in uac reg requests

reported as GH #4653

currently the uac module uses the value of the l_uuid variable as the
user part in the contact header for the REGISTER request.

this change allows to customize the contact user part by providing an
optional new field contact_user which, if present, used in the contact
user part instead of the uuid.

it also adds to the outgoing REGISTER the contact parameter
line=<l_uuid> (only when contact_user is configured, returns an error if
contact_addr already contains a line parameter to avoid it to be
silently overwritten)

the REGISTER reply match is extended to check the uuid in the line
parameter instead of the user part (only if contact_user is configured)
to select the correct binding.

---

Modified: src/modules/uac/doc/uac_admin.xml
Modified: src/modules/uac/uac_reg.c
Modified: src/modules/uac/uac_reg.h

---

Diff:  
https://github.com/kamailio/kamailio/commit/13423d1536dd239267425a9b1fb5e610bee19e15.diff
Patch: 
https://github.com/kamailio/kamailio/commit/13423d1536dd239267425a9b1fb5e610bee19e15.patch

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to