浏览代码

ims_charging: fixed check result code at mscc level (#1504)

* ims_charging: fixed check result code at mscc level

according to RFC 4006 the Result-Code in Multiple-Services-Credit-Control AVP is optional.
resume_on_initial_ccr() stops proceeding CCA if no Result-Code in MSCC and goes to error1 even though
the Result-Code on CCR itself is 2001 (SUCCESSFUL)

* ims_charging: fixed check result code at mscc level

according to RFC 4006 the Result-Code in Multiple-Services-Credit-Control AVP is optional.
resume_on_initial_ccr() stops proceeding CCA if no Result-Code in MSCC and goes to error1 even though
the Result-Code on CCR itself is 2001 (SUCCESSFUL)
yuri-r 7 年之前
父节点
当前提交
352440d299
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/ims_charging/ims_ro.c

+ 1 - 1
src/modules/ims_charging/ims_ro.c

@@ -1361,7 +1361,7 @@ static void resume_on_initial_ccr(int is_timeout, void *param, AAAMessage *cca,
 	create_cca_fui_avps(fui_action, redirecturi);
 	
 	/* check result code at mscc level */
-	if (ro_cca_data->mscc->resultcode != 2001) {
+	if (ro_cca_data->mscc->resultcode && ro_cca_data->mscc->resultcode != 2001) {
 		LM_DBG("CCA failure at MSCC level with resultcode [%d]\n", ro_cca_data->mscc->resultcode);
 		error_code = RO_RETURN_FALSE;
         goto error1;