[asterisk-commits] oej: branch oej/teapot-1.8 r402878 - /team/oej/teapot-1.8/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Nov 18 08:53:20 CST 2013


Author: oej
Date: Mon Nov 18 08:53:16 2013
New Revision: 402878

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=402878
Log:
Fix to test for invalid to-tag check committed 

Modified:
    team/oej/teapot-1.8/channels/chan_sip.c

Modified: team/oej/teapot-1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/teapot-1.8/channels/chan_sip.c?view=diff&rev=402878&r1=402877&r2=402878
==============================================================================
--- team/oej/teapot-1.8/channels/chan_sip.c (original)
+++ team/oej/teapot-1.8/channels/chan_sip.c Mon Nov 18 08:53:16 2013
@@ -21883,7 +21883,7 @@
 	   so that we don't update the tag after a 200 or other final response. 
 	   Provided that SIP pedantic checking is turned on of course.
 	*/
-	if (ast_strlen_zero(p->theirtag) || (resp >= 200)) {
+	if (! ast_test_flag(&p->flags[1], SIP_PAGE2_DIALOG_ESTABLISHED)) {
 		char tag[128];
 
 		gettag(req, "To", tag, sizeof(tag));




More information about the asterisk-commits mailing list