Module: kamailio
Branch: master
Commit: ce437384ce13bb78b01d3d18f9ddfdd6b8e37fa5
URL:
https://github.com/kamailio/kamailio/commit/ce437384ce13bb78b01d3d18f9ddfdd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-02-10T22:28:26+01:00
core: helper fixup functions for (str, str, int) parameters
---
Modified: src/core/mod_fix.c
Modified: src/core/mod_fix.h
---
Diff:
https://github.com/kamailio/kamailio/commit/ce437384ce13bb78b01d3d18f9ddfdd…
Patch:
https://github.com/kamailio/kamailio/commit/ce437384ce13bb78b01d3d18f9ddfdd…
---
diff --git a/src/core/mod_fix.c b/src/core/mod_fix.c
index ecd870c0ca5..10be560982f 100644
--- a/src/core/mod_fix.c
+++ b/src/core/mod_fix.c
@@ -843,6 +843,38 @@ int fixup_free_ssi(void **param, int param_no)
}
}
+/**
+ *
+ */
+int fixup_sii(void **param, int param_no)
+{
+ switch(param_no) {
+ case 1:
+ return fixup_spve_null(param, 1);
+ case 2:
+ case 3:
+ return fixup_igp_null(param, 1);
+ default:
+ return E_UNSPEC;
+ }
+}
+
+/**
+ *
+ */
+int fixup_free_sii(void **param, int param_no)
+{
+ switch(param_no) {
+ case 1:
+ return fixup_free_spve_null(param, 1);
+ case 2:
+ 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 a76d64f0ce7..3143f060426 100644
--- a/src/core/mod_fix.h
+++ b/src/core/mod_fix.h
@@ -168,6 +168,9 @@ 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_sii(void **param, int param_no);
+int fixup_free_sii(void **param, int param_no);
+
int fixup_sssi(void **param, int param_no);
int fixup_free_sssi(void **param, int param_no);