[Asterisk-cvs] asterisk/channels chan_sip.c,1.886,1.887

kpfleming kpfleming
Thu Oct 13 16:10:01 CDT 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv21492/channels

Modified Files:
	chan_sip.c 
Log Message:
send "100 Trying" when we receive PROCEEDING, unless "183 Session Progress" has already been sent


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.886
retrieving revision 1.887
diff -u -d -r1.886 -r1.887
--- chan_sip.c	12 Oct 2005 14:40:04 -0000	1.886
+++ chan_sip.c	13 Oct 2005 20:04:38 -0000	1.887
@@ -2629,9 +2629,15 @@
 		}
 		res = -1;
 		break;
-	case AST_CONTROL_PROGRESS:
 	case AST_CONTROL_PROCEEDING:
 		if ((ast->_state != AST_STATE_UP) && !ast_test_flag(p, SIP_PROGRESS_SENT) && !ast_test_flag(p, SIP_OUTGOING)) {
+			transmit_response(p, "100 Trying", &p->initreq);
+			break;
+		}
+		res = -1;
+		break;
+	case AST_CONTROL_PROGRESS:
+		if ((ast->_state != AST_STATE_UP) && !ast_test_flag(p, SIP_PROGRESS_SENT) && !ast_test_flag(p, SIP_OUTGOING)) {
 			transmit_response_with_sdp(p, "183 Session Progress", &p->initreq, 0);
 			ast_set_flag(p, SIP_PROGRESS_SENT);	
 			break;




More information about the svn-commits mailing list