freetdm: - Added ftdm_usage command to check if a channel has calls (ie, is busy)

- Refactored ftdm CLI management to allow standalone APIs to be registered
         - Minor logging changes here and there
This commit is contained in:
Moises Silva committed 2013-03-08 15:15:07 -05:00
1 parent 3034de6e79
commit 5f876497bc
3 files changed
+94 -23

No files matched your search

+1 -1
View File
@@ -77,7 +77,7 @@ int ftdm_config_open_file(ftdm_config_t *cfg, const char *file_path)
memset(cfg, 0, sizeof(*cfg));
cfg->lockto = -1;
ftdm_log(FTDM_LOG_DEBUG, "Configuration file is %s.\n", path);
ftdm_log(FTDM_LOG_DEBUG, "Configuration file is %s\n", path);
f = fopen(path, "r");
if (!f) {
+1
View File
@@ -5116,6 +5116,7 @@ static ftdm_status_t load_config(void)
sprintf(chan_config.group_name, "__default");
if (!ftdm_config_open_file(&cfg, cfg_name)) {
ftdm_log(FTDM_LOG_ERROR, "Failed to open configuration file %s\n", cfg_name);
return FTDM_FAIL;
}