|
@@ -423,7 +423,9 @@ int t_forward_nonack( struct cell *t, struct sip_msg* p_msg ,
|
|
|
|
|
|
init_branch_iterator();
|
|
init_branch_iterator();
|
|
while((current_uri.s=next_branch( ¤t_uri.len))) {
|
|
while((current_uri.s=next_branch( ¤t_uri.len))) {
|
|
- branch_ret=add_uac( t, p_msg, ¤t_uri, 0, proxy, proto);
|
|
|
|
|
|
+ branch_ret=add_uac( t, p_msg, ¤t_uri,
|
|
|
|
+ (p_msg->dst_uri.len) ? (&p_msg->dst_uri) : ¤t_uri,
|
|
|
|
+ proxy, proto);
|
|
/* pick some of the errors in case things go wrong;
|
|
/* pick some of the errors in case things go wrong;
|
|
note that picking lowest error is just as good as
|
|
note that picking lowest error is just as good as
|
|
any other algorithm which picks any other negative
|
|
any other algorithm which picks any other negative
|