From: Olle Johansson Date: Tue, 28 Mar 2006 19:09:51 +0000 (+0000) Subject: Fix NAT support breakage for peers with qualify=yes (imported from 1.2) X-Git-Tag: 1.4.0-beta1~2288 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=147ae336d28a34be5030a6294226e31efe816e2f;p=thirdparty%2Fasterisk.git Fix NAT support breakage for peers with qualify=yes (imported from 1.2) - Blame KLM, still jetlagged :-) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15701 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 7353a1a726..7ec37e6d2d 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -11759,8 +11759,8 @@ static int sip_poke_peer(struct sip_peer *peer) memcpy(&p->sa, &peer->addr, sizeof(p->sa)); memcpy(&p->recv, &peer->addr, sizeof(p->sa)); - ast_copy_flags(&peer->flags[0], &global_flags[0], SIP_FLAGS_TO_COPY); - ast_copy_flags(&peer->flags[1], &global_flags[1], SIP_PAGE2_FLAGS_TO_COPY); + ast_copy_flags(&p->flags[0], &peer->flags[0], SIP_FLAGS_TO_COPY); + ast_copy_flags(&p->flags[1], &peer->flags[1], SIP_PAGE2_FLAGS_TO_COPY); /* Send OPTIONs to peer's fullcontact */ if (!ast_strlen_zero(peer->fullcontact))