Module: kamailio
Branch: master
Commit: d2c444c58b8f6f084f27e0129dc0cf02dfb6f7ba
URL:
https://github.com/kamailio/kamailio/commit/d2c444c58b8f6f084f27e0129dc0cf0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-10-14T16:13:19+02:00
pv: docs - reflect use of xavp fields for tokens by xavp_slist_explode()
---
Modified: src/modules/pv/doc/pv_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/d2c444c58b8f6f084f27e0129dc0cf0…
Patch:
https://github.com/kamailio/kamailio/commit/d2c444c58b8f6f084f27e0129dc0cf0…
---
diff --git a/src/modules/pv/doc/pv_admin.xml b/src/modules/pv/doc/pv_admin.xml
index 3967b38234..61df878c3a 100644
--- a/src/modules/pv/doc/pv_admin.xml
+++ b/src/modules/pv/doc/pv_admin.xml
@@ -438,7 +438,8 @@ xavp_params_implode("x", "$var(out)");
the white spaces around the value.
</para>
<para>
- The fourth parameter is the name of the xavp to hold the tokens.
+ The fourth parameter is the name of the root xavp to hold the tokens
+ in fields named 'v' and indexed from 0.
</para>
<para>
The values are stored as string type.
@@ -452,10 +453,10 @@ xavp_params_implode("x", "$var(out)");
...
xavp_slist_explode("a=b; c=d;", "=;", "t", "x");
# results in:
-# $xavp(x[0]) = "a";
-# $xavp(x[1]) = "b";
-# $xavp(x[2]) = "c";
-# $xavp(x[3]) = "d";
+# $xavp(x[0]=>v[0]) = "a";
+# $xavp(x[0]=>v[1]) = "b";
+# $xavp(x[0]=>v[2]) = "c";
+# $xavp(x[0]=>v[3]) = "d";
...
</programlisting>
</example>