}
via.setBranch(branch);
msg.addViaHeader(via);
// decrement Max-Forwards
MaxForwardsHeader maxfwd=msg.getMaxForwardsHeader();
if (maxfwd!=null) maxfwd.decrement();
else maxfwd=new MaxForwardsHeader(SipStack.max_forwards);
msg.setMaxForwardsHeader(maxfwd);
// domain name routing
if (server_profile.domain_routing_rules!=null && server_profile.domain_routing_rules.length>0)
{ RequestLine rl=msg.getRequestLine();