SoftPhoneFactoryCreateSoftPhone(String, Int32, Int32, String) Method |
Creates a new softphone engine.
Namespace: Ozeki.VoIPAssembly: OzekiSDK (in OzekiSDK.dll) Version: 10.4.54.0
Syntaxpublic static ISoftPhone CreateSoftPhone(
string localAddress,
int minPort,
int maxPort,
string userAgent = null
)
Public Shared Function CreateSoftPhone (
localAddress As String,
minPort As Integer,
maxPort As Integer,
Optional userAgent As String = Nothing
) As ISoftPhone
public:
static ISoftPhone^ CreateSoftPhone(
String^ localAddress,
int minPort,
int maxPort,
String^ userAgent = nullptr
)
static member CreateSoftPhone :
localAddress : string *
minPort : int *
maxPort : int *
?userAgent : string
(* Defaults:
let _userAgent = defaultArg userAgent null
*)
-> ISoftPhone
Parameters
- localAddress String
- The local address that will be used for SIP and RTP communication.
- minPort Int32
- Minimum port used for RTP communication.
- maxPort Int32
- Maximum port used for RTP communication.
- userAgent String (Optional)
- User-Agent value which the created softphone will use.
Return Value
ISoftPhone
ExceptionsException | 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