Module: kamailio
Branch: master
Commit: b3eefcd34fa16a13f233afcf285f3abbe4401394
URL:
https://github.com/kamailio/kamailio/commit/b3eefcd34fa16a13f233afcf285f3ab…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-06-11T12:59:37+02:00
core: additional fixup functions for int-str-int-int-int parameters
---
Modified: src/core/mod_fix.c
Modified: src/core/mod_fix.h
---
Diff:
https://github.com/kamailio/kamailio/commit/b3eefcd34fa16a13f233afcf285f3ab…
Patch:
https://github.com/kamailio/kamailio/commit/b3eefcd34fa16a13f233afcf285f3ab…
---
diff --git a/src/core/mod_fix.c b/src/core/mod_fix.c
index fa7e2c4b47a..18785662936 100644
--- a/src/core/mod_fix.c
+++ b/src/core/mod_fix.c
@@ -1095,3 +1095,39 @@ int fixup_free_isii(void **param, int param_no)
return E_UNSPEC;
}
}
+
+/**
+ *
+ */
+int fixup_isiii(void **param, int param_no)
+{
+ switch(param_no) {
+ case 1:
+ case 3:
+ case 4:
+ case 5:
+ return fixup_igp_null(param, 1);
+ case 2:
+ return fixup_spve_null(param, 1);
+ default:
+ return E_UNSPEC;
+ }
+}
+
+/**
+ *
+ */
+int fixup_free_isiii(void **param, int param_no)
+{
+ switch(param_no) {
+ case 1:
+ case 3:
+ case 4:
+ case 5:
+ return fixup_free_igp_null(param, 1);
+ case 2:
+ 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 76c57bc9bf6..092f65b93bc 100644
--- a/src/core/mod_fix.h
+++ b/src/core/mod_fix.h
@@ -190,4 +190,7 @@ int fixup_free_isi(void **param, int param_no);
int fixup_isii(void **param, int param_no);
int fixup_free_isii(void **param, int param_no);
+int fixup_isiii(void **param, int param_no);
+int fixup_free_isiii(void **param, int param_no);
+
#endif