[OpenSIPS-Devel] [OpenSIPS/opensips] cad9b1: registrar: Update the Contact URI on param-based m...

Liviu Chircu noreply at github.com
Fri Jun 18 10:18:43 EST 2021


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: cad9b171c274563d7265b40198e09ee8526fe758
      https://github.com/OpenSIPS/opensips/commit/cad9b171c274563d7265b40198e09ee8526fe758
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2021-06-18 (Fri, 18 Jun 2021)

  Changed paths:
    M modules/registrar/save.c
    M modules/usrloc/urecord.c
    M parser/parse_uri.h

  Log Message:
  -----------
  registrar: Update the Contact URI on param-based matching

(cherry picked from commit 8cc4b3249625802f2b3a11fb5f8b264cae6c6a11)


  Commit: 7ea363272cc34e3ac94ee3f7f41ee65e951cfbcb
      https://github.com/OpenSIPS/opensips/commit/7ea363272cc34e3ac94ee3f7f41ee65e951cfbcb
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2021-06-18 (Fri, 18 Jun 2021)

  Changed paths:
    M modules/mid_registrar/save.c
    M modules/registrar/save.c
    M modules/registrar/test/test.c
    M modules/usrloc/dlist.c
    M modules/usrloc/ucontact.c
    M modules/usrloc/ucontact.h
    M modules/usrloc/udomain.c
    M modules/usrloc/ul_cluster.c
    M modules/usrloc/ul_cluster.h
    M modules/usrloc/ul_mi.c
    M modules/usrloc/urecord.c
    M modules/usrloc/urecord.h
    M modules/usrloc/usrloc.h

  Log Message:
  -----------
  usrloc: Include the matching algorithm in replication packets

Although this commit also bumps the usrloc BIN packet version from
2 -> 3, there is added logic for backwards-compatibility with
version 2 packets, so the migration in a clustered environment should
be silky smooth!

Many thanks to Giovanni Maruzzelli (@gmaruzz) for catching this issue
and providing a detailed bug report!

Fixes #2351

(cherry picked from commit 60f1a532531cefe5696edc0844b7ccb0b36be4c6)


  Commit: 6c78fdd7e9dbe5bc7162c6e5376149b0f0193c02
      https://github.com/OpenSIPS/opensips/commit/6c78fdd7e9dbe5bc7162c6e5376149b0f0193c02
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2021-06-18 (Fri, 18 Jun 2021)

  Changed paths:
    M lib/reg/lookup.c
    M lib/reg/lookup.h
    M lib/reg/sip_msg.c
    M modules/mid_registrar/doc/mid_registrar_admin.xml
    M modules/mid_registrar/encode.c
    M modules/mid_registrar/encode.h
    M modules/mid_registrar/lookup.c
    M modules/mid_registrar/mid_registrar.c
    M modules/mid_registrar/mid_registrar.h
    M modules/mid_registrar/save.c
    M modules/registrar/lookup.c
    M modules/sipmsgops/sipmsgops.c
    M parser/parse_uri.h

  Log Message:
  -----------
  mid-registrar: Make the "%40" Contact user substring configurable

This patch adds the "at_escape_str" modparam, which is only relevant for
mid-registrar running in "mode == 2" (AoR throttling).  This setting
gives developers more control over the mid-registrar's Contact headers
in case the default sequence is problematic.

This may fix issues where, for example, the "%40" string is un-escaped
by the backend registrar, causing errors during DNS lookup of something
resembling, e.g., "alice at 1.1.1.1@2.2.2.2".
                         ^-------------^
			     (the hostname that gets looked up)

The default value remains unchanged: "%40"

Related to #2367

(cherry picked from commit a5501ab3d2476382a3e6cb0382689c17a30c1a9f)


Compare: https://github.com/OpenSIPS/opensips/compare/54cf93cc6aaa...6c78fdd7e9db



More information about the Devel mailing list