TT#70855 Don't skip the ACC if source_lcr_id filed is missing

This is necessary to avoid issues with ACC records in the
OLD format during an upgrade.
It should be changed to back to -1 in mr9.+

Change-Id: I81097c0823343de066ec436d6f43a4ed279f372f
(cherry picked from commit a99934c121)
changes/17/35517/1
Marco Capetta 7 years ago
parent 84455077a1
commit 899fd10a16

@ -494,8 +494,10 @@ static int cdr_parse_srcleg(char *srcleg, cdr_entry_t *cdr)
tmp1 = strchr(tmp2, MED_SEP);
if(tmp1 == NULL)
{
L_WARNING("Call-Id '%s' has no separated source lcr id, '%s'", cdr->call_id, tmp2);
return -1;
L_DEBUG("Call-Id '%s' has no separated source lcr id, '%s'", cdr->call_id, tmp2);
/// Simply return 0 in order to avoid issues with ACC records in the OLD format during an upgrade
/// Added in mr8.1, it should be changed to -1 in mr9.+
return 0;
}
*tmp1 = '\0';
cdr->source_lcr_id = atoll(tmp2);

Loading…
Cancel
Save