[OpenSIPS-Devel] [OpenSIPS/opensips] cc06f7: mid_registrar: Skip usrloc callbacks for foreign d...

Liviu Chircu noreply at github.com
Tue Jan 25 12:08:32 UTC 2022


  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: cc06f74dd00112970ac0a35bbc7eb1b924b882fd
      https://github.com/OpenSIPS/opensips/commit/cc06f74dd00112970ac0a35bbc7eb1b924b882fd
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2022-01-25 (Tue, 25 Jan 2022)

  Changed paths:
    M modules/mid_registrar/mid_registrar.c
    M modules/mid_registrar/mid_registrar.h
    M modules/mid_registrar/ulcb.c

  Log Message:
  -----------
  mid_registrar: Skip usrloc callbacks for foreign domains

In case mid_registrar is used alongside registrar using separate domains
(location tables), then mid_registrar must not process any callbacks for
Contacts/AORs which it is not responsible for.

A similar logic should be added for registrar as well, however it
currently does not subscribe to any usrloc callbacks.

Fixes #2716

(cherry picked from commit 30cdbd674eb6a974088e531a8206659c494f5868)

mid_registrar: Improve previous commit

Check the domain list for duplicates before appending a new one.

(cherry picked from commit c5d884e60d1a708fd49540b622c66cfb6eb170b1)
(cherry picked from commit 4541680d32c52dd77e4ab8a802c19f95c3cd0ba1)





More information about the Devel mailing list