Exemple #1
0
		protected Profile(Profile profile)
		{			
			m_name = profile.m_name;
			m_readOnly = profile.m_readOnly;			
			Changing = profile.Changing;
			Changed = profile.Changed;
		}
Exemple #2
0
        public YatePBX()
        {
            try
            {
                if (VMuktiAPI.VMuktiInfo.strExternalPBX == "false")
                {
                    if (!System.IO.File.Exists(AppDomain.CurrentDomain.BaseDirectory.ToString() + "Assamblies"))
                    {
                        //new WebClient().DownloadFile("http://" + VMuktiAPI.VMuktiInfo.BootStrapIPs[0] + "/VMukti/Assamblies.zip", AppDomain.CurrentDomain.BaseDirectory.ToString() + "Assamblies.zip");
                        FastZip fz = new FastZip();
                        fz.ExtractZip(AppDomain.CurrentDomain.BaseDirectory.ToString() + "Assamblies.zip", AppDomain.CurrentDomain.BaseDirectory.ToString() + "Assamblies", null);
                    }
                    PBXCredential = new ClsCredential();
                    myProf = new VMukti.Profile.Ini(AppDomain.CurrentDomain.BaseDirectory.ToString() + @"\Assamblies\conf.d\ysipchan.conf");
                }
            }
            catch (Exception exp)
            {
                exp.Data.Add("My Key", "YatePBX()--:--YatePBX.cs--:--" + exp.Message + " :--:--");
                ClsException.LogError(exp);
                ClsException.WriteToErrorLogFile(exp);

            }
        }