SoftPhoneFactoryCreateSoftPhone Method (Int32, Int32, String) |
Creates a new softphone engine.
Namespace: Ozeki.VoIPAssembly: OzekiSDK (in OzekiSDK.dll) Version: 1.8.12.0 (1.8.12)
Syntax public static ISoftPhone CreateSoftPhone(
int minPort,
int maxPort,
string userAgent = null
)
Public Shared Function CreateSoftPhone (
minPort As Integer,
maxPort As Integer,
Optional userAgent As String = Nothing
) As ISoftPhone
public:
static ISoftPhone^ CreateSoftPhone(
int minPort,
int maxPort,
String^ userAgent = nullptr
)
static member CreateSoftPhone :
minPort : int *
maxPort : int *
?userAgent : string
(* Defaults:
let _userAgent = defaultArg userAgent null
*)
-> ISoftPhone
Parameters
- minPort
- Type: SystemInt32
Minimum port used for RTP communication. - maxPort
- Type: SystemInt32
Maximum port used for RTP communication. - userAgent (Optional)
- Type: SystemString
User-Agent value which the created softphone will use.
Return Value
Type:
ISoftPhoneExceptions Exception | Condition |
---|
LicenseException | Throws a license exception, when the trial period has expired. |
VoIPException | Throws a VoIP exception, when the min port is higher than the max port. |
See Also