[Asterisk-cvs] asterisk/channels chan_modem.c,1.44,1.45

kpfleming kpfleming
Tue Aug 30 22:52:55 CDT 2005


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

Modified Files:
	chan_modem.c 
Log Message:
deprecate chan_modem and its subdrivers


Index: chan_modem.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_modem.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- chan_modem.c	26 Jul 2005 14:40:41 -0000	1.44
+++ chan_modem.c	31 Aug 2005 02:54:06 -0000	1.45
@@ -100,6 +100,8 @@
 
 static int restart_monitor(void);
 
+int dep_warning = 0;
+
 static struct ast_channel *modem_request(const char *type, int format, void *data, int *cause);
 static int modem_digit(struct ast_channel *ast, char digit);
 static int modem_call(struct ast_channel *ast, char *idest, int timeout);
@@ -816,6 +818,11 @@
 	strsep(&stringp, ":");
 	oldformat = format;
 
+	if (!dep_warning) {
+		ast_log(LOG_WARNING, "This channel driver is deprecated.  Please see the UPGRADE.txt file.\n");
+		dep_warning = 1;
+	}
+
 	if (dev[0]=='g' && isdigit(dev[1])) {
 		/* Retrieve the group number */
 		if (sscanf(dev+1, "%u", &groupint) < 1) {




More information about the svn-commits mailing list