[OpenSIPS-Devel] [OpenSIPS/opensips] cdd7eb: Export is_username_char() to core and reuse it

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


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

  Changed paths:
    M modules/sipmsgops/sipmsgops.c
    M parser/parse_uri.h
    M parser/test/test_parser.c
    M strcommon.c

  Log Message:
  -----------
  Export is_username_char() to core and reuse it

Also remove the duplicate IS_ALPHANUM() module macro while at it.

Work in progress for #2367

(cherry picked from commit b03cb41a3155623ba15bbde582e46f1f55864f70)


  Commit: bcb8ad95ba5ba6d3c49af6e7939c1c62eef33153
      https://github.com/OpenSIPS/opensips/commit/bcb8ad95ba5ba6d3c49af6e7939c1c62eef33153
  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/65feaf1b72f8...bcb8ad95ba5b



More information about the Devel mailing list