[asterisk-commits] oej: trunk r46902 - in /trunk: ./ channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Nov 2 08:31:54 MST 2006


Author: oej
Date: Thu Nov  2 09:31:53 2006
New Revision: 46902

URL: http://svn.digium.com/view/asterisk?rev=46902&view=rev
Log:
Don't overwrite pkt->flags (imported from 1.2/1.4)

Modified:
    trunk/   (props changed)
    trunk/channels/chan_sip.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=46902&r1=46901&r2=46902&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Nov  2 09:31:53 2006
@@ -1939,7 +1939,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