PitelClient class

The main client class for Pitel VoIP SDK.

This class provides methods to manage SIP registration, authentication, and VoIP call operations. Use getInstance to access the singleton instance.

Constructors

PitelClient()

Properties

domainTest String
final
hashCode int
The hash code for this object.
no setterinherited
isTest bool
final
passwordTest String
final
pitelCall PitelCall
final
portTest int
final
profileUser PitelProfileUser
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
usernameTest String
final
wssTest String
final

Methods

call(String dest, [bool voiceonly = true]) Future<Either<bool, Error>>
deleteExtRegisterAor({required SipInfoData sipInfoData, required PnPushParams pnPushParams}) Future<DeleteAorExtRes?>
login(String username, String password, {String? fcmToken}) Future<bool>
logoutExtension({required SipInfoData sipInfoData, required PushNotifParams pushNotifParams}) Future<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerDeviceToken({required String deviceToken, required String platform, required String bundleId, required String domain, required String extension, required String appMode, required String fcmToken, String deviceName = '', String deviceModel = '', String deviceBrand = ''}) Future<RegisterDeviceTokenRes?>
registerSipWithoutFCM(PnPushParams pnPushParams) Future<PitelSettings>
Registers SIP account with custom push notification parameters.
release() → dynamic
removeDeviceToken({required String deviceToken, required String domain, required String extension}) Future<RemoveDeviceTokenReq?>
setExtensionInfo(GetExtensionResponse extensionResponse) → void
toString() String
A string representation of this object.
inherited
turnConfig() Future<TurnConfigRes?>

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getInstance() PitelClient
Returns the singleton instance of PitelClient.