]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't overwrite flags in the packet
authorOlle Johansson <oej@edvina.net>
Thu, 2 Nov 2006 15:15:06 +0000 (15:15 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 2 Nov 2006 15:15:06 +0000 (15:15 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@46899 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 4dd1b931e5349b7e3430a8e16f2036fedda529b6..772d3c88e626d6ad4c802c48c0d684ea6f46061a 100644 (file)
@@ -1289,7 +1289,8 @@ static int __sip_reliable_xmit(struct sip_pvt *p, int seqno, int resp, char *dat
        pkt->next = p->packets;
        pkt->owner = p;
        pkt->seqno = seqno;
-       pkt->flags = resp;
+       if (resp)
+               ast_set_flag(pkt->flags, FLAG_RESPONSE);
        pkt->data[len] = '\0';
        pkt->timer_t1 = p->timer_t1;    /* Set SIP timer T1 */
        if (fatal)