Module: kamailio
Branch: master
Commit: 818cced90cdbb524acbc423c79fc6c2b696da77c
URL:
https://github.com/kamailio/kamailio/commit/818cced90cdbb524acbc423c79fc6c2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-06-10T12:22:58+02:00
core: helper fixup for functions with int-str-int-int parameters
---
Modified: src/core/mod_fix.c
Modified: src/core/mod_fix.h
---
Diff:
https://github.com/kamailio/kamailio/commit/818cced90cdbb524acbc423c79fc6c2…
Patch:
https://github.com/kamailio/kamailio/commit/818cced90cdbb524acbc423c79fc6c2…
---
diff --git a/src/core/mod_fix.c b/src/core/mod_fix.c
index ec4e016ed88..fa7e2c4b47a 100644
--- a/src/core/mod_fix.c
+++ b/src/core/mod_fix.c
@@ -1061,3 +1061,37 @@ int fixup_free_isi(void **param, int param_no)
return E_UNSPEC;
}
}
+
+/**
+ *
+ */
+int fixup_isii(void **param, int param_no)
+{
+ switch(param_no) {
+ case 1:
+ case 3:
+ case 4:
+ return fixup_igp_null(param, 1);
+ case 2:
+ return fixup_spve_null(param, 1);
+ default:
+ return E_UNSPEC;
+ }
+}
+
+/**
+ *
+ */
+int fixup_free_isii(void **param, int param_no)
+{
+ switch(param_no) {
+ case 1:
+ case 3:
+ case 4:
+ 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 aafb3a4cbff..76c57bc9bf6 100644
--- a/src/core/mod_fix.h
+++ b/src/core/mod_fix.h
@@ -187,4 +187,7 @@ 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_isii(void **param, int param_no);
+int fixup_free_isii(void **param, int param_no);
+
#endif