[asterisk-commits] oej: branch 1.2 r46899 - /branches/1.2/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Nov 2 08:15:07 MST 2006


Author: oej
Date: Thu Nov  2 09:15:06 2006
New Revision: 46899

URL: http://svn.digium.com/view/asterisk?rev=46899&view=rev
Log:
Don't overwrite flags in the packet

Modified:
    branches/1.2/channels/chan_sip.c

Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?rev=46899&r1=46898&r2=46899&view=diff
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Thu Nov  2 09:15:06 2006
@@ -1289,7 +1289,8 @@
 	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)



More information about the asterisk-commits mailing list