[OpenSIPS-Devel] [OpenSIPS/opensips] 8cb604: permissions: Integrate with 'db_default_url'
Liviu Chircu
noreply at github.com
Wed Nov 4 15:37:37 EST 2020
Branch: refs/heads/3.0
Home: https://github.com/OpenSIPS/opensips
Commit: 8cb6048949cc0440d87b205bbaed88fa16d1fc93
https://github.com/OpenSIPS/opensips/commit/8cb6048949cc0440d87b205bbaed88fa16d1fc93
Author: Liviu Chircu <liviu at opensips.org>
Date: 2020-11-04 (Wed, 04 Nov 2020)
Changed paths:
M modules/permissions/address.c
M modules/permissions/address.h
M modules/permissions/partitions.c
M modules/permissions/partitions.h
M modules/permissions/permissions.c
M modules/permissions/permissions.h
Log Message:
-----------
permissions: Integrate with 'db_default_url'
* DB partitions now inherit their DB URL (if not given explicitly)
from 'db_url' -> 'db_default_url'
* the above is similar for the 'table_name' property
(inherit from the 'address_table' modparam)
* rewrite the 'partitions' parser: no more coding style limitations
* backwards-compatible: the 'db_url' is still mandatory if you are
not specifying a partition definition! This is due to the fact
that the module has a non-DB based usage mode
Part of a series of patches for #2117
(cherry picked from commit bb57cc1c375b9325138154eb415cebc2fa971ec0)
(cherry picked from commit e663ee6a905f64c1d26954fa896bbc1461001163)
Commit: e680041806719cd0773c3e0c7dcfa977f8b262c7
https://github.com/OpenSIPS/opensips/commit/e680041806719cd0773c3e0c7dcfa977f8b262c7
Author: Liviu Chircu <liviu at opensips.org>
Date: 2020-11-04 (Wed, 04 Nov 2020)
Changed paths:
M modules/dialplan/dialplan.c
Log Message:
-----------
dialplan MI 'dp_show_partition': Indicate client-side errors
(cherry picked from commit 657a8b53f07120e3233059a79f05fa7694ebbc5d)
(cherry picked from commit 9d0145df204b6fe8fc88ccd1f4191fd56ccbdf88)
Commit: 000df2ba61e91142ce3c8f09562e5867519a94b5
https://github.com/OpenSIPS/opensips/commit/000df2ba61e91142ce3c8f09562e5867519a94b5
Author: Liviu Chircu <liviu at opensips.org>
Date: 2020-11-04 (Wed, 04 Nov 2020)
Changed paths:
M modules/dialplan/dialplan.c
M modules/dialplan/dialplan.h
M modules/dialplan/dp_db.c
M modules/dialplan/dp_db.h
M str.h
Log Message:
-----------
dialplan: Integrate with 'db_default_url'
* DB partitions now inherit their DB URL (if not given explicitly)
from 'db_url' -> 'db_default_url'
* the above is similar for the 'table_name' property
(inherit from the 'address_table' modparam)
* rewrite the 'partitions' parser: no more coding style limitations
* backwards-compatible: at least one partition must be specified
(even through simply defining a global 'db_default_url') before
the module can start
Part of a series of patches for #2117
(cherry picked from commit 2e8164368b31da9292f08623eac6934ef2057e22)
(cherry picked from commit f061ad31d39538de59da05e8a98018cc42c4c336)
Commit: dbd3e9eace04e0b54a16bfff4b9c78d9a5c51732
https://github.com/OpenSIPS/opensips/commit/dbd3e9eace04e0b54a16bfff4b9c78d9a5c51732
Author: Liviu Chircu <liviu at opensips.org>
Date: 2020-11-04 (Wed, 04 Nov 2020)
Changed paths:
M modules/dialplan/doc/dialplan_admin.xml
Log Message:
-----------
dialplan docs: Update partition, db_url and table_name
(cherry picked from commit 6443ad5829c15f8ae7dad8bb9f0e4f418702b1ad)
(cherry picked from commit 5185859a5776b6cb6ed49938eeba80c2017c5087)
Commit: 8ad9847f0b010b5344c1d9fdf4b4f65f347efae8
https://github.com/OpenSIPS/opensips/commit/8ad9847f0b010b5344c1d9fdf4b4f65f347efae8
Author: Liviu Chircu <liviu at opensips.org>
Date: 2020-11-04 (Wed, 04 Nov 2020)
Changed paths:
M modules/dialplan/doc/dialplan_admin.xml
M modules/permissions/doc/permissions_admin.xml
Log Message:
-----------
permissions docs: Update partition, db_url and address_table
(cherry picked from commit 180674b833ef9e82cb3f97105add2ada6843ddc1)
(cherry picked from commit 67c06628eae20cca4fc3e5509435b775a425d17e)
Commit: 1f14390a4b7147a3ba7434b5dc19c6aa98184a44
https://github.com/OpenSIPS/opensips/commit/1f14390a4b7147a3ba7434b5dc19c6aa98184a44
Author: Liviu Chircu <liviu at opensips.org>
Date: 2020-11-04 (Wed, 04 Nov 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")
(cherry picked from commit cc2f4a8c49402f99502a58940d2fbb51daed6e47)
(cherry picked from commit 419f0119400229ac54df2b8ce1943d88c31c4b5a)
Commit: 5c154e2cec728014993dd980309225b47e6af514
https://github.com/OpenSIPS/opensips/commit/5c154e2cec728014993dd980309225b47e6af514
Author: Liviu Chircu <liviu at opensips.org>
Date: 2020-11-04 (Wed, 04 Nov 2020)
Changed paths:
M modules/dispatcher/dispatcher.c
Log Message:
-----------
dispatcher: Add useful debug log
(cherry picked from commit 198687e17d13a06b0868676252292643c6d549c4)
(cherry picked from commit 654f1e9ba552ab96e1b3b31b3199f5464b41bd9d)
Commit: c0b2a0ae4117e395e1c4724b7b91270d83a0d269
https://github.com/OpenSIPS/opensips/commit/c0b2a0ae4117e395e1c4724b7b91270d83a0d269
Author: Liviu Chircu <liviu at opensips.org>
Date: 2020-11-04 (Wed, 04 Nov 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 = ...")
(cherry picked from commit c7d668bad5b2b41a9c9065e1539914f0629ccf64)
(cherry picked from commit ba7a4e33a6e2141aa7300f4e5db268c39f5e9520)
Commit: 02df9b8fdb2bdb2521481b9d1b466466689c38e1
https://github.com/OpenSIPS/opensips/commit/02df9b8fdb2bdb2521481b9d1b466466689c38e1
Author: Liviu Chircu <liviu at opensips.org>
Date: 2020-11-04 (Wed, 04 Nov 2020)
Changed paths:
M modules/dispatcher/doc/dispatcher_admin.xml
Log Message:
-----------
dispatcher docs: Update partition, db_url and table_name
(cherry picked from commit 89a618be1f005d1bc80d528bc41de73fff24533a)
(cherry picked from commit dd0245e98087e07fb2182ae4e21f06ce034c9b4b)
Commit: 03bf0ae1b0ce1931377ae131235413bbc5f01df1
https://github.com/OpenSIPS/opensips/commit/03bf0ae1b0ce1931377ae131235413bbc5f01df1
Author: Liviu Chircu <liviu at opensips.org>
Date: 2020-11-04 (Wed, 04 Nov 2020)
Changed paths:
M modules/dialplan/dialplan.c
M modules/dialplan/doc/dialplan_admin.xml
M modules/dialplan/dp_db.c
Log Message:
-----------
dialplan: Allow re-pointing the default partition
This is useful in situations where script writers do not intend to cache
the default 'dialplan' table, rather only the named partitions.
Example syntax:
db_default_url = "mysql://opensips:opensipsrw@127.0.0.1/opensips"
...
modparam("dialplan", "partition", "
pstn:
table_name = dialplan_pstn")
modparam("dialplan", "partition", "default: pstn")
(cherry picked from commit efee3438773a83c1a05edc8b05ba45f53a83c5a6)
(cherry picked from commit 4abd2617f970b2505534ee8dfd68fdd11ddcc716)
Commit: 982b658570a6e7b59670e7141df929ec30df62fe
https://github.com/OpenSIPS/opensips/commit/982b658570a6e7b59670e7141df929ec30df62fe
Author: Liviu Chircu <liviu at opensips.org>
Date: 2020-11-04 (Wed, 04 Nov 2020)
Changed paths:
M modules/proto_smpp/proto_smpp.c
Log Message:
-----------
proto_smpp: Inherit DB URL from 'db_default_url'
(cherry picked from commit 24f9e7b294903bdb439a4e681ee0950d1d0837f6)
(cherry picked from commit f94e1179fce27ef1ce270f921225e79cd9e8014b)
Commit: 914d38afed18e7dfcd360458fab7cf9e76723b6d
https://github.com/OpenSIPS/opensips/commit/914d38afed18e7dfcd360458fab7cf9e76723b6d
Author: Liviu Chircu <liviu at opensips.org>
Date: 2020-11-04 (Wed, 04 Nov 2020)
Changed paths:
M modules/proto_smpp/proto_smpp.c
Log Message:
-----------
proto_smpp: Fix crash on startup
(cherry picked from commit 990d18f79735f547ed36da58236dea9c24221493)
(cherry picked from commit 6410440011d9be8de9d42d8e4d82c852c9271ac0)
Commit: 0684e98376a841b6b7351b23e23de1d9a804ba41
https://github.com/OpenSIPS/opensips/commit/0684e98376a841b6b7351b23e23de1d9a804ba41
Author: Liviu Chircu <liviu at opensips.org>
Date: 2020-11-04 (Wed, 04 Nov 2020)
Changed paths:
M modules/b2b_entities/b2b_entities.c
M modules/b2b_logic/b2b_logic.c
Log Message:
-----------
b2b entities/logic: Inherit `db_default_url` if possible
If there is still no DB URL, simply start without DB support (just as
before)
(cherry picked from commit ff7b5849751d11537d989afe2b17ef35ebd2a133)
(cherry picked from commit a54424be0c0ff2cd42adf6a0d748ac2a866dc319)
Compare: https://github.com/OpenSIPS/opensips/compare/d004a6c5e35b...0684e98376a8
More information about the Devel
mailing list