summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_sip.c')
-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");