Module: kamailio
Branch: master
Commit: 4106769466e842f971d8aeab38cb2343cb90efdf
URL:
https://github.com/kamailio/kamailio/commit/4106769466e842f971d8aeab38cb234…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-06-08T10:48:59+02:00
core: helper fixup function for none and spve parameters
---
Modified: src/core/mod_fix.c
Modified: src/core/mod_fix.h
---
Diff:
https://github.com/kamailio/kamailio/commit/4106769466e842f971d8aeab38cb234…
Patch:
https://github.com/kamailio/kamailio/commit/4106769466e842f971d8aeab38cb234…
---
diff --git a/src/core/mod_fix.c b/src/core/mod_fix.c
index b07adcfc26..df3775f6cd 100644
--- a/src/core/mod_fix.c
+++ b/src/core/mod_fix.c
@@ -664,3 +664,23 @@ int fixup_free_spve_pvar(void** param, int param_no)
return fixup_free_pvar_null(param, 1);
return E_UNSPEC;
}
+
+/**
+ *
+ */
+int fixup_none_spve(void** param, int param_no)
+{
+ if(param_no==2)
+ return fixup_spve_null(param, 1);
+ return 0;
+}
+
+/**
+ *
+ */
+int fixup_free_none_spve(void** param, int param_no)
+{
+ if(param_no==2)
+ return fixup_free_spve_null(param, 1);
+ return 0;
+}
\ No newline at end of file
diff --git a/src/core/mod_fix.h b/src/core/mod_fix.h
index 869dd78527..e78b2d2df0 100644
--- a/src/core/mod_fix.h
+++ b/src/core/mod_fix.h
@@ -146,6 +146,9 @@ int fixup_free_spve_igp(void** param, int param_no);
int fixup_spve_pvar(void** param, int param_no);
int fixup_free_spve_pvar(void** param, int param_no);
+int fixup_none_spve(void** param, int param_no);
+int fixup_free_none_spve(void** param, int param_no);
+
/** get the corresp. free fixup function.*/
free_fixup_function mod_fix_get_fixup_free(fixup_function f);