]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make sure we send error replies correctly by checking the via header.
authorOlle Johansson <oej@edvina.net>
Tue, 19 Feb 2008 10:27:15 +0000 (10:27 +0000)
committerOlle Johansson <oej@edvina.net>
Tue, 19 Feb 2008 10:27:15 +0000 (10:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103806 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 9e038b8cf227535fffcb9fd22b5c0dce62e6810f..260e59dfe8685ca24ef447225e3153c818af855f 100644 (file)
@@ -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);