Click or drag to resize

SoftPhoneFactoryCreateSoftPhone Method (IPAddress, Int32, Int32, String)

Creates a new softphone engine.

Namespace:  Ozeki.VoIP
Assembly:  OzekiSDK (in OzekiSDK.dll) Version: 10.3.199.0
Syntax
public static ISoftPhone CreateSoftPhone(
	IPAddress localAddress,
	int minPort,
	int maxPort,
	string userAgent = null
)

Parameters

localAddress
Type: System.NetIPAddress
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.
userAgent (Optional)
Type: SystemString
User-Agent value which the created softphone will use.

Return Value

Type: ISoftPhone
Exceptions
ExceptionCondition
LicenseExceptionThrows a license exception, when the trial period has expired.
VoIPExceptionThrows a VoIP exception, when the min port is higher than the max port.
See Also