Module: kamailio
Branch: master
Commit: fae8b8321d59280309d7a02b6ba4fe7d3f9ad22f
URL: 
https://github.com/kamailio/kamailio/commit/fae8b8321d59280309d7a02b6ba4fe7d3f9ad22f

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-07-08T12:45:50+02:00

textops: docs for set_body_hex(...)

---

Modified: src/modules/textops/doc/textops_admin.xml

---

Diff:  
https://github.com/kamailio/kamailio/commit/fae8b8321d59280309d7a02b6ba4fe7d3f9ad22f.diff
Patch: 
https://github.com/kamailio/kamailio/commit/fae8b8321d59280309d7a02b6ba4fe7d3f9ad22f.patch

---

diff --git a/src/modules/textops/doc/textops_admin.xml 
b/src/modules/textops/doc/textops_admin.xml
index 9560eb6d663..ce61cccb4d8 100644
--- a/src/modules/textops/doc/textops_admin.xml
+++ b/src/modules/textops/doc/textops_admin.xml
@@ -881,6 +881,39 @@ set_body("test", "text/plain");
                </example>
        </section>
 
+       <section id="textops.f.set_body_hex">
+               <title>
+               <function moreinfo="none">set_body_hex(htxt, 
content_type)</function>
+               </title>
+               <para>
+               Set body to a SIP message with the hexa-decoded value of htxt.
+               </para>
+               <para>Meaning of the parameters is as follows:</para>
+               <itemizedlist>
+               <listitem>
+                       <para><emphasis>htxt</emphasis> - hexa-encoded value 
for the body,
+                       can include pseudo-variables. White spaces and tabs are 
ignored.
+                       </para>
+               </listitem>
+               <listitem>
+                       <para><emphasis>content_type</emphasis> - value of 
Content-Type header,
+                               can include pseudo-variables.
+                       </para>
+               </listitem>
+               </itemizedlist>
+               <para>
+               This function can be used from ANY_ROUTE.
+               </para>
+               <example>
+               <title><function>set_body_hex</function> usage</title>
+               <programlisting format="linespecific">
+...
+set_body_hex("b0 8e 4a f2", "binary/data");
+...
+</programlisting>
+               </example>
+       </section>
+
        <section id="textops.f.set_reply_body">
                <title>
                <function moreinfo="none">set_reply_body(txt, 
content_type)</function>

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to