PitelCall class

Manages VoIP call operations including audio/video handling, call states, and media stream management.

This class implements SipUaHelperListener to handle SIP user agent events.

Implemented types

Constructors

PitelCall()

Properties

audioMuted bool
Returns true if audio is muted.
no setter
audioSelected String
no setter
checkConnectivity List<ConnectivityResult>
no setter
checkIsNumber RegExp
final
direction String?
no setter
hashCode int
The hash code for this object.
no setterinherited
holdCall bool
Returns true if call is on hold.
no setter
holdOriginator String?
Returns the originator of the hold action.
no setter
isBusy bool
getter/setter pair
isConnected bool
Returns true if SIP UA is connected.
no setter
isHaveCall bool
Returns true if there is an active call.
no setter
isHoldCall bool
Returns true if call is being held.
no setter
localRenderer PitelRTCVideoRenderer?
Returns the local video renderer.
no setter
localStream → MediaStream?
Returns the local media stream for the current call.
no setter
nameCaller String
no setter
outPhone String
no setter
remoteDisplayName String?
no setter
remoteIdentity String?
Returns the remote party's SIP identity.
no setter
remoteRenderer PitelRTCVideoRenderer?
Returns the remote video renderer.
no setter
remoteStream → MediaStream?
Returns the remote media stream for the current call.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
videoIsOff bool
Returns true if video is turned off.
no setter

Methods

addListener(SipPitelHelperListener listener) → void
answer({String? callId}) bool
busyNow() → void
call(String dest, [bool voiceonly = true]) Future<bool>
callCurrentIsEmpty() bool
callStateChanged(Call call, PitelCallState pitelCallState) → void
override
disposeLocalRenderer() Future<void>
disposeRemoteRenderer() Future<void>
enableSpeakerphone(bool enable) → void
getRegisterState() String
getState({String? callId}) String?
hangup({String? callId}) bool
initializeLocal() Future<void>
Initializes the local video renderer.
initializeRemote() Future<void>
Initializes the remote video renderer.
isVoiceOnly() bool
mute({String? callId}) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onNewMessage(SIPMessageRequest msg) → void
override
outGoingCall({required String phoneNumber, required VoidCallback handleRegisterCall, String nameCaller = '', String domainUrl = 'google.com', bool enableLoading = true}) → void
refer(String target, {String? callId}) bool
register(PitelSettings settings) → void
registrationStateChanged(RegistrationState state) → void
override
removeListener(SipPitelHelperListener listener) → void
resetConnectivity() → void
Resets the connectivity status.
resetNameCaller() → void
Resets the caller's name.
resetOutPhone() → void
Resets the outgoing phone number.
selectAudioRoute({required String speakerSelected}) → void
selectPreferHeadphone() → void
sendDTMF(String tone, {String? callId}) bool
setAudioPlatform() → void
setCallCurrent(String? id) → void
Sets the current call ID.
setIsHoldCall(bool value) → void
Sets the hold call state.
toggleCamera({String? callId}) bool
toggleHold({String? callId}) bool
toString() String
A string representation of this object.
inherited
transportStateChanged(PitelTransportState state) → void
override
unregister() → void

Operators

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