Module: kamailio Branch: master Commit: a690d0a44f62acb8c5b02c017f11c510747f9c13 URL: https://github.com/kamailio/kamailio/commit/a690d0a44f62acb8c5b02c017f11c510...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2019-04-16T09:16:08+02:00
pv: docs for xavp_set_child_ival() and xavp_set_child_sval()
---
Modified: src/modules/pv/doc/pv_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/a690d0a44f62acb8c5b02c017f11c510... Patch: https://github.com/kamailio/kamailio/commit/a690d0a44f62acb8c5b02c017f11c510...
---
diff --git a/src/modules/pv/doc/pv_admin.xml b/src/modules/pv/doc/pv_admin.xml index f5faa0ab11..98aded0063 100644 --- a/src/modules/pv/doc/pv_admin.xml +++ b/src/modules/pv/doc/pv_admin.xml @@ -323,6 +323,58 @@ $xavp(x[0]=>c) = "d"; $xavp(x[0]=>a) = "b"; xavp_params_implode("x", "$var(out)"); # results in: $var(out) is "a=b;c=d;e=f;" +... + </programlisting> + </example> + </section> + <section id="pv.f.xavp_set_child_ival"> + <title> + <function moreinfo="none">xavp_set_child_ival(rname, cname, ival)</function> + </title> + <para> + Set the value of $xavp(rname=>cname) to integer value ival. + </para> + <para> + The first parameter has to be the name of XAVP in the root list. + The second parameter name of child XAVP. The third parameter + can be an integer number or a variable holding an integer. + </para> + <para> + Function can be used from ANY ROUTE. + </para> + <example> + <title><function>xavp_set_child_ival</function> usage</title> + <programlisting format="linespecific"> +... +$var(n) = 10; +xavp_set_child_ival("x", "y", "$var(n)"); +# results in: $xavp(x=>y) is 10 +... + </programlisting> + </example> + </section> + <section id="pv.f.xavp_set_child_sval"> + <title> + <function moreinfo="none">xavp_set_child_sval(rname, cname, sval)</function> + </title> + <para> + Set the value of $xavp(rname=>cname) to string value sval. + </para> + <para> + The first parameter has to be the name of XAVP in the root list. + The second parameter name of child XAVP. The third parameter + can be a static or dynamic (with variables) string. + </para> + <para> + Function can be used from ANY ROUTE. + </para> + <example> + <title><function>xavp_set_child_sval</function> usage</title> + <programlisting format="linespecific"> +... +$var(n) = 10; +xavp_set_child_sval("x", "y", "Count: $var(n)"); +# results in: $xavp(x=>y) is "Count: 10" ... </programlisting> </example>