[asterisk-commits] dvossel: branch dvossel/sip_request_transaction_matching r276204 - /team/dvos...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jul 13 16:32:54 CDT 2010


Author: dvossel
Date: Tue Jul 13 16:32:42 2010
New Revision: 276204

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=276204
Log:
restore behavior introduced by issue #11536

Modified:
    team/dvossel/sip_request_transaction_matching/channels/chan_sip.c

Modified: team/dvossel/sip_request_transaction_matching/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/dvossel/sip_request_transaction_matching/channels/chan_sip.c?view=diff&rev=276204&r1=276203&r2=276204
==============================================================================
--- team/dvossel/sip_request_transaction_matching/channels/chan_sip.c (original)
+++ team/dvossel/sip_request_transaction_matching/channels/chan_sip.c Tue Jul 13 16:32:42 2010
@@ -7126,8 +7126,9 @@
 		while (iterator && (sip_pvt_ptr = ao2_iterator_next(iterator))) {
 			if (req->method == SIP_RESPONSE) {
 				/* MATCH RESPONSE with DIALOG */
-				/* Verify totag if we have one stored for this dialog */
-				if (!ast_strlen_zero(sip_pvt_ptr->theirtag)) {
+				/* Verify totag if we have one stored for this dialog, but never be strict about this for
+				 * a response until the dialog is established */
+				if (!ast_strlen_zero(sip_pvt_ptr->theirtag) && ast_test_flag(&sip_pvt_ptr->flags[1], SIP_PAGE2_DIALOG_ESTABLISHED)) {
 					if (ast_strlen_zero(totag)) {
 						/* missing totag when they already gave us one earlier */
 						goto not_a_match;




More information about the asterisk-commits mailing list