Module: kamailio
Branch: 5.0
Commit: c270da3cd3200e7074fd7368f0899e679c38c5c2
URL:
https://github.com/kamailio/kamailio/commit/c270da3cd3200e7074fd7368f0899e6…
Author: Carsten Bock <carsten(a)ng-voice.com>
Committer: Carsten Bock <carsten(a)ng-voice.com>
Date: 2017-04-28T08:10:54+02:00
ims_icscf: Fix fixup functions
---
Modified: src/modules/ims_icscf/ims_icscf_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c270da3cd3200e7074fd7368f0899e6…
Patch:
https://github.com/kamailio/kamailio/commit/c270da3cd3200e7074fd7368f0899e6…
---
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;
}