Module: kamailio
Branch: master
Commit: 65119d916fcd3bf42dff21718e6a4a18c2d5b16e
URL:
https://github.com/kamailio/kamailio/commit/65119d916fcd3bf42dff21718e6a4a1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-06-18T08:34:14+02:00
siputils: docs for uri_param_any(param)
---
Modified: src/modules/siputils/doc/siputils_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/65119d916fcd3bf42dff21718e6a4a1…
Patch:
https://github.com/kamailio/kamailio/commit/65119d916fcd3bf42dff21718e6a4a1…
---
diff --git a/src/modules/siputils/doc/siputils_admin.xml
b/src/modules/siputils/doc/siputils_admin.xml
index 8dd72319c0..67e7d1e6c8 100644
--- a/src/modules/siputils/doc/siputils_admin.xml
+++ b/src/modules/siputils/doc/siputils_admin.xml
@@ -446,6 +446,34 @@ if (uri_param("param1","value1")) {
...
};
...
+</programlisting>
+ </example>
+ </section>
+ <section>
+ <title id="siputils.f.uri_param_any">
+ <function moreinfo="none">uri_param_any(param)</function>
+ </title>
+ <para>
+ Find if Request URI has a given parameter with or without value.
+ </para>
+ <para>Meaning of the parameters is as follows:</para>
+ <itemizedlist>
+ <listitem>
+ <para><emphasis>param</emphasis> - parameter name to look for.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ This function can be used from REQUEST_ROUTE.
+ </para>
+ <example>
+ <title><function>uri_param_any</function> usage</title>
+ <programlisting format="linespecific">
+...
+if (uri_param_any("param1")) {
+ ...
+}
+...
</programlisting>
</example>
</section>