Module: kamailio
Branch: master
Commit: b7d7c6e24a906ed4f58bda603ec4574786919caf
URL:
https://github.com/kamailio/kamailio/commit/b7d7c6e24a906ed4f58bda603ec4574…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-06-07T10:50:28+02:00
core: fixup helpers for int-str-int params
---
Modified: src/core/mod_fix.c
Modified: src/core/mod_fix.h
---
Diff:
https://github.com/kamailio/kamailio/commit/b7d7c6e24a906ed4f58bda603ec4574…
Patch:
https://github.com/kamailio/kamailio/commit/b7d7c6e24a906ed4f58bda603ec4574…
---
diff --git a/src/core/mod_fix.c b/src/core/mod_fix.c
index bba3a469028..ec4e016ed88 100644
--- a/src/core/mod_fix.c
+++ b/src/core/mod_fix.c
@@ -1029,3 +1029,35 @@ int fixup_free_ssii(void **param, int param_no)
return E_UNSPEC;
}
}
+
+/**
+ *
+ */
+int fixup_isi(void **param, int param_no)
+{
+ switch(param_no) {
+ case 1:
+ case 3:
+ return fixup_igp_null(param, 1);
+ case 2:
+ return fixup_spve_null(param, 1);
+ default:
+ return E_UNSPEC;
+ }
+}
+
+/**
+ *
+ */
+int fixup_free_isi(void **param, int param_no)
+{
+ switch(param_no) {
+ case 1:
+ case 3:
+ 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 d3f954fb1c2..aafb3a4cbff 100644
--- a/src/core/mod_fix.h
+++ b/src/core/mod_fix.h
@@ -184,4 +184,7 @@ int fixup_free_sssi(void **param, int param_no);
int fixup_ssii(void **param, int param_no);
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);
+
#endif