using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SipComponent { /// /// Class used to make a windows Linx using Adi's protocol /// Can have only one sip call at a time /// Version 2 /// public class SipClientClassLinxTest2 : SipClientClassSD { /// /// Constructor for the SipClientClassLinxTest2 /// /// domain name, name or IP address of sip server /// port number of the sip server /// port number of the local computer used for sip protocol /// user name on the sip server /// password on the sip server /// interval to send sip registration requests. Value is in seconds /// Miliseconds for the buffer that stores the received voice packets /// Number of ms to wait before the sip request times out /// Port used for Socket.IO signalling /// Local Ip adress. If not specified, the class will search for a local ip on the same network with the sip server ip public SipClientClassLinxTest2(string sipDomain, int sipDomainPort, int localSipPort, string userName, string password, int registrationInterval, int bufferMiliseconds, int requestTimeout, int socketIOport, string localIPAddress = null) : base(sipDomain, sipDomainPort, localSipPort, userName, password, registrationInterval, bufferMiliseconds, requestTimeout, socketIOport, localIPAddress, false) { base.MaxNbOfDialogs = 1; } #region Public Members /// /// Gets or sets a value indicating if the Asterisk server confirms sms /// Default value is false /// public bool SmsConfirmationFromServer { get { return base._smsConfirmationFromServer; } set { base._smsConfirmationFromServer = value; } } /// /// Method used to acknowledge an emergency alarm sent by a Linx device /// /// The sip id of the Linx device public void AcknowledgeEmergencyAlarm(string linxID) { base.AcknowledgeLinxEmergencyAlarm(linxID); } #endregion } }