From 6cc60c159c692b2f38d0fce6b07510b9cc88efd0 Mon Sep 17 00:00:00 2001 From: jaybeepee Date: Wed, 8 Apr 2015 15:18:21 +0200 Subject: [PATCH] modules/dialog_ng: fix route_sets for callee_leg --- modules/dialog_ng/dlg_handlers.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/dialog_ng/dlg_handlers.c b/modules/dialog_ng/dlg_handlers.c index e680473dd01..af1af7c9c99 100644 --- a/modules/dialog_ng/dlg_handlers.c +++ b/modules/dialog_ng/dlg_handlers.c @@ -215,12 +215,11 @@ int populate_leg_info(struct dlg_cell *dlg, struct sip_msg *msg, } else { skip_recs = 0; /* was the 200 OK received or local generated */ - /*skip_recs = dlg->from_rr_nb + + skip_recs = dlg->from_rr_nb + ((t->relayed_reply_branch >= 0) ? ((t->uac[t->relayed_reply_branch].flags & TM_UAC_FLAG_R2) ? 2 : ((t->uac[t->relayed_reply_branch].flags & TM_UAC_FLAG_RR) ? 1 : 0)) : 0); - * */ } if (msg->record_route) {