[svn-commits] oej: branch oej/darjeeling-prack-1.8 r369545 - /team/oej/darjeeling-prack-1.8...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jul 3 02:01:48 CDT 2012


Author: oej
Date: Tue Jul  3 02:01:46 2012
New Revision: 369545

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=369545
Log:
Make sure we really answer

Modified:
    team/oej/darjeeling-prack-1.8/channels/chan_sip.c

Modified: team/oej/darjeeling-prack-1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/darjeeling-prack-1.8/channels/chan_sip.c?view=diff&rev=369545&r1=369544&r2=369545
==============================================================================
--- team/oej/darjeeling-prack-1.8/channels/chan_sip.c (original)
+++ team/oej/darjeeling-prack-1.8/channels/chan_sip.c Tue Jul  3 02:01:46 2012
@@ -6525,6 +6525,7 @@
 	sip_pvt_lock(p);
 	if (ast_test_flag(&p->flags[2], SIP_PAGE3_INVITE_WAIT_FOR_PRACK)) {
 		ast_set_flag(&p->flags[2], SIP_PAGE3_ANSWER_WAIT_FOR_PRACK);
+		ast_debug(2, "<-<-<--<-<-<-< HOLDING Answer while waiting for PRACK to arrive on channel %s\n", ast->name);
 		return 0;
 	}
 	if (ast->_state != AST_STATE_UP) {
@@ -22534,8 +22535,9 @@
 		/* If the response sent reliably contained an SDP, we're not allowed to  answer
 		   until we have a PRACK response 
 		 */
+		ast_debug(2, "-<-<--<-<-<-<- Finally a good time to answer call (PRACK arrived) %s \n", p->owner->name);
+		ast_clear_flag(&p->flags[2], SIP_PAGE3_ANSWER_WAIT_FOR_PRACK);
 		sip_answer(p->owner);
-		ast_clear_flag(&p->flags[2], SIP_PAGE3_ANSWER_WAIT_FOR_PRACK);
 	}
 	return 0;
 }




More information about the svn-commits mailing list