[sr-dev] git:master:ba3df9a6: textops: more details for set_body_multipart() and need of msg_apply_changes()

Daniel-Constantin Mierla miconda at gmail.com
Wed Sep 14 15:00:48 CEST 2016


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-09-14T15:00:03+02:00

textops: more details for set_body_multipart() and need of msg_apply_changes()

---

Modified: modules/textops/doc/textops_admin.xml

---

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

---

diff --git a/modules/textops/doc/textops_admin.xml b/modules/textops/doc/textops_admin.xml
index 3c53ba9..bdf4d28 100644
--- a/modules/textops/doc/textops_admin.xml
+++ b/modules/textops/doc/textops_admin.xml
@@ -1396,13 +1396,22 @@ if (starts_with("$rU", "+358"))
 		The core will take care of the last boundary ending "--". Detecting wich one is
 		the last and fixing the others if needed.
 		</para>
+		<para>
+		Note: it may be required that msg_apply_changes() from textops module
+		has to be executed if there are other operations over the new body.
+		</para>
 		<example>
 		<title><function>set_body_multipart</function> usage</title>
 		<programlisting format="linespecific">
 ...
 set_body_multipart("test", "text/plain", "delimiter");
+msg_apply_changes();
+append_body_part(...);
+
 ...
-Will produce:
+
+# Will produce:
+
 ...
 Content-Type: multipart/mixed;boundary="delimiter"
 Mime-Version: 1.0
@@ -1457,7 +1466,9 @@ text
 $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", "signal;handling=required");
 ...
-Will append this the body:
+
+# Will append this to the body:
+
 ...
 Content-Type: application/vnd.cirpack.isdn-ext
 Content-Disposition: signal;handling=required




More information about the sr-dev mailing list