[OpenSIPS-Devel] [OpenSIPS/opensips] cc2f4a: dispatcher: Fix a bug with the 'default' partition

Liviu Chircu noreply at github.com
Wed Jul 8 07:53:45 EST 2020


  Branch: refs/heads/bugfix/db-default-url-inheritance
  Home:   https://github.com/OpenSIPS/opensips
  Commit: cc2f4a8c49402f99502a58940d2fbb51daed6e47
      https://github.com/OpenSIPS/opensips/commit/cc2f4a8c49402f99502a58940d2fbb51daed6e47
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-07-07 (Tue, 07 Jul 2020)

  Changed paths:
    M modules/dispatcher/dispatcher.c

  Log Message:
  -----------
  dispatcher: Fix a bug with the 'default' partition

This commit allows the "default" partition to be populated just like the
other ones:

modparam("dispatcher", "partition",
    "default:
            db_url = mysql://opensips:opensipsrw@127.0.0.1/opensips_3_2;
            table_name = v1_dispatcher")


  Commit: 198687e17d13a06b0868676252292643c6d549c4
      https://github.com/OpenSIPS/opensips/commit/198687e17d13a06b0868676252292643c6d549c4
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-07-07 (Tue, 07 Jul 2020)

  Changed paths:
    M modules/dispatcher/dispatcher.c

  Log Message:
  -----------
  dispatcher: Add useful debug log


  Commit: b041dc0eb830debfec0fb6b7bf5f2138159a98d3
      https://github.com/OpenSIPS/opensips/commit/b041dc0eb830debfec0fb6b7bf5f2138159a98d3
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-07-08 (Wed, 08 Jul 2020)

  Changed paths:
    M modules/dispatcher/dispatch.c
    M modules/dispatcher/dispatcher.c

  Log Message:
  -----------
  dispatcher: Integrate with 'db_default_url'

    * both 'db_url' and a partition DB URL will inherit their starting
      value from the 'db_default_url' global
    * add the option to point the default partition to a known one, in
      order to avoid unwanted loading of the default table.  Example:

	modparam("dispatcher", "partition", "default: trunks")
	modparam("dispatcher", "partition", "trunks:  db_url = ...")


Compare: https://github.com/OpenSIPS/opensips/compare/addf24a804eb...b041dc0eb830



More information about the Devel mailing list