aboutsummaryrefslogtreecommitdiffstats
path: root/addons
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-06-30 17:16:56 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-06-30 17:16:56 +0000
commitc64c92ed31dea1c6ea6ccbaf070ab38120b8776f (patch)
tree38e54074adeb261dcfdb55ad9873f35a0f3d02a4 /addons
parentf1a1058b498754f7584050f7a14457f57745e9dd (diff)
Rename mobile.conf to chan_mobile.conf, make module support old name, too
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@204423 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'addons')
-rw-r--r--addons/chan_mobile.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/chan_mobile.c b/addons/chan_mobile.c
index 415ca617e..95aed48fd 100644
--- a/addons/chan_mobile.c
+++ b/addons/chan_mobile.c
@@ -64,7 +64,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/manager.h"
#include "asterisk/io.h"
-#define MBL_CONFIG "mobile.conf"
+#define MBL_CONFIG "chan_mobile.conf"
+#define MBL_CONFIG_OLD "mobile.conf"
#define DEVICE_FRAME_SIZE 48
#define DEVICE_FRAME_FORMAT AST_FORMAT_SLINEAR
@@ -4075,6 +4076,9 @@ static int mbl_load_config(void)
struct ast_flags config_flags = { 0 };
cfg = ast_config_load(MBL_CONFIG, config_flags);
+ if (!cfg) {
+ cfg = ast_config_load(MBL_CONFIG_OLD, config_flags);
+ }
if (!cfg)
return -1;