Call class
The Call class which is used for call related methods such as hold/mute or creating invitations, declining calls, etc.
Constructors
- Call(TxSocket txSocket, TelnyxClient _txClient, String sessid, String ringToneFile, String ringBackFile, CallHandler callHandler, Function callEnded)
Properties
- audioService → AudioService
-
final
- callEnded → Function
-
final
- callHandler ↔ CallHandler
-
getter/setter pair
- callId ↔ String?
-
getter/setter pair
- callState ↔ CallState
-
getter/setter pair
-
customHeaders
↔ Map<
String, String> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- mobileAudioPlayer → AssetsAudioPlayer
-
final
- onHold ↔ bool
-
getter/setter pair
- peerConnection ↔ Peer?
-
getter/setter pair
- ringBackFile → String
-
final
- ringToneFile → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessid → String
-
final
- sessionCallerName ↔ String
-
getter/setter pair
- sessionCallerNumber ↔ String
-
getter/setter pair
- sessionClientState ↔ String
-
getter/setter pair
- sessionDestinationNumber ↔ String
-
getter/setter pair
- txSocket → TxSocket
-
final
Methods
-
acceptCall(
IncomingInviteParams invite, String callerName, String callerNumber, String clientState, {bool isAttach = false, Map< String, String> customHeaders = const {}}) → Call -
Accepts the incoming call specified via the
invite
parameter, sending your local specifiedcallerName
,callerNumber
andclientState
-
dtmf(
String? callID, String tone) → void -
Sends a DTMF message with the chosen
tone
to the call specified via thecallID
-
enableSpeakerPhone(
bool enable) → void -
endCall(
String? callID) → void -
Attempts to end the call identified via the
callID
-
newInvite(
String callerName, String callerNumber, String destinationNumber, String clientState, {Map< String, String> customHeaders = const {}}) → void -
Creates an invitation to send to a
destinationNumber
or SIP Destination using the providedcallerName
,callerNumber
and aclientState
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onHoldUnholdPressed(
) → void - Either places the call on hold, or unholds the call based on the current hold state.
-
onMuteUnmutePressed(
) → void - Either mutes or unmutes local audio based on the current mute state
-
onRemoteSessionReceived(
String? sdp) → void -
playAudio(
String filePath) → void -
playRingtone(
String filePath) → void -
stopAudio(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited