Module: kamailio
Branch: master
Commit: 4f51e4a960fe3df2c83b8c328c78a88818328223
URL: https://github.com/kamailio/kamailio/commit/4f51e4a960fe3df2c83b8c328c78a88…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-05-20T22:01:12+02:00
modules: readme files regenerated - dispatcher ... [skip ci]
---
Modified: src/modules/dispatcher/README
---
Diff: https://github.com/kamailio/kamailio/commit/4f51e4a960fe3df2c83b8c328c78a88…
Patch: https://github.com/kamailio/kamailio/commit/4f51e4a960fe3df2c83b8c328c78a88…
---
diff --git a/src/modules/dispatcher/README b/src/modules/dispatcher/README
index 8621ba903c..3b9701aead 100644
--- a/src/modules/dispatcher/README
+++ b/src/modules/dispatcher/README
@@ -125,6 +125,7 @@ Federico Cabiddu
5.4. dispatcher.ping_active
5.5. dispatcher.add
5.6. dispatcher.remove
+ 5.7. dispatcher.hash
6. Installation and Running
@@ -276,6 +277,7 @@ Chapter 1. Admin Guide
5.4. dispatcher.ping_active
5.5. dispatcher.add
5.6. dispatcher.remove
+ 5.7. dispatcher.hash
6. Installation and Running
@@ -1453,6 +1455,7 @@ onreply_route {
5.4. dispatcher.ping_active
5.5. dispatcher.add
5.6. dispatcher.remove
+ 5.7. dispatcher.hash
5.1. dispatcher.set_state
@@ -1581,6 +1584,35 @@ kamcmd dispatcher.remove 2 sip:127.0.0.1:5080
kamcmd dispatcher.remove 3 sip:127.0.0.1:5075;transport=udp
...
+5.7. dispatcher.hash
+
+ Compute the hash id corresponding to the string parameter values.
+
+ Return the hash id and the corresponding slot, if 'nslots' parameter is
+ not 0.
+
+ Name: dispatcher.hash
+
+ Parameters:
+ * _nslots_: number of slots
+ * _val1_: string value
+ * _val2_: (optional) string value
+
+ It can be useful to find what address in a destination group (setid) is
+ going to be used when hashing a value or a URI. For a URI, the
+ corresponding username and domain have to be provided as _val1_ and
+ _val2_. If the URI has a port different than 5060 (or 5061 for TLS),
+ then the _val2_ has to be 'domain:port'. The _nslots_ has to be the
+ number of addresses in the group (setid). The returned 'slot' value
+ represents the index of the address to be used for routing.
+
+ Example:
+...
+# prototype: rpc dispatcher.hash _nslots_ _val1_ [_val2_]
+ rpc dispatcher.hash 0 alice server.com
+ rpc dispatcher.hash 4 bob server.com
+...
+
6. Installation and Running
6.1. Destination List File
Module: kamailio
Branch: master
Commit: be1e23defc8c56dc0a1398b009019626f5ea0e0f
URL: https://github.com/kamailio/kamailio/commit/be1e23defc8c56dc0a1398b00901962…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-20T21:48:29+02:00
dispatcher: documentation for dispatcher.hash rpc command
---
Modified: src/modules/dispatcher/doc/dispatcher_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/be1e23defc8c56dc0a1398b00901962…
Patch: https://github.com/kamailio/kamailio/commit/be1e23defc8c56dc0a1398b00901962…
---
diff --git a/src/modules/dispatcher/doc/dispatcher_admin.xml b/src/modules/dispatcher/doc/dispatcher_admin.xml
index 30cd6a5ec1..a255b2645d 100644
--- a/src/modules/dispatcher/doc/dispatcher_admin.xml
+++ b/src/modules/dispatcher/doc/dispatcher_admin.xml
@@ -1960,6 +1960,46 @@ DEST: {
&sercmd; dispatcher.remove 2 sip:127.0.0.1:5080
&sercmd; dispatcher.remove 3 sip:127.0.0.1:5075;transport=udp
...
+</programlisting>
+ </section>
+ <section id="dispatcher.r.hash">
+ <title>
+ <function moreinfo="none">dispatcher.hash</function>
+ </title>
+ <para>
+ Compute the hash id corresponding to the string parameter values.
+ </para>
+ <para>
+ Return the hash id and the corresponding slot, if 'nslots' parameter
+ is not 0.
+ </para>
+ <para>
+ Name: <emphasis>dispatcher.hash</emphasis>
+ </para>
+ <para>Parameters:</para>
+ <itemizedlist>
+ <listitem><para>_nslots_: number of slots</para></listitem>
+ <listitem><para>_val1_: string value</para></listitem>
+ <listitem><para>_val2_: (optional) string value</para></listitem>
+ </itemizedlist>
+ <para>
+ It can be useful to find what address in a destination group (setid) is
+ going to be used when hashing a value or a URI. For a URI, the
+ corresponding username and domain have to be provided as _val1_ and
+ _val2_. If the URI has a port different than 5060 (or 5061 for TLS),
+ then the _val2_ has to be 'domain:port'. The _nslots_ has to be the
+ number of addresses in the group (setid). The returned 'slot' value
+ represents the index of the address to be used for routing.
+ </para>
+ <para>
+ Example:
+ </para>
+<programlisting format="linespecific">
+...
+# prototype: &kamctl; rpc dispatcher.hash _nslots_ _val1_ [_val2_]
+&kamctl; rpc dispatcher.hash 0 alice server.com
+&kamctl; rpc dispatcher.hash 4 bob server.com
+...
</programlisting>
</section>
- Prevent sending of multiple contacts in 200OK reply
for UE Re-Registration. Now S-CSCF replies with the
exact contact for Re-Registration.
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] 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 -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2317
-- Commit Summary --
* ims_registrar_scscf: fix multiple contacts in 200OK
-- File Changes --
M src/modules/ims_registrar_scscf/reply.c (152)
M src/modules/ims_registrar_scscf/reply.h (2)
M src/modules/ims_registrar_scscf/save.c (10)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2317.patchhttps://github.com/kamailio/kamailio/pull/2317.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/2317