Made the CDR and registration filenames parametrizable.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4419 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
5770b18d48
commit
1edb2d4353
|
@ -127,7 +127,8 @@ void CdrFilePlugin::initialize()
|
|||
{
|
||||
Output("Initializing module CdrFile");
|
||||
Configuration cfg(Engine::configFile("cdrfile"));
|
||||
const char *file = cfg.getValue("general","file");
|
||||
String file = cfg.getValue("general","file");
|
||||
Engine::self()->runParams().replaceParams(file);
|
||||
if (file && !m_handler) {
|
||||
m_handler = new CdrFileHandler("call.cdr");
|
||||
Engine::install(m_handler);
|
||||
|
|
|
@ -365,6 +365,7 @@ void RegfilePlugin::initialize()
|
|||
m_init = true;
|
||||
s_create = s_cfg.getBoolValue("general","autocreate",false);
|
||||
String conf = s_cfg.getValue("general","file");
|
||||
Engine::self()->runParams().replaceParams(conf);
|
||||
if (conf) {
|
||||
s_accounts = conf;
|
||||
s_accounts.load();
|
||||
|
|
Loading…
Reference in New Issue