Module: kamailio Branch: master Commit: 2edd5ed65c7c973e262b1f510a97792f11bd2782 URL: https://github.com/kamailio/kamailio/commit/2edd5ed65c7c973e262b1f510a97792f11bd2782
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-01-08T20:41:42+01:00 corex: docs for via-body flag functions --- Modified: src/modules/corex/doc/corex_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/2edd5ed65c7c973e262b1f510a97792f11bd2782.diff Patch: https://github.com/kamailio/kamailio/commit/2edd5ed65c7c973e262b1f510a97792f11bd2782.patch --- diff --git a/src/modules/corex/doc/corex_admin.xml b/src/modules/corex/doc/corex_admin.xml index 931c4c3adfe..536aad443ad 100644 --- a/src/modules/corex/doc/corex_admin.xml +++ b/src/modules/corex/doc/corex_admin.xml @@ -1055,6 +1055,93 @@ route[reply] { </programlisting> </example> </section> + <section id="corex.f.msg_vbflag_set"> + <title><function moreinfo="none">msg_vbflag_set(flag)</function></title> + <para> + Set the via-body flag. + </para> + <para>Meaning of the parameters is as follows:</para> + <itemizedlist> + <listitem> + <para> + <emphasis>flag</emphasis> - the index of the flag to + be set. Can be integer or pseudo-variable with integer value + (range 0-31). + </para> + </listitem> + </itemizedlist> + <para> + This function can be used from ANY_ROUTE. + </para> + <example> + <title><function>msg_vbflag_set</function> usage</title> + <programlisting format="linespecific"> +... +msg_vbflag_set("1"); +... +$var(flag) = 11; +msg_vbflag_set("$var(flag)"); +... +</programlisting> + </example> + </section> + <section id="corex.f.msg_vbflag_is_set"> + <title><function moreinfo="none">msg_vbflag_is_set(flag)</function></title> + <para> + Return true if the via-body flag is set. + </para> + <para>Meaning of the parameters is as follows:</para> + <itemizedlist> + <listitem> + <para> + <emphasis>flag</emphasis> - the index of the flag to + be tested. Can be integer or pseudo-variable with integer value + (range 0-31). + </para> + </listitem> + </itemizedlist> + <para> + This function can be used from ANY_ROUTE. + </para> + <example> + <title><function>msg_vbflag_is_set</function> usage</title> + <programlisting format="linespecific"> +... +if(msg_vbflag_is_set("1")) +{ + ... +} +... +</programlisting> + </example> + </section> + <section id="corex.f.msg_vbflag_reset"> + <title><function moreinfo="none">msg_vbflag_reset(flag)</function></title> + <para> + Reset the via-body flag. + </para> + <para>Meaning of the parameters is as follows:</para> + <itemizedlist> + <listitem> + <para> + <emphasis>flag</emphasis> - the index of the flag to + be reset. Can be integer or pseudo-variable with integer value + (range 0-31). + </para> + </listitem> + </itemizedlist> + <para> + This function can be used from ANY_ROUTE. + </para> + <example> + <title><function>msg_vbflag_reset</function> usage</title> + <programlisting format="linespecific"> +... +msg_vbflag_reset("1"); +... +</programlisting> + </example> + </section> </section> <section> _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
