#### Pre-Submission Checklist
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
- [x] PR should be backported to stable branches
- [x] Tested changes locally
#### Description
Allows to pass unique address part into contact header for REGISTER requests for each uacreg entry
If contact_addr wasn't passed into uacreg for a particular entry default reg_contact_addr will be used instead.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2470
-- Commit Summary --
* uacreg contact_addr added into db as configrable parameter for each entry
* docs generated
* formatting
* Merge branch 'uacreg-contact_addr-field-in-db' of https://github.com/ovoshlook/kamailio into uacreg-contact_addr-field-in-db
* reverted readme
* formatting
* formatting
-- File Changes --
M src/modules/uac/doc/uac_admin.xml (11)
M src/modules/uac/uac_reg.c (43)
M src/modules/uac/uac_reg.h (2)
M utils/kamctl/db_berkeley/kamailio/uacreg (4)
M utils/kamctl/db_berkeley/kamailio/version (2)
M utils/kamctl/db_redis/kamailio/uacreg (2)
M utils/kamctl/db_sqlite/uac-create.sql (3)
M utils/kamctl/dbtext/kamailio/uacreg (2)
M utils/kamctl/mongodb/kamailio/uacreg.json (7)
M utils/kamctl/mysql/uac-create.sql (3)
M utils/kamctl/oracle/uac-create.sql (3)
M utils/kamctl/postgres/uac-create.sql (3)
M utils/kamctl/xhttp_pi/uac-mod (3)
M utils/kamctl/xhttp_pi/uac-table (1)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2470.patchhttps://github.com/kamailio/kamailio/pull/2470.diff
--
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/pull/2470
Module: kamailio
Branch: master
Commit: 3c643c023626e0de744c4960f2a7af4a401f6df0
URL: https://github.com/kamailio/kamailio/commit/3c643c023626e0de744c4960f2a7af4…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-09-09T13:31:27+02:00
modules: readme files regenerated - uac ... [skip ci]
---
Modified: src/modules/uac/README
---
Diff: https://github.com/kamailio/kamailio/commit/3c643c023626e0de744c4960f2a7af4…
Patch: https://github.com/kamailio/kamailio/commit/3c643c023626e0de744c4960f2a7af4…
---
diff --git a/src/modules/uac/README b/src/modules/uac/README
index a018d29a16..ae8376ab15 100644
--- a/src/modules/uac/README
+++ b/src/modules/uac/README
@@ -524,6 +524,9 @@ modparam("uac", "reg_db_table", "uacreg")
username part of the Contact: URI will be the L_UUID field in the
database.
+ A contact_addr value in the uacreg table will override the parameter
+ for this particular entry.
+
Example 1.17. Set reg_contact_addr parameter
...
modparam("uac", "reg_contact_addr", "192.168.1.2:5080")
@@ -1111,8 +1114,10 @@ event_route[uac:reply] {
* flags
* reg_delay
* socket
+ * contact_addr
- Use a dot (.) if no value should be set for auth_password or auth_ha1.
+ Use a dot (.) if no value should be set for auth_password, auth_ha1, or
+ contact_addr.
Example 1.45. uac.reg_add usage
...
@@ -1155,6 +1160,11 @@ event_route[uac:reply] {
* reg_delay - delay initial registration with at least reg_delay
seconds, e.g.,: 3
+ * contact_addr - contact address to be used for this record instead
+ of reg_contact_addr module parameter, e.g.:, 192.168.0.125:5060. It
+ can be set to '.' (dot) to skip setting it and then
+ reg_contact_addr modparam is used.
+
* socket - Used socket for sending out registration requests, e.g.:,
udp:192.168.0.125:5060
Module: kamailio
Branch: master
Commit: 89656680c6ff3aae00bbffae03131a1e983198dd
URL: https://github.com/kamailio/kamailio/commit/89656680c6ff3aae00bbffae03131a1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-09-09T13:26:54+02:00
uac: docs - updates for uacreg contact addr field
---
Modified: src/modules/uac/doc/uac_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/89656680c6ff3aae00bbffae03131a1…
Patch: https://github.com/kamailio/kamailio/commit/89656680c6ff3aae00bbffae03131a1…
---
diff --git a/src/modules/uac/doc/uac_admin.xml b/src/modules/uac/doc/uac_admin.xml
index 42645e891a..d43b8afa0c 100644
--- a/src/modules/uac/doc/uac_admin.xml
+++ b/src/modules/uac/doc/uac_admin.xml
@@ -1359,12 +1359,13 @@ event_route[uac:reply] {
<listitem><para>expires</para></listitem>
<listitem><para>flags</para></listitem>
<listitem><para>reg_delay</para></listitem>
- <listitem><para>contact_addr</para></listitem>
<listitem><para>socket</para></listitem>
+ <listitem><para>contact_addr</para></listitem>
</itemizedlist>
</para>
<para>
- Use a dot (.) if no value should be set for auth_password or auth_ha1.
+ Use a dot (.) if no value should be set for auth_password, auth_ha1,
+ or contact_addr.
</para>
<example>
@@ -1463,8 +1464,9 @@ event_route[uac:reply] {
</itemizedlist>
<itemizedlist>
<listitem><para>
- <emphasis>contact_addr</emphasis> - Used contact address for sending out registration requests,
- e.g.:, 192.168.0.125:5060
+ <emphasis>contact_addr</emphasis> - contact address to be used for this record
+ instead of reg_contact_addr module parameter, e.g.:, 192.168.0.125:5060. It can
+ be set to '.' (dot) to skip setting it and then reg_contact_addr modparam is used.
</para></listitem>
</itemizedlist>
<itemizedlist>