Delegate AcceptConnectionDelegate
Delegate definition for a function that a SIPChannel user can provide to determine whether or not to allow a connection from a remote SIP endpoint.
Namespace: SipLib.Channels
Assembly: SipLib.dll
Syntax
public delegate bool AcceptConnectionDelegate(SIPProtocolsEnum protocol, IPEndPoint remoteEndPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| SIPProtocolsEnum | protocol | Specifies the protocol that the connection request came in on. |
| IPEndPoint | remoteEndPoint | IPEndPoint (IP address and port) of the remote SIP endpoint that is trying to establish a connection. |
Returns
| Type | Description |
|---|---|
| bool | Return true if the connection request is to be allowed or false if the connection request is to be refused. |