FS-6821 mod_gsmopen: fix interface name in log

Fix interface name for logs emitted from mod_gsmopen.cpp during startup
This commit is contained in:
Dušan Dragić 2014-09-14 13:06:31 +02:00
parent bbcd4a86d1
commit f262dbce94
1 changed files with 5 additions and 5 deletions

View File

@ -1486,8 +1486,6 @@ static switch_status_t load_config(int reload_type)
memset(&newconf, '\0', sizeof(newconf)); memset(&newconf, '\0', sizeof(newconf));
globals.GSMOPEN_INTERFACES[interface_id] = newconf; globals.GSMOPEN_INTERFACES[interface_id] = newconf;
tech_pvt = &globals.GSMOPEN_INTERFACES[interface_id];
switch_mutex_init(&globals.GSMOPEN_INTERFACES[interface_id].controldev_lock, SWITCH_MUTEX_NESTED, gsmopen_module_pool); switch_mutex_init(&globals.GSMOPEN_INTERFACES[interface_id].controldev_lock, SWITCH_MUTEX_NESTED, gsmopen_module_pool);
switch_mutex_init(&globals.GSMOPEN_INTERFACES[interface_id].controldev_audio_lock, SWITCH_MUTEX_NESTED, gsmopen_module_pool); switch_mutex_init(&globals.GSMOPEN_INTERFACES[interface_id].controldev_audio_lock, SWITCH_MUTEX_NESTED, gsmopen_module_pool);
@ -1600,6 +1598,8 @@ static switch_status_t load_config(int reload_type)
int res = 0; int res = 0;
int interface_id = i; int interface_id = i;
tech_pvt = &globals.GSMOPEN_INTERFACES[interface_id];
if (strlen(globals.GSMOPEN_INTERFACES[i].name) && !globals.GSMOPEN_INTERFACES[i].active) { if (strlen(globals.GSMOPEN_INTERFACES[i].name) && !globals.GSMOPEN_INTERFACES[i].active) {
WARNINGA("STARTING interface_id=%u\n", GSMOPEN_P_LOG, interface_id); WARNINGA("STARTING interface_id=%u\n", GSMOPEN_P_LOG, interface_id);