Module: kamailio
Branch: master
Commit: 327a4f0a6ce978ef61f5bee3b6107b541e00f702
URL:
https://github.com/kamailio/kamailio/commit/327a4f0a6ce978ef61f5bee3b6107b5…
Author: jaybeepee <jason.penton(a)gmail.com>
Committer: jaybeepee <jason.penton(a)gmail.com>
Date: 2016-02-29T14:05:55+02:00
modules/ims_charging: print error on failed CCR resultcode
---
Modified: modules/ims_charging/ims_ro.c
---
Diff:
https://github.com/kamailio/kamailio/commit/327a4f0a6ce978ef61f5bee3b6107b5…
Patch:
https://github.com/kamailio/kamailio/commit/327a4f0a6ce978ef61f5bee3b6107b5…
---
diff --git a/modules/ims_charging/ims_ro.c b/modules/ims_charging/ims_ro.c
index 08565bc..bbb8c07 100644
--- a/modules/ims_charging/ims_ro.c
+++ b/modules/ims_charging/ims_ro.c
@@ -1302,7 +1302,8 @@ static void resume_on_initial_ccr(int is_timeout, void *param,
AAAMessage *cca,
}
create_cca_result_code((int)ro_cca_data->resultcode);
if (ro_cca_data->resultcode != 2001) {
- LM_ERR("Got bad CCA result code - reservation failed");
+ if (ro_cca_data->resultcode != 4012)
+ LM_ERR("Got bad CCA result code [%d] - reservation failed\n",
(int)ro_cca_data->resultcode);
error_code = RO_RETURN_FALSE;
goto error1;
}