SoftPhoneFactoryCreateSoftPhone Method (String, Int32, Int32) |
Creates a new softphone engine.
Namespace: Ozeki.VoIPAssembly: OzekiSDK (in OzekiSDK.dll) Version: 1.3.9.0
Syntaxpublic static ISoftPhone CreateSoftPhone(
string localAddress,
int minPort,
int maxPort
)
Public Shared Function CreateSoftPhone (
localAddress As String,
minPort As Integer,
maxPort As Integer
) As ISoftPhone
public:
static ISoftPhone^ CreateSoftPhone(
String^ localAddress,
int minPort,
int maxPort
)
static member CreateSoftPhone :
localAddress : string *
minPort : int *
maxPort : int -> ISoftPhone
Parameters
- localAddress
- Type: SystemString
The local address that will be used for SIP and RTP communication. - minPort
- Type: SystemInt32
Minimum port used for RTP communication. - maxPort
- Type: SystemInt32
Maximum port used for RTP communication.
Return Value
Type:
ISoftPhone
ExceptionsException | Condition |
---|
[!:Common.Exceptions.LicenseException] | Throws a license exception, when the trial period has expired. |
[!:Common.Exceptions.VoIPException] | Throws a VoIP exception, when the min port is higher than the max port. |
See Also