mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
make name more specific to avoid namespace bs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4820 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -772,18 +772,18 @@ outbound_reg_t *sofia_reg_find_gateway(char *key)
|
||||
{
|
||||
outbound_reg_t *gateway;
|
||||
|
||||
switch_mutex_lock(globals.hash_mutex);
|
||||
gateway = (outbound_reg_t *) switch_core_hash_find(globals.gateway_hash, key);
|
||||
switch_mutex_unlock(globals.hash_mutex);
|
||||
switch_mutex_lock(mod_sofia_globals.hash_mutex);
|
||||
gateway = (outbound_reg_t *) switch_core_hash_find(mod_sofia_globals.gateway_hash, key);
|
||||
switch_mutex_unlock(mod_sofia_globals.hash_mutex);
|
||||
|
||||
return gateway;
|
||||
}
|
||||
|
||||
void sofia_reg_add_gateway(char *key, outbound_reg_t * gateway)
|
||||
{
|
||||
switch_mutex_lock(globals.hash_mutex);
|
||||
switch_core_hash_insert(globals.gateway_hash, key, gateway);
|
||||
switch_mutex_unlock(globals.hash_mutex);
|
||||
switch_mutex_lock(mod_sofia_globals.hash_mutex);
|
||||
switch_core_hash_insert(mod_sofia_globals.gateway_hash, key, gateway);
|
||||
switch_mutex_unlock(mod_sofia_globals.hash_mutex);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user