Module: kamailio
Branch: master
Commit: e3349b793f811538e84713472757b06634d16efb
URL:
https://github.com/kamailio/kamailio/commit/e3349b793f811538e84713472757b06…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-26T12:45:28+01:00
core: helper fixup functions for int-str-str parameters
---
Modified: src/core/mod_fix.c
Modified: src/core/mod_fix.h
---
Diff:
https://github.com/kamailio/kamailio/commit/e3349b793f811538e84713472757b06…
Patch:
https://github.com/kamailio/kamailio/commit/e3349b793f811538e84713472757b06…
---
diff --git a/src/core/mod_fix.c b/src/core/mod_fix.c
index 18785662936..767c6a45a82 100644
--- a/src/core/mod_fix.c
+++ b/src/core/mod_fix.c
@@ -1062,6 +1062,38 @@ int fixup_free_isi(void **param, int param_no)
}
}
+/**
+ *
+ */
+int fixup_iss(void **param, int param_no)
+{
+ switch(param_no) {
+ case 1:
+ return fixup_igp_null(param, 1);
+ case 2:
+ case 3:
+ return fixup_spve_null(param, 1);
+ default:
+ return E_UNSPEC;
+ }
+}
+
+/**
+ *
+ */
+int fixup_free_iss(void **param, int param_no)
+{
+ switch(param_no) {
+ case 1:
+ return fixup_free_igp_null(param, 1);
+ case 2:
+ case 3:
+ return fixup_free_spve_null(param, 1);
+ default:
+ return E_UNSPEC;
+ }
+}
+
/**
*
*/
diff --git a/src/core/mod_fix.h b/src/core/mod_fix.h
index 092f65b93bc..6ec0280ac70 100644
--- a/src/core/mod_fix.h
+++ b/src/core/mod_fix.h
@@ -187,6 +187,9 @@ int fixup_free_ssii(void **param, int param_no);
int fixup_isi(void **param, int param_no);
int fixup_free_isi(void **param, int param_no);
+int fixup_iss(void **param, int param_no);
+int fixup_free_iss(void **param, int param_no);
+
int fixup_isii(void **param, int param_no);
int fixup_free_isii(void **param, int param_no);