Module: kamailio
Branch: master
Commit: 2e341d961e6a9c24c93316459dbfe5c8fbb8db65
URL:
https://github.com/kamailio/kamailio/commit/2e341d961e6a9c24c93316459dbfe5c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-09-05T12:39:41+02:00
dispatcher: docs for ds_dsg_fetch()
---
Modified: src/modules/dispatcher/doc/dispatcher_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/2e341d961e6a9c24c93316459dbfe5c…
Patch:
https://github.com/kamailio/kamailio/commit/2e341d961e6a9c24c93316459dbfe5c…
---
diff --git a/src/modules/dispatcher/doc/dispatcher_admin.xml
b/src/modules/dispatcher/doc/dispatcher_admin.xml
index 011c9af827e..334271038fe 100644
--- a/src/modules/dispatcher/doc/dispatcher_admin.xml
+++ b/src/modules/dispatcher/doc/dispatcher_admin.xml
@@ -1976,6 +1976,28 @@ onreply_route {
...
ds_reload();
...
+</programlisting>
+ </example>
+ </section>
+ <section id="dispatcher.f.ds_dsg_fetch">
+ <title>
+ <function moreinfo="none">ds_dsg_fetch(setid)</function>
+ </title>
+ <para>
+ Sets the destination group id to setid for fetching $dsg(key) attributes.
+ </para>
+ <para>Parameters: <emphasis>setid</emphasis> - integer or variable
+ holding the set id value</para>
+ <para>
+ This function can be used from ANY_ROUTE.
+ </para>
+ <example>
+ <title><function>ds_dsg_fetch()</function> usage</title>
+ <programlisting format="linespecific">
+...
+ ds_dsg_fetch("1");
+ xinfo("set id: 1 - all: $dsg(count); active: $dsg(active)\n");
+...
</programlisting>
</example>
</section>