]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Issue #6736 - Use flags for OPTION messages. Thanks Casper!
authorOlle Johansson <oej@edvina.net>
Mon, 27 Mar 2006 23:45:31 +0000 (23:45 +0000)
committerOlle Johansson <oej@edvina.net>
Mon, 27 Mar 2006 23:45:31 +0000 (23:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@15381 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index a1c6b6136b7265114576c2aac087ac84f7c406f1..b9c32c140708e3e9b96dacab77e3151c63306d0f 100644 (file)
@@ -11434,8 +11434,9 @@ 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, &global_flags, SIP_FLAGS_TO_COPY);
 
-       /* Send options to peer's fullcontact */
+       /* Send OPTIONs to peer's fullcontact */
        if (!ast_strlen_zero(peer->fullcontact)) {
                ast_copy_string (p->fullcontact, peer->fullcontact, sizeof(p->fullcontact));
        }