Module: kamailio Branch: 5.3 Commit: b9dac63cf660bc454b21297a1e987a400841205d URL: https://github.com/kamailio/kamailio/commit/b9dac63cf660bc454b21297a1e987a40...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2020-01-23T10:10:51+01:00
textops: docs - proper example for append_body_part() with headers
(cherry picked from commit 79592144c3ba99ccbb4883910eeda3a7dbe5c89d)
---
Modified: src/modules/textops/doc/textops_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/b9dac63cf660bc454b21297a1e987a40... Patch: https://github.com/kamailio/kamailio/commit/b9dac63cf660bc454b21297a1e987a40...
---
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