aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-19 10:27:15 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-19 10:27:15 +0000
commit3d3bfa9f84afde5106059b932284ceb5fc7b056a (patch)
tree491da714dfb962221eb2ba18bef413b840c2371c /channels
parentb317d0eb3a2d9b7b8c202567cef487f495b67c0a (diff)
Make sure we send error replies correctly by checking the via header.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@103806 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 9e038b8cf..260e59dfe 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -6026,6 +6026,7 @@ static int transmit_response_using_temp(ast_string_field callid, struct sockaddr
p->recv = *sin;
do_setnat(p, ast_test_flag(&p->flags[0], SIP_NAT) & SIP_NAT_ROUTE);
}
+ check_via(p, req);
ast_string_field_set(p, fromdomain, default_fromdomain);
build_via(p);