mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-08 12:34:53 +00:00
add killgw _all_ to delete all gws
This commit is contained in:
1 parent
b6aaea1e9e
commit
89f399832d
3 files changed
+24
-5
No files matched your search
@@ -3932,6 +3932,19 @@ switch_status_t sofia_glue_add_profile(char *key, sofia_profile_t *profile)
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
void sofia_glue_del_every_gateway(sofia_profile_t *profile)
|
||||
{
|
||||
sofia_gateway_t *gp = NULL;
|
||||
|
||||
switch_mutex_lock(mod_sofia_globals.hash_mutex);
|
||||
for (gp = profile->gateways; gp; gp = gp->next) {
|
||||
sofia_glue_del_gateway(gp);
|
||||
}
|
||||
switch_mutex_unlock(mod_sofia_globals.hash_mutex);
|
||||
}
|
||||
|
||||
|
||||
void sofia_glue_del_gateway(sofia_gateway_t *gp)
|
||||
{
|
||||
if (!gp->deleted) {
|
||||
|
||||
Reference in new issue
Block a user