[OpenSIPS-Devel] [OpenSIPS/opensips] a5501a: mid-registrar: Make the "%40" Contact user substri...

Liviu Chircu noreply at github.com
Fri Jun 18 09:34:17 EST 2021


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: a5501ab3d2476382a3e6cb0382689c17a30c1a9f
      https://github.com/OpenSIPS/opensips/commit/a5501ab3d2476382a3e6cb0382689c17a30c1a9f
  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





More information about the Devel mailing list