Issue #6736 - Enable NAT flags for OPTIONs requests (Thanks casper!)
authorOlle Johansson <oej@edvina.net>
Mon, 27 Mar 2006 23:39:48 +0000 (23:39 +0000)
committerOlle Johansson <oej@edvina.net>
Mon, 27 Mar 2006 23:39:48 +0000 (23:39 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15379 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 5ad3aff..f4fa8eb 100644 (file)
@@ -11688,6 +11688,7 @@ 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_flagss(p, peer, SIP_FLAGS_TO_COPY);
 
        /* Send options to peer's fullcontact */
        if (!ast_strlen_zero(peer->fullcontact))