Here you can learn what you can do during an active call.
How to mute the microphone
During an active call, use the muteMicrophone method to mute your microphone.
Use the unmuteMicrophone method to unmute it.
How to mute the sound
To mute the sound from all the participants, use the mutePlayback method.
Use the unmutePlayback method to turn the sound on.
How to hold a call
How to send a tone signal
To send a DTMF signal to the call, use the sendTone method. It accepts the following values: numbers (0-9), *, #.
To process an incoming DTMF tone to your call, subrcribe to the ToneReceived in your scenario
How to send data to the call
To send extra headers while answering a call, pass them via the extraHeaders parameter of the Call.answer method:
To receive extra headers after the call is disconnected, get them from the headers property of the call object. See the scenario example below.
Send a message
You can send a message during a call. To do this, call the sendMessage method within the Call class. See the code example to understand how it works:
To receive a message sent to the call, subscribe to the MessageReceived event. Additionally, you can receive extra headers from this event.
Custom data is a property where you can store any additional information. There are two custom data properties:
In the VoxEngine instance
In the Call object itself
You can use these properties to store a string up to 2000 characters.
How to toggle video sending
You can enable and disable sending video to your call. To do this, use the sendVideo method. Pass false to this method to stop sending video or pass true to this method to resume sending video.
If you initialize your SDK with both sendVideo and receiveVideo parameters set to false, you cannot enable video during the call. To be able to toggle sending video, please initialize your SDK with at least the receiveVideo parameter set to true.