[Asterisk-cvs] asterisk/channels chan_sip.c,1.245,1.246

martinp at lists.digium.com martinp at lists.digium.com
Fri Nov 14 16:07:31 CST 2003


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

Modified Files:
	chan_sip.c 
Log Message:
Do the last thing the right way (thanks Mark)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.245
retrieving revision 1.246
diff -u -d -r1.245 -r1.246
--- chan_sip.c	14 Nov 2003 21:58:54 -0000	1.245
+++ chan_sip.c	14 Nov 2003 22:33:47 -0000	1.246
@@ -6266,7 +6266,7 @@
 {
 	struct sip_pvt *p = chan->pvt->pvt;
 	char *mode;
-	if (strcasecmp(chan->name, "SIP")) {
+	if (chan->type != type) {
 		ast_log(LOG_WARNING, "Call this application only on SIP incoming calls\n");
 		return 0;
 	}




More information about the svn-commits mailing list