[OpenSIPS-Devel] [OpenSIPS/opensips] 135431: dst_blacklists: enhance to a more dynamic interface
Răzvan Crainea
noreply at github.com
Fri Oct 28 13:59:27 UTC 2022
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 135431e8cba3b98d4c0724453f9b04a5bb445560
https://github.com/OpenSIPS/opensips/commit/135431e8cba3b98d4c0724453f9b04a5bb445560
Author: Razvan Crainea <razvan at opensips.org>
Date: 2022-10-28 (Fri, 28 Oct 2022)
Changed paths:
M blacklists.c
M blacklists.h
M cfg.y
M modules/dispatcher/ds_bl.c
M modules/drouting/dr_bl.c
M modules/load_balancer/lb_bl.c
M resolve.c
Log Message:
-----------
dst_blacklists: enhance to a more dynamic interface
* easier definition in code (can miss default values)
* rework locking using rw_locking
* add possibility to print rules from a single list
* enhance `list_blacklists` MI output
* add `check_blacklists` MI command - prints all lists that match
* add `check_blacklist` MI command - prints first rule that matches
* add `add_blacklist_rule` MI command - adds a new rule to a list
* add `del_blacklist_rule` MI command - removes a rule from a list
Commit: 9eb654e20552afcef04ea74e6a3407b1b4862ec1
https://github.com/OpenSIPS/opensips/commit/9eb654e20552afcef04ea74e6a3407b1b4862ec1
Author: Razvan Crainea <razvan at opensips.org>
Date: 2022-10-28 (Fri, 28 Oct 2022)
Changed paths:
M cfg.lex
M cfg.y
Log Message:
-----------
dst_blacklists: allow modifying flags when defining a list
Commit: 10101fa160782b2f59e2808e907ecf31f0c84250
https://github.com/OpenSIPS/opensips/commit/10101fa160782b2f59e2808e907ecf31f0c84250
Author: Razvan Crainea <razvan at opensips.org>
Date: 2022-10-28 (Fri, 28 Oct 2022)
Changed paths:
M blacklists.c
M blacklists.h
M core_cmds.c
Log Message:
-----------
dst_blacklists: provide more script functions
* add `add_blacklist_rule` function that adds a rule to a list
* add `del_blacklist_rule` function that removes a rule from a list
* add `check_blacklist` function that checks whether a pair matches a
rule from a list, or from all the active lists
Commit: e6d9079680a7f7ec3105a50aaf3f84716d2e640c
https://github.com/OpenSIPS/opensips/commit/e6d9079680a7f7ec3105a50aaf3f84716d2e640c
Author: Razvan Crainea <razvan at opensips.org>
Date: 2022-10-28 (Fri, 28 Oct 2022)
Changed paths:
M blacklists.c
Log Message:
-----------
dst_blacklists: rework expiry mechanism
allow a list to have both non-expiry and expiry rules
Compare: https://github.com/OpenSIPS/opensips/compare/d77a9c52c2be...e6d9079680a7
More information about the Devel
mailing list