[sr-dev] git:master:f8c1caba: textops: fix broken example for filter_body

Henning Westerholt hw at skalatan.de
Wed Oct 20 14:32:09 CEST 2021


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

Author: Sven Uhlig <git at resident-uhlig.de>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2021-10-20T14:32:05+02:00

textops: fix broken example for filter_body

---

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

---

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

---

diff --git a/src/modules/textops/doc/textops_admin.xml b/src/modules/textops/doc/textops_admin.xml
index 974fbf568c..2a166f37a9 100644
--- a/src/modules/textops/doc/textops_admin.xml
+++ b/src/modules/textops/doc/textops_admin.xml
@@ -901,7 +901,7 @@ set_reply_body("test", "text/plain");
 		<programlisting format="linespecific">
 ...
 if (has_body("multipart/mixed")) {
-    if (filter_body("application/sdp") {
+    if (filter_body("application/sdp")) {
         remove_hf("Content-Type");
         append_hf("Content-Type: application/sdp\r\n");
     } else {




More information about the sr-dev mailing list