mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-31 07:34:19 +00:00
more changes to sofia to make better use of the directories
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5043 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
d038cdbfdb
commit
01f9b3f1c8
8 files changed
+282
-190
No files matched your search
@@ -838,13 +838,18 @@ void sofia_reg_release_gateway(sofia_gateway_t *gateway)
|
||||
switch_thread_rwlock_unlock(gateway->profile->rwlock);
|
||||
}
|
||||
|
||||
void sofia_reg_add_gateway(char *key, sofia_gateway_t * gateway)
|
||||
switch_status_t sofia_reg_add_gateway(char *key, sofia_gateway_t *gateway)
|
||||
{
|
||||
switch_status_t status = SWITCH_STATUS_FALSE;
|
||||
|
||||
switch_mutex_lock(mod_sofia_globals.hash_mutex);
|
||||
switch_core_hash_insert(mod_sofia_globals.gateway_hash, key, gateway);
|
||||
if (!switch_core_hash_find(mod_sofia_globals.gateway_hash, key)) {
|
||||
status = switch_core_hash_insert(mod_sofia_globals.gateway_hash, key, gateway);
|
||||
}
|
||||
switch_mutex_unlock(mod_sofia_globals.hash_mutex);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user