From: Olle Johansson Date: Tue, 19 Feb 2008 10:27:15 +0000 (+0000) Subject: Make sure we send error replies correctly by checking the via header. X-Git-Tag: 1.4.19~163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7b72c89fb978d05612138cd64b26edaade499829;p=thirdparty%2Fasterisk.git Make sure we send error replies correctly by checking the via header. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103806 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 9e038b8cf2..260e59dfe8 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);