Example #1
0
 public void SendSipMsgToClient(string sipMsg, string host, ushort port)
 {
     NET.IPEndPoint ipEp = new System.Net.IPEndPoint(
         ProgramSettings.IpFromHost(host),
         port
         );
     SendSipMsgToClient(sipMsg, ipEp);
 }
Example #2
0
        public void SetServer(string sipServerHost, ushort sipServerPort)
        {
            if (m_RemoteHostSet)
            {
                throw new InvalidOperationException();
            }
            if (null == sipServerHost)
            {
                throw new ArgumentNullException("sipServerHost");
            }

            m_RemoteEp = new NET.IPEndPoint(
                ProgramSettings.IpFromHost(sipServerHost),
                sipServerPort
                );
            m_RemoteHostSet = true;
        }