Module: kamailio
Branch: master
Commit: 987c8101504cc7939c6782df55d7073f492e12c8
URL:
https://github.com/kamailio/kamailio/commit/987c8101504cc7939c6782df55d7073…
Author: Carsten Bock <carsten(a)ng-voice.com>
Committer: Carsten Bock <carsten(a)ng-voice.com>
Date: 2017-04-03T08:33:18+02:00
ims_icscf: Fix fixup functions
---
Modified: src/modules/ims_icscf/ims_icscf_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/987c8101504cc7939c6782df55d7073…
Patch:
https://github.com/kamailio/kamailio/commit/987c8101504cc7939c6782df55d7073…
---
diff --git a/src/modules/ims_icscf/ims_icscf_mod.c
b/src/modules/ims_icscf/ims_icscf_mod.c
index 07eb29c..47813e2 100644
--- a/src/modules/ims_icscf/ims_icscf_mod.c
+++ b/src/modules/ims_icscf/ims_icscf_mod.c
@@ -270,15 +270,14 @@ static int fixup_uar(void** param, int param_no)
{
if (strlen((char*) *param) <= 0) {
LM_ERR("empty parameter %d not allowed\n", param_no);
- return -1;
+ return -1;
}
- if (param_no == 1) { //route name - static or dynamic string (config vars)
- if (fixup_spve_null(param, param_no) < 0){
- LM_ERR("fixup spve failed on %d\n", param_no);
- return -1;
- }
- return 0;
+ switch (param_no) {
+ case 1:
+ return fixup_spve_null(param, param_no);
+ case 2:
+ return fixup_var_int_12(param, 1);
}
return 0;
@@ -291,11 +290,12 @@ static int fixup_lir(void** param, int param_no)
return -1;
}
- if (param_no == 1) { //route name - static or dynamic string (config
vars)
- if (fixup_spve_null(param, param_no) < 0)
- return -1;
- return 0;
- }
+ switch (param_no) {
+ case 1:
+ return fixup_spve_null(param, param_no);
+ case 2:
+ return fixup_var_int_12(param, 1);
+ }
return 0;
}