[Asterisk-cvs] asterisk/channels chan_sip.c,1.539,1.540

markster at lists.digium.com markster at lists.digium.com
Fri Oct 22 09:14:17 CDT 2004


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

Modified Files:
	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.539
retrieving revision 1.540
diff -u -d -r1.539 -r1.540
--- chan_sip.c	19 Oct 2004 03:17:26 -0000	1.539
+++ chan_sip.c	22 Oct 2004 13:18:20 -0000	1.540
@@ -6823,6 +6823,11 @@
 				p->alreadygone = 1;
 				if (!p->owner)
 					p->needdestroy = 1;
+			} else if ((resp >= 100) && (resp < 200)) {
+				/* Unknown 1xx repsonses should be treated as 100 */
+				if (!strcasecmp(msg, "INVITE")) {
+					sip_cancel_destroy(p);
+				}
 			} 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));
 		}




More information about the svn-commits mailing list