Module: kamailio
Branch: master
Commit: 79592144c3ba99ccbb4883910eeda3a7dbe5c89d
URL:
https://github.com/kamailio/kamailio/commit/79592144c3ba99ccbb4883910eeda3a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-23T10:05:56+01:00
textops: docs - proper example for append_body_part() with headers
---
Modified: src/modules/textops/doc/textops_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/79592144c3ba99ccbb4883910eeda3a…
Patch:
https://github.com/kamailio/kamailio/commit/79592144c3ba99ccbb4883910eeda3a…
---
diff --git a/src/modules/textops/doc/textops_admin.xml
b/src/modules/textops/doc/textops_admin.xml
index 8f6ee2583b..fecaa059f2 100644
--- a/src/modules/textops/doc/textops_admin.xml
+++ b/src/modules/textops/doc/textops_admin.xml
@@ -1725,8 +1725,8 @@ Content-Disposition: signal;handling=required
<title><function>append_body_part</function> with
headers</title>
<programlisting format="linespecific">
...
-$var(b) = "<info>active</info>";
-append_body_part("$var(b)", "application/xml\r\nX-Header: xyz");
+$var(b) = "7e Od 04 55 75 69 20 4d 61 6b 65 43 61 6c 6c";
+append_body_part("$var(b)", "application/vnd.cirpack.isdn-ext\r\nX-Header:
xyz", "signal;handling=required");
msg_apply_changes();
...
@@ -1734,6 +1734,7 @@ msg_apply_changes();
...
Content-Type: application/vnd.cirpack.isdn-ext
+X-Header: xyz
Content-Disposition: signal;handling=required
7e Od 04 55 75 69 20 4d 61 6b 65 43 61 6c 6c