[OpenSIPS-Devel] [OpenSIPS/opensips] 4ec643: registrar: Clean up the lookup() code

Liviu Chircu liviu at opensips.org
Tue Apr 17 09:22:26 EDT 2018


  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 4ec643935794be5645af62678c3ef5c3549d2710
      https://github.com/OpenSIPS/opensips/commit/4ec643935794be5645af62678c3ef5c3549d2710
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-04-17 (Tue, 17 Apr 2018)

  Changed paths:
    M modules/registrar/lookup.c
    M modules/registrar/reg_mod.c
    M modules/usrloc/ucontact.c
    M modules/usrloc/udomain.c
    M modules/usrloc/urecord.c
    M modules/usrloc/urecord.h

  Log Message:
  -----------
  registrar: Clean up the lookup() code

This patch also slightly refactors the "FL_EXTRA_HOP" contacts of
usrloc (specific to federation clustering), such that they belong to a separate
field (urecord_t.remote_aors) rather than being simply appended to
urecord_t.contacts.

(cherry picked from commit 4c07fe9bacd20a4bdfd16b0bd4bfe0b491932d0d)


  Commit: 6610e6b81ff1bcd4b3b7680ad262a1606ef6bb27
      https://github.com/OpenSIPS/opensips/commit/6610e6b81ff1bcd4b3b7680ad262a1606ef6bb27
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-04-17 (Tue, 17 Apr 2018)

  Changed paths:
    M modules/clusterer/api.h
    M modules/clusterer/clusterer.c
    M modules/clusterer/clusterer.h
    M modules/clusterer/node_info.c
    M modules/clusterer/node_info.h
    M modules/clusterer/sync.c
    M modules/dialog/dialog.c
    M modules/drouting/drouting.c
    M modules/load_balancer/load_balancer.c
    M modules/presence/clustering.c
    M modules/ratelimit/ratelimit_helper.c
    M modules/tm/cluster.c
    M modules/usrloc/ul_mod.c

  Log Message:
  -----------
  clusterer: Add sync source filtering

In some cases, we only want to sync from specific donor nodes. The federated
user location topology is an example where this feature is useful.

(cherry picked from commit fb5d55aae885624cbb473bce580781443415df44)


  Commit: adb75c2aa5fe82bc7e3bae5c0bf09f6e75482f69
      https://github.com/OpenSIPS/opensips/commit/adb75c2aa5fe82bc7e3bae5c0bf09f6e75482f69
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-04-17 (Tue, 17 Apr 2018)

  Changed paths:
    M modules/clusterer/clusterer.c

  Log Message:
  -----------
  clusterer: Refactor broadcast_msg_having()

Merge common code into a single function.

(cherry picked from commit 8a17634f861ae3e71859e2195a85ba12207bacee)


  Commit: 8addad5ac2666f2ecd0a81d91096801d02a1e557
      https://github.com/OpenSIPS/opensips/commit/8addad5ac2666f2ecd0a81d91096801d02a1e557
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-04-17 (Tue, 17 Apr 2018)

  Changed paths:
    M modules/usrloc/udomain.c
    M modules/usrloc/ul_mod.c
    M modules/usrloc/ureplication.c

  Log Message:
  -----------
  usrloc federation: Replicate data only locally

(cherry picked from commit 62f15baba76ac366bf3fbc73b0133d3670486058)


  Commit: 524603d303781951109df2d6dbb02e8478f5904f
      https://github.com/OpenSIPS/opensips/commit/524603d303781951109df2d6dbb02e8478f5904f
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-04-17 (Tue, 17 Apr 2018)

  Changed paths:
    M modules/registrar/lookup.c
    M modules/usrloc/udomain.c
    M modules/usrloc/udomain.h
    M modules/usrloc/usrloc.c
    M modules/usrloc/usrloc.h

  Log Message:
  -----------
  usrloc federation: Fix global urecord lookups

Only fetch AoR metadata (NoSQL lookup) on a specific, new API call
(api.get_global_urecord(), rather than performing it on every
api.get_urecord() call.

(cherry picked from commit f2a682a471e18e9ad4eaa02fd3888bdd51f8da6a)


  Commit: 1cb61df1ba983655e8548b85edcfa93c7ebfe5c2
      https://github.com/OpenSIPS/opensips/commit/1cb61df1ba983655e8548b85edcfa93c7ebfe5c2
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-04-17 (Tue, 17 Apr 2018)

  Changed paths:
    M ip_addr.h
    M modules/presence/utils_func.h
    M modules/usrloc/ucontact.h
    M msg_translator.h
    M socket_info.h

  Log Message:
  -----------
  Move struct socket_info in socket_info.h

(cherry picked from commit b723bd9e2ad1de2f1dc24c329da7db1216ddacd1)


  Commit: fc63e57b69bfc2f2ed3ec29690f97cd62f1dd483
      https://github.com/OpenSIPS/opensips/commit/fc63e57b69bfc2f2ed3ec29690f97cd62f1dd483
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-04-17 (Tue, 17 Apr 2018)

  Changed paths:
    M lib/reg/config.h
    M modules/registrar/README
    M modules/registrar/doc/registrar_admin.xml
    M modules/registrar/lookup.c

  Log Message:
  -----------
  registrar lookup(): Refactor the "l" flag

In federation clustering, it makes more sense to do an explicit global ("g")
AoR lookup, rather doing it implicitly and optionally cancelling it with the
former "l" flag.

(cherry picked from commit 2f3d7f8a9e1a6865b5acb8280bd0db686335ea4c)


  Commit: 14ee714812ba6cefa473fded04d4485e85c924d5
      https://github.com/OpenSIPS/opensips/commit/14ee714812ba6cefa473fded04d4485e85c924d5
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-04-17 (Tue, 17 Apr 2018)

  Changed paths:
    M modules/registrar/lookup.c

  Log Message:
  -----------
  registrar: Fix a lookup() bug

(cherry picked from commit 479b3850c290afaa1de8a6066112403febfc5a82)


  Commit: 8c78280cf344ea631060429f15ee18cbc1e43dc3
      https://github.com/OpenSIPS/opensips/commit/8c78280cf344ea631060429f15ee18cbc1e43dc3
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-04-17 (Tue, 17 Apr 2018)

  Changed paths:
    M modules/usrloc/udomain.c
    M modules/usrloc/udomain.h
    M modules/usrloc/urecord.c

  Log Message:
  -----------
  usrloc federation: Fix metadata cleanups

(cherry picked from commit 763d4405cd98f9f63d012c67434909d399c09718)


Compare: https://github.com/OpenSIPS/opensips/compare/f38730383a39...8c78280cf344


More information about the Devel mailing list