[asterisk-commits] trunk r9506 - /trunk/res/res_smdi.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Feb 11 00:05:51 MST 2006


Author: markster
Date: Sat Feb 11 01:05:49 2006
New Revision: 9506

URL: http://svn.digium.com/view/asterisk?rev=9506&view=rev
Log:
Fix SMDI to not blow up asterisk when there's no config file.

Modified:
    trunk/res/res_smdi.c

Modified: trunk/res/res_smdi.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_smdi.c?rev=9506&r1=9505&r2=9506&view=diff
==============================================================================
--- trunk/res/res_smdi.c (original)
+++ trunk/res/res_smdi.c Sat Feb 11 01:05:49 2006
@@ -540,8 +540,11 @@
 	conf = ast_config_load(config_file);
 
 	if (!conf) {
-		ast_log(LOG_ERROR, "Unable to load config %s\n", config_file);
-		return -1;
+		if (reload)
+			ast_log(LOG_NOTICE, "Unable to reload config %s: SMDI untouched\n", config_file);
+		else
+			ast_log(LOG_NOTICE, "Unable to load config %s: SMDI disabled\n", config_file);
+		return 1;
 	}
 
 	/* Mark all interfaces that we are listening on.  We will unmark them



More information about the asterisk-commits mailing list