Explorar o código

- 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 %!s(int64=17) %!d(string=hai) anos
pai
achega
8d13f1c2f5
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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){