Module: kamailio
Branch: master
Commit: 8df69ebca23bde071b08b0ed5b8cd34b2d28446b
URL: https://github.com/kamailio/kamailio/commit/8df69ebca23bde071b08b0ed5b8cd34…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-06-25T13:00:08+02:00
pv: docs for xavp_xparams_explode(...)
---
Modified: src/modules/pv/doc/pv_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/8df69ebca23bde071b08b0ed5b8cd34…
Patch: https://github.com/kamailio/kamailio/commit/8df69ebca23bde071b08b0ed5b8cd34…
---
diff --git a/src/modules/pv/doc/pv_admin.xml b/src/modules/pv/doc/pv_admin.xml
index 1f91e633a00..6a06bb717de 100644
--- a/src/modules/pv/doc/pv_admin.xml
+++ b/src/modules/pv/doc/pv_admin.xml
@@ -387,6 +387,39 @@ xavp_params_explode("a=b;c=d;e=d", "x");
# $xavp(x=>a) = "b";
# $xavp(x=>c) = "d";
# $xavp(x=>e) = "f";
+...
+ </programlisting>
+ </example>
+ </section>
+ <section id="pv.f.xavp_xparams_explode">
+ <title>
+ <function moreinfo="none">xavp_xparams_explode(sparams, sep, xname)</function>
+ </title>
+ <para>
+ Convert a parameters string in xavp attributes.
+ </para>
+ <para>
+ The first parameter has to be a string in similar format of SIP header
+ parameters (name1=value1;...;nameN=valueN), but the separator can
+ be other character than ';'. The second parameter is the separator
+ for the parameters list. The third parameter is the name of the
+ root xavp to hold the pairs (nameX,valueX).
+ </para>
+ <para>
+ The values are stored as string type.
+ </para>
+ <para>
+ Function can be used from ANY ROUTE.
+ </para>
+ <example>
+ <title><function>xavp_xparams_explode</function> usage</title>
+ <programlisting format="linespecific">
+...
+xavp_xparams_explode("a=b,c=d,e=d", ",", "x");
+# results in:
+# $xavp(x=>a) = "b";
+# $xavp(x=>c) = "d";
+# $xavp(x=>e) = "f";
...
</programlisting>
</example>
@@ -1132,4 +1165,3 @@ $ &kamcmd; pv.shvGet debug
</section>
</chapter>
-
I just study and work with Kamailio . I have a issue about listening port . Please help me.
I install kamailio in centos 9 stream with version 5.6.5 when start call sometime, my system established connect from google dns (8.8.8.8:53) to kamailio with random port and it do call fail (not reply when receive invite ). please help me and i attatch screenshot
![kamailio issue](https://github.com/kamailio/kamailio/assets/154739080/d94aae72-e420-…
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3890
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3890(a)github.com>