public static new OutgoingSIPTrunk Load(string name) { OutgoingSIPTrunk ret = null; Connection conn = ConnectionPoolManager.GetConnection(typeof(Gateway)); List <Org.Reddragonit.Dbpro.Structure.Table> tmp = conn.Select(typeof(Gateway), new SelectParameter[] { new EqualParameter("Name", name) }); if (tmp.Count > 0) { ret = (OutgoingSIPTrunk)tmp[0]; } conn.CloseConnection(); return(ret); }
public sDeployedOutgoingSipTrunk(OutgoingSIPTrunk trunk) { _name = trunk.Name; _userName = trunk.UserName; _password = trunk.Password; _register = trunk.Register; _regType = trunk.RegistrationType; _context = trunk.Profile.Context.Name; _pingInterval = trunk.PingInterval; _retrySeconds = trunk.RetrySeconds; _fromUser = trunk.FromUser; _fromDomain = trunk.FromDomain; _extension = trunk.Extension; _proxy = trunk.Proxy; _registerProxy = trunk.RegisterProxy; _expireSeconds = trunk.ExpireSeconds; _realm = trunk.Realm; _profileName = trunk.Profile.Name; }