private void KillGateway()
{
if (!String.IsNullOrEmpty(old_gateway_id))
Utils.api_exec("sofia", "profile softphone killgw " + old_gateway_id);
}
public static void RemoveAccount(Account account) { account.KillGateway(); account.is_default_account = false; accounts.Remove(account); ReloadSofia(); }