mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 02:48:29 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user