using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CSharpSIPPhone
{
    public class SIPPhoneCfgWrap
    {
        //sip account info
        public string DisplayName;
        public string UserName;
        public string Password;
        public string Domain;
        public bool RegisterDomain;

        //network
        public ushort SIPPort;
        public ushort RTPPort;
        public string StunServer;
        public bool UseNATAddr;

        //audio codec
        public string AudioCodecs;

        //audio device
        public string Speaker;
        public string Microphone;
        public bool RecordCalls;
        public string RecordRoot;

        public int Protocol; //0 = UDP, 1 = TCP, 2 = TLS

        public SIPPhoneCfgWrap()
        {
            DisplayName = "";
            UserName = "";
            Password = "";
            Domain = "";
            RegisterDomain = true;

            SIPPort = 5066;
            RTPPort = 12400;
            StunServer = "";
            UseNATAddr = false;

            AudioCodecs = "0,8,3";

            Speaker = "";
            Microphone = "";
            RecordCalls = false;
            RecordRoot = "";

            Protocol = 0;
        }

    }
}
