Class SipChannelSettings
Class containing configuration settings for building SIPChannel derived classes.
Inherited Members
Namespace: SipLib.Channels
Assembly: SipLib.dll
Syntax
public class SipChannelSettings
Properties
| Edit this page View SourceAcceptClientCertificate
Delegate function that is called to allow the user of the SIPTLSChannel class to decide whether or not to accept the connection based on the X.509 client certificate provided by the client. The function should return true to allow the connection or false to reject the connection. Used only for the SIPTLSChannel class.
Declaration
public AcceptCertificateDelegate? AcceptClientCertificate { get; set; }
Property Value
Type | Description |
---|---|
AcceptCertificateDelegate |
AcceptConnection
Delegate function that can be provided by the user of a SIPConnection derived class to determine whether or not to accept a SIP connection request. The function should return true to accept a connection request or false to refuse it.
Declaration
public AcceptConnectionDelegate? AcceptConnection { get; set; }
Property Value
Type | Description |
---|---|
AcceptConnectionDelegate |
AcceptServerCertificate
Delegate function that is called to allow the user of the SIPTLSChannel class to decide whether or not to accept the connection based on the X.509 server certificate provided by the remote server when connecting as a client. The function should return true to allow the connection or false to cancel the connection. Used only for the SIPTLSChannel class.
Declaration
public AcceptCertificateDelegate? AcceptServerCertificate { get; set; }
Property Value
Type | Description |
---|---|
AcceptCertificateDelegate |
LocalIPv4Address
Specifies the local IPv4 address that the SIPChannel will listen on. Optional if LocalIPv6Address is provided.
Declaration
public IPAddress? LocalIPv4Address { get; set; }
Property Value
Type | Description |
---|---|
IPAddress |
LocalIPv6Address
Specifies the local IPv6 address that the SIPChannel will listen on. Optional if LocalIPv4Address is provided.
Declaration
public IPAddress? LocalIPv6Address { get; set; }
Property Value
Type | Description |
---|---|
IPAddress |
LocalSipPort
Local port number that the SIPChannel will listen on. The default value is 5060.
Declaration
public int LocalSipPort { get; set; }
Property Value
Type | Description |
---|---|
int |
LocalSipsPort
Local port number that the SIPChannel will listen on for SIP over TLS (SIPS). The default value is 5061.
Declaration
public int LocalSipsPort { get; set; }
Property Value
Type | Description |
---|---|
int |
LocalUser
Specifies the user portion of the SIPURI for the Contact header for the SIPChannel. Optional.
Declaration
public string? LocalUser { get; set; }
Property Value
Type | Description |
---|---|
string |
UseMutualAuthentication
If true, then then generated the SIPTLSChannel will provide a client X.509 certificate when connecting as a client and will require that clients making a connection request to provide a client X.509 certificate when acting as a server.
Declaration
public bool UseMutualAuthentication { get; set; }
Property Value
Type | Description |
---|---|
bool |