diff options
author | Matt Jordan <mjordan@digium.com> | 2015-09-11 16:13:53 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2015-09-11 16:13:53 -0500 |
commit | 6097a1fc058600764c6714f6650c2dc71b46cc21 (patch) | |
tree | 2c9fb05c4ea176a0ecfed6cdee25c078c7f10f41 /res | |
parent | b1f9c998ed0b52e1467ba2c73e0f83fe96df6e73 (diff) | |
parent | bd71dcd1dab44c864aa9dd87614d09a623a72219 (diff) |
Merge "res/res_pjsip_nat: Ignore REGISTER requests when looking for a Record-Route"
Diffstat (limited to 'res')
-rw-r--r-- | res/res_pjsip_nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip_nat.c b/res/res_pjsip_nat.c index 483caa2d2..683ae6110 100644 --- a/res/res_pjsip_nat.c +++ b/res/res_pjsip_nat.c @@ -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); } |