Module: kamailio Branch: master Commit: 945267c56615d4579e3385f334bdfec7dfea6bcb URL: https://github.com/kamailio/kamailio/commit/945267c56615d4579e3385f334bdfec7...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2023-01-26T14:59:02+01:00
textops: docs for str_any_in(...)
---
Modified: src/modules/textops/doc/textops_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/945267c56615d4579e3385f334bdfec7... Patch: https://github.com/kamailio/kamailio/commit/945267c56615d4579e3385f334bdfec7...
---
diff --git a/src/modules/textops/doc/textops_admin.xml b/src/modules/textops/doc/textops_admin.xml index 2f9c12af95..e30bc39d3e 100644 --- a/src/modules/textops/doc/textops_admin.xml +++ b/src/modules/textops/doc/textops_admin.xml @@ -1894,6 +1894,29 @@ if (str_ifind("$rU", "Alice")) { </example> </section>
+ <section id="textops.f.str_any_in"> + <title> + <function moreinfo="none">str_any_in(txt, clist)</function> + </title> + <para> + Return 1 (true) if any character in "clist" is found inside "txt". + Both paramters can contain variables. + </para> + <para> + This function can be used from ANY_ROUTE. + </para> + <example> + <title><function>str_any_in</function> usage</title> + <programlisting format="linespecific"> +... +if (str_any_in("$hdr(X-Hdr)", ";',:")) { + # do interesting stuff here +} +... +</programlisting> + </example> + </section> + <section id="textops.f.set_body_multipart"> <title> <function moreinfo="none">set_body_multipart([txt, content_type][, boundary])</function>