[Asterisk-cvs] asterisk/channels chan_sip.c,1.510.2.9,1.510.2.10

russell at lists.digium.com russell at lists.digium.com
Sun Oct 24 17:00:54 CDT 2004


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

Modified Files:
      Tag: v1-0
	chan_sip.c 
Log Message:
Handle unknown 1xx reponses as 100 (bug #2698)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.510.2.9
retrieving revision 1.510.2.10
diff -u -d -r1.510.2.9 -r1.510.2.10
--- chan_sip.c	23 Oct 2004 12:23:25 -0000	1.510.2.9
+++ chan_sip.c	24 Oct 2004 21:04:32 -0000	1.510.2.10
@@ -6884,8 +6884,18 @@
 				p->alreadygone = 1;
 				if (!p->owner)
 					p->needdestroy = 1;
+			} else if ((resp >= 100) && (resp < 200)) {
+				if (!strcasecmp(msg, "INVITE")) {
+ 					sip_cancel_destroy(p);
+					if (!ast_strlen_zero(get_header(req, "Content-Type")))
+						process_sdp(p, req);
+					if (p->owner) {
+						/* Queue a progress frame */
+						ast_queue_control(p->owner, AST_CONTROL_PROGRESS);
+					}
+ 				}
 			} else
-				ast_log(LOG_NOTICE, "Dunno anything about a %d %s response from %s\n", resp, rest, p->owner ? p->owner->name : ast_inet_ntoa(iabuf, sizeof(iabuf), p->sa.sin_addr));
+				ast_log(LOG_NOTICE, "Don't know anything about a %d %s response from %s\n", resp, rest, p->owner ? p->owner->name : ast_inet_ntoa(iabuf, sizeof(iabuf), p->sa.sin_addr));
 		}
 	} else {
 		if (sip_debug_test_pvt(p))




More information about the svn-commits mailing list