[OpenSIPS-Devel] [OpenSIPS/opensips] 22a3b3: usrloc: Fix a replicated AoR label matching bug

Liviu Chircu noreply at github.com
Wed Sep 11 12:18:41 EDT 2019

  Branch: refs/heads/3.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 22a3b3394bf1b4434c4bc97f6d812021e8c086d6
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2019-09-11 (Wed, 11 Sep 2019)

  Changed paths:
    M bin_interface.h
    M modules/dialog/dlg_replication.h
    M modules/usrloc/dlist.h
    M modules/usrloc/udomain.c
    M modules/usrloc/ul_cluster.c
    M modules/usrloc/ul_cluster.h

  Log Message:
  usrloc: Fix a replicated AoR label matching bug

This patch makes it so the AoR label gets included in the "AoR created"
replication packets and mirrored in the receiver instance.  This
prevents a series of bugs where the usrloc API fails to match a contact
by its contact ID, e.g.:

    * nathelper being unable to delete dead TCP/TLS contacts after a
      restart + usrloc cluster sync

    * mid-registrar (mode 1) being unable to look up a contact by
      contact ID after a restart + usrloc cluster sync

Reported by @vasilevalex

Fixes #1492

(cherry picked from commit da1dac8f41b199dae0028546bd1e547e8ddef922)

More information about the Devel mailing list