Skip to content

Commit

Permalink
[acc extra] fix leg index when doing CDRs
Browse files Browse the repository at this point in the history
  • Loading branch information
ionutrazvanionita authored and razvancrainea committed Nov 22, 2017
1 parent 1f32e17 commit 40c9f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/acc/acc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ int acc_aaa_cdrs(struct dlg_cell *dlg, struct sip_msg *msg, acc_ctx_t* ctx)
for (i=0; i<ctx->legs_no; i++) {
for (extra=aaa_leg_tags,j=0; extra; extra=extra->next, j++) {
ADD_AAA_AVPAIR( offset+j,
LEG_VALUE(j, extra, ctx).s, LEG_VALUE(j, extra, ctx).len);
LEG_VALUE(i, extra, ctx).s, LEG_VALUE(i, extra, ctx).len);
}
}
}
Expand Down

0 comments on commit 40c9f2a

Please sign in to comment.