mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
Rename mobile.conf to chan_mobile.conf, make module support old name, too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@204423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -64,7 +64,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
|||||||
#include "asterisk/manager.h"
|
#include "asterisk/manager.h"
|
||||||
#include "asterisk/io.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_SIZE 48
|
||||||
#define DEVICE_FRAME_FORMAT AST_FORMAT_SLINEAR
|
#define DEVICE_FRAME_FORMAT AST_FORMAT_SLINEAR
|
||||||
@@ -4075,6 +4076,9 @@ static int mbl_load_config(void)
|
|||||||
struct ast_flags config_flags = { 0 };
|
struct ast_flags config_flags = { 0 };
|
||||||
|
|
||||||
cfg = ast_config_load(MBL_CONFIG, config_flags);
|
cfg = ast_config_load(MBL_CONFIG, config_flags);
|
||||||
|
if (!cfg) {
|
||||||
|
cfg = ast_config_load(MBL_CONFIG_OLD, config_flags);
|
||||||
|
}
|
||||||
if (!cfg)
|
if (!cfg)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
;
|
;
|
||||||
; mobile.conf
|
; chan_mobile.conf
|
||||||
; configuration file for chan_mobile
|
; configuration file for chan_mobile
|
||||||
;
|
;
|
||||||
|
|
||||||
Reference in New Issue
Block a user