[sr-dev] git:master:fb040b05: ims_charging: Added changes after previous commit
Carsten Bock
carsten at ng-voice.com
Tue Jan 26 18:41:51 CET 2016
Module: kamailio
Branch: master
Commit: fb040b05811b2979130bdf842345c927cd6c1888
URL: https://github.com/kamailio/kamailio/commit/fb040b05811b2979130bdf842345c927cd6c1888
Author: Carsten Bock <carsten at ng-voice.com>
Committer: Carsten Bock <carsten at ng-voice.com>
Date: 2016-01-26T18:41:37+01:00
ims_charging: Added changes after previous commit
---
Modified: modules/ims_charging/ims_ro.c
---
Diff: https://github.com/kamailio/kamailio/commit/fb040b05811b2979130bdf842345c927cd6c1888.diff
Patch: https://github.com/kamailio/kamailio/commit/fb040b05811b2979130bdf842345c927cd6c1888.patch
---
diff --git a/modules/ims_charging/ims_ro.c b/modules/ims_charging/ims_ro.c
index ef27513..62f108c 100644
--- a/modules/ims_charging/ims_ro.c
+++ b/modules/ims_charging/ims_ro.c
@@ -1240,7 +1240,7 @@ int Ro_Send_CCR(struct sip_msg *msg, struct dlg_cell *dlg, int dir, int reservat
if (ssd)
shm_free(ssd);
- return RO_RETURN_ERROR;
+ return RO_RETURN_ERROR;
}
static void resume_on_initial_ccr(int is_timeout, void *param, AAAMessage *cca, long elapsed_msecs) {
@@ -1291,9 +1291,10 @@ static void resume_on_initial_ccr(int is_timeout, void *param, AAAMessage *cca,
if (!ro_cca_data) {
LM_ERR("Could not parse CCA message response.\n");
error_code = RO_RETURN_ERROR;
+ create_cca_result_code(0);
goto error0;
}
-
+ create_cca_result_code((int)ro_cca_data->resultcode);
if (ro_cca_data->resultcode != 2001) {
LM_ERR("Got bad CCA result code - reservation failed");
error_code = RO_RETURN_FALSE;
@@ -1435,10 +1436,10 @@ static int create_cca_result_code(int result) {
avp_name.s.len = RO_AVP_CCA_RESULT_CODE_LENGTH;
avp_val.n = result;
- avp_val.s.s = RO_RETURN_TRUE_STR; //assume true
- avp_val.s.len = 1;
+ avp_val.s.s = 0;
+ avp_val.s.len = 0;
- rc = add_avp(AVP_NAME_STR | AVP_VAL_STR, avp_name, avp_val);
+ rc = add_avp(AVP_NAME_STR, avp_name, avp_val);
if (rc < 0)
LM_ERR("Couldn't create ["RO_AVP_CCA_RESULT_CODE"] AVP\n");
More information about the sr-dev
mailing list