mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 14:44:17 +00:00
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:
1 parent
3034de6e79
commit
5f876497bc
3 files changed
+94
-23
No files matched your search
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user