aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-22 16:35:22 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-22 16:35:22 +0000
commitbe279a478720ef524eceddb1335055ea2c40b015 (patch)
tree7aaea0c00245479581862c566c63f5e363f46573 /channels
parentac67cd955b39961563a5e4492216f2709d42b838 (diff)
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/branches/1.4@86756 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 adf83ce64..b55e27886 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");