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