From: Joshua Colp Date: Mon, 22 Oct 2007 16:35:22 +0000 (+0000) Subject: After reading online I have confirmed that Record-Route headers should be copied... X-Git-Tag: 1.4.14~108 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d6d73843551834386e1b55a088a86d22d4d1918b;p=thirdparty%2Fasterisk.git After reading online I have confirmed that Record-Route headers should be copied to 1xx responses as well. (closes issue #10113) Reported by: makoto git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@86756 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index adf83ce64a..b55e27886c 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5718,7 +5718,7 @@ static int respprep(struct sip_request *resp, struct sip_pvt *p, const char *msg init_resp(resp, msg); copy_via_headers(p, resp, req, "Via"); - if (msg[0] == '2') + if (msg[0] == '1' || msg[0] == '2') copy_all_header(resp, req, "Record-Route"); copy_header(resp, req, "From"); ot = get_header(req, "To");