[OpenSIPS-Devel] [OpenSIPS/opensips] fbfd80: usrloc: Organize mod_init() code

Liviu Chircu noreply at github.com
Tue Mar 31 06:26:53 EST 2020


  Branch: refs/heads/feature/rfc-8599-sip-pn
  Home:   https://github.com/OpenSIPS/opensips
  Commit: fbfd800cc5ac73dccbcfce300875d132ca1cf4c5
      https://github.com/OpenSIPS/opensips/commit/fbfd800cc5ac73dccbcfce300875d132ca1cf4c5
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-03-26 (Thu, 26 Mar 2020)

  Changed paths:
    M modules/usrloc/ul_callback.c
    M modules/usrloc/ul_callback.h
    M modules/usrloc/ul_mod.c
    M modules/usrloc/urecord.c
    M modules/usrloc/usrloc.c

  Log Message:
  -----------
  usrloc: Organize mod_init() code

Also remove the "init_flag" concept -- even if a module binds the usrloc
API functions before usrloc is initialized, this is completely fine!


  Commit: 82cad9318cb5d7cf4c9b46e18cd9b295ed0de64e
      https://github.com/OpenSIPS/opensips/commit/82cad9318cb5d7cf4c9b46e18cd9b295ed0de64e
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-03-26 (Thu, 26 Mar 2020)

  Changed paths:
    M modules/usrloc/doc/usrloc_admin.xml
    M modules/usrloc/ul_mod.c
    M modules/usrloc/ul_mod.h
    M modules/usrloc/urecord.h

  Log Message:
  -----------
  usrloc: Add modparams for RFC 8599 - SIP Push Notifications


  Commit: b872a95b6b30542c5effae76bf85fd39f6cd8b6b
      https://github.com/OpenSIPS/opensips/commit/b872a95b6b30542c5effae76bf85fd39f6cd8b6b
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-03-27 (Fri, 27 Mar 2020)

  Changed paths:
    M modules/usrloc/dlist.c
    M modules/usrloc/doc/usrloc_admin.xml
    M modules/usrloc/ucontact.c
    M modules/usrloc/ucontact.h
    M modules/usrloc/udomain.c
    M modules/usrloc/ul_mod.c
    M modules/usrloc/ul_mod.h
    A modules/usrloc/ul_pn.c
    A modules/usrloc/ul_pn.h
    M modules/usrloc/urecord.c
    M ut.h

  Log Message:
  -----------
  usrloc: Add flexibile RFC 8599 contact matching

Once "pn_enable" is set to true, contacts are matched using
pn-provider + pn-prid + pn-param by default.  But this can be easily
customized, for example:

    * pn-param can be dropped if it's irrelevant for a provider
    * new (custom) parameters can be included in the matching process


  Commit: c012b603b561f04d9e08162bc2ab8f202ff54b2d
      https://github.com/OpenSIPS/opensips/commit/c012b603b561f04d9e08162bc2ab8f202ff54b2d
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-03-27 (Fri, 27 Mar 2020)

  Changed paths:
    M modules/usrloc/doc/usrloc_admin.xml

  Log Message:
  -----------
  usrloc: Document the "pn_pnsreg_interval" modparam


  Commit: 32aa41abb3e35ec9cdd41da2f1c7ad28b82f7685
      https://github.com/OpenSIPS/opensips/commit/32aa41abb3e35ec9cdd41da2f1c7ad28b82f7685
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-03-27 (Fri, 27 Mar 2020)

  Changed paths:
    M lib/csv.c
    M lib/csv.h
    M lib/url.c
    M modules/freeswitch/fs_api.c
    M modules/freeswitch/fs_api.h
    M modules/freeswitch_scripting/fss_db.c
    M modules/freeswitch_scripting/fss_evs.c
    M modules/freeswitch_scripting/fss_evs.h
    M modules/freeswitch_scripting/fss_mod.c
    M modules/nathelper/nathelper.c
    M modules/tls_mgm/tls_domain.c
    M modules/tls_mgm/tls_domain.h
    M modules/tls_mgm/tls_helper.h
    M modules/tls_mgm/tls_mgm.c
    M modules/tm/mi.c
    M str_list.h

  Log Message:
  -----------
  str_list.h: Make "str_list" a typedef, not a struct

This way, we gain consistency, as we now have the "str" and "str_list"
typedefs.


  Commit: 6d85cfdb3cc75878c879e55682bb3b1a0cf3694d
      https://github.com/OpenSIPS/opensips/commit/6d85cfdb3cc75878c879e55682bb3b1a0cf3694d
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-03-31 (Tue, 31 Mar 2020)

  Changed paths:
    A lib/reg/pn.c
    A lib/reg/pn.h
    M lib/reg/save_flags.c
    M lib/reg/save_flags.h
    M modules/mid_registrar/doc/mid_registrar.xml
    M modules/mid_registrar/doc/mid_registrar_admin.xml
    M modules/registrar/Makefile
    A modules/registrar/doc/pn_modparams.xml
    M modules/registrar/doc/registrar.xml
    M modules/registrar/doc/registrar_admin.xml
    M modules/registrar/reg_mod.c
    M modules/registrar/save.c
    M modules/usrloc/doc/usrloc_admin.xml
    M modules/usrloc/ucontact.c
    M modules/usrloc/ucontact.h
    M modules/usrloc/ul_cluster.c
    M modules/usrloc/ul_mod.c
    R modules/usrloc/ul_pn.c
    R modules/usrloc/ul_pn.h
    M modules/usrloc/urecord.c
    M modules/usrloc/urecord.h
    M parser/parse_uri.c

  Log Message:
  -----------
  SIP PN Support: Refactor usrloc code, move to /lib/reg

Most of the PN support is better placed in the registrar module code,
since that's where we also have access to the SIP message in order to
make changes to it (e.g. append the Feature-Caps header field)


Compare: https://github.com/OpenSIPS/opensips/compare/fbfd800cc5ac%5E...6d85cfdb3cc7



More information about the Devel mailing list