浏览代码

- fixed bug in calculating the number of Route header addresses that need to be skipped when populating the callee route set (ported from opensips #4487, credits go to Bogdan Andrei Iancu and Dan Pascu)

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@4554 689a6050-402a-0410-94f2-e92a70836424
Daniel-Constantin Mierla 17 年之前
父节点
当前提交
8d13f1c2f5
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      modules_k/dialog/dlg_handlers.c

+ 2 - 2
modules_k/dialog/dlg_handlers.c

@@ -203,8 +203,8 @@ static int populate_leg_info( struct dlg_cell *dlg, struct sip_msg *msg,
 	} else {
 		/* was the 200 OK received or local generated */
 		skip_recs = dlg->from_rr_nb +
-			(t->relaied_reply_branch>=0)?
-				(t->uac[t->relaied_reply_branch].added_rr):0;
+			((t->relaied_reply_branch>=0)?
+				(t->uac[t->relaied_reply_branch].added_rr):0);
 	}
 
 	if(msg->record_route){