Module: kamailio
Branch: 5.6
Commit: 76acfb717fac8fa8a960c0e830998d9db9909ccf
URL:
https://github.com/kamailio/kamailio/commit/76acfb717fac8fa8a960c0e830998d9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-05-23T08:07:55+02:00
core: mod fixup helpers for params sequence str, str, int
(cherry picked from commit 5e4576a54e7783b1ee8fde6af7919232a5e207c4)
---
Modified: src/core/mod_fix.c
Modified: src/core/mod_fix.h
---
Diff:
https://github.com/kamailio/kamailio/commit/76acfb717fac8fa8a960c0e830998d9…
Patch:
https://github.com/kamailio/kamailio/commit/76acfb717fac8fa8a960c0e830998d9…
---
diff --git a/src/core/mod_fix.c b/src/core/mod_fix.c
index 325e3d117b..925048d940 100644
--- a/src/core/mod_fix.c
+++ b/src/core/mod_fix.c
@@ -801,6 +801,38 @@ int fixup_get_vstr_buf(sip_msg_t *msg, pv_elem_t *p, char *buf, int
blen)
return -1;
}
+/**
+ *
+ */
+int fixup_ssi(void** param, int param_no)
+{
+ switch(param_no) {
+ case 1:
+ case 2:
+ return fixup_spve_null(param, 1);
+ case 3:
+ return fixup_igp_null(param, 1);
+ default:
+ return E_UNSPEC;
+ }
+}
+
+/**
+ *
+ */
+int fixup_free_ssi(void** param, int param_no)
+{
+ switch(param_no) {
+ case 1:
+ case 2:
+ return fixup_free_spve_null(param, 1);
+ case 3:
+ return fixup_free_igp_null(param, 1);
+ default:
+ return E_UNSPEC;
+ }
+}
+
/**
*
*/
diff --git a/src/core/mod_fix.h b/src/core/mod_fix.h
index ca63a5a804..8c2c766c1e 100644
--- a/src/core/mod_fix.h
+++ b/src/core/mod_fix.h
@@ -163,6 +163,9 @@ int fixup_get_vstr_buf(sip_msg_t *msg, pv_elem_t *p, char *buf, int
blen);
int fixup_igp_regexp(void** param, int param_no);
int fixup_free_igp_regexp(void** param, int param_no);
+int fixup_ssi(void** param, int param_no);
+int fixup_free_ssi(void** param, int param_no);
+
int fixup_sssi(void** param, int param_no);
int fixup_free_sssi(void** param, int param_no);