[sr-dev] git:master:9d6c274b: core: exposed kemi function to remove a header by name

Daniel-Constantin Mierla miconda at gmail.com
Thu May 28 09:47:26 CEST 2020


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-05-28T09:26:43+02:00

core: exposed kemi function to remove a header by name

---

Modified: src/core/kemi.c
Modified: src/core/kemi.h

---

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

---

diff --git a/src/core/kemi.c b/src/core/kemi.c
index 2a63279795..3cbeee6d08 100644
--- a/src/core/kemi.c
+++ b/src/core/kemi.c
@@ -1991,7 +1991,7 @@ static int sr_kemi_hdr_append_after(sip_msg_t *msg, str *txt, str *hname)
 /**
  *
  */
-static int sr_kemi_hdr_remove(sip_msg_t *msg, str *hname)
+int sr_kemi_hdr_remove(sip_msg_t *msg, str *hname)
 {
 	struct lump* anchor;
 	hdr_field_t *hf;
diff --git a/src/core/kemi.h b/src/core/kemi.h
index dd7d4bf50b..6493ab5009 100644
--- a/src/core/kemi.h
+++ b/src/core/kemi.h
@@ -225,4 +225,8 @@ sr_kemi_t* sr_kemi_exports_get_pv(void);
 #define SR_KEMI_XVAL_NULL_ZERO 3
 void sr_kemi_xval_null(sr_kemi_xval_t *xval, int rmode);
 void sr_kemi_xval_free(sr_kemi_xval_t *xval);
+
+/* functions exported to kemi that are used in other places */
+int sr_kemi_hdr_remove(sip_msg_t *msg, str *hname);
+
 #endif




More information about the sr-dev mailing list