Merge "res/res_pjsip_nat: Ignore REGISTER requests when looking for a Record-Route"

This commit is contained in:
Matt Jordan 2015-09-11 16:13:53 -05:00 committed by Gerrit Code Review
commit 6097a1fc05
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ static int rewrite_route_set(pjsip_rx_data *rdata, pjsip_dialog *dlg)
break;
}
}
} else {
} else if (pjsip_method_cmp(&rdata->msg_info.msg->line.req.method, &pjsip_register_method)) {
rr = pjsip_msg_find_hdr(rdata->msg_info.msg, PJSIP_H_RECORD_ROUTE, NULL);
}