aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-22 16:36:56 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-22 16:36:56 +0000
commit8fc6314f5aedc52699ef98bd04ceb80e0b581723 (patch)
treef303ef70f97f8113101b6b36469579f11bcc9f3a /channels
parentba1e5ca81f464f3231612c3e6f86e33d779f245d (diff)
Merged revisions 86756 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r86756 | file | 2007-10-22 13:35:22 -0300 (Mon, 22 Oct 2007) | 4 lines 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: http://svn.digium.com/svn/asterisk/trunk@86757 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index ad089d2a5..1b41379dd 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -6413,7 +6413,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");