[sr-dev] git:5.4:d9c34770: textops: fix broken example for filter_body

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


Module: kamailio
Branch: 5.4
Commit: d9c34770caa305fc6cafa18e255f3c05342305dc
URL: https://github.com/kamailio/kamailio/commit/d9c34770caa305fc6cafa18e255f3c05342305dc

Author: Sven Uhlig <git at resident-uhlig.de>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2021-10-20T12:32:40Z

textops: fix broken example for filter_body

(cherry picked from commit f8c1cabaeadb8ee145174843ed11bbbb0c3276b0)

---

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

---

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

---

diff --git a/src/modules/textops/doc/textops_admin.xml b/src/modules/textops/doc/textops_admin.xml
index 9f5f949e5a..55e7cf36aa 100644
--- a/src/modules/textops/doc/textops_admin.xml
+++ b/src/modules/textops/doc/textops_admin.xml
@@ -859,7 +859,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