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:
paulc 2011-05-31 10:11:30 +00:00
parent 5770b18d48
commit 1edb2d4353
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -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();