#### Type Of Change
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
Adds a new option to RPC command `dispatcher.set_state` to bulk update all destinations as part of a dispatcher set. The way we use dispatcher sets this comes in handy in a few cases.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1399
-- Commit Summary --
* dispatcher: add method to reinit state for all destinations in group
* dispatcher: allow 'all' to update all destinations in group via RPC
-- File Changes --
M src/modules/dispatcher/dispatch.c (33)
M src/modules/dispatcher/dispatch.h (1)
M src/modules/dispatcher/dispatcher.c (10)
M src/modules/dispatcher/doc/dispatcher_admin.xml (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1399.patchhttps://github.com/kamailio/kamailio/pull/1399.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1399
Module: kamailio
Branch: master
Commit: 0997892bc9fe93fbd78d2ce239e71c15ba6a7e9f
URL: https://github.com/kamailio/kamailio/commit/0997892bc9fe93fbd78d2ce239e71c1…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2018-01-15T09:02:09+01:00
modules: readme files regenerated - dispatcher ... [skip ci]
---
Modified: src/modules/dispatcher/README
---
Diff: https://github.com/kamailio/kamailio/commit/0997892bc9fe93fbd78d2ce239e71c1…
Patch: https://github.com/kamailio/kamailio/commit/0997892bc9fe93fbd78d2ce239e71c1…
---
diff --git a/src/modules/dispatcher/README b/src/modules/dispatcher/README
index faef52547c..058aa29379 100644
--- a/src/modules/dispatcher/README
+++ b/src/modules/dispatcher/README
@@ -1238,12 +1238,14 @@ onreply_route {
The states “a”, “i” or “t” can be followed by “p” to set probing
mode (e.g. 'ap', 'ip' or 'tp').
* _group_: destination group id
- * _address_: address of the destination in the _group_
+ * _address_: address of the destination in the _group_ or 'all' to
+ update all destinations in the group
Example:
...
# prototype: kamcmd dispatcher.set_state _state_ _group_ _address_
kamcmd dispatcher.set_state ip 2 sip:127.0.0.1:5080
+kamcmd dispatcher.set_state ip 3 all
...
5.2. dispatcher.list