Releases: twilio/twilio-voice.js
2.3.2
2.3.2 (February 27, 2023)
Bug Fixes
- Fixed an issue where a Twilio error is not returned when microphone access is blocked. Thank you @SiimMardus and @ostap0207 for your contribution.
2.3.1
2.3.1 (February 3, 2023)
Bug Fixes
- Fixed an issue where incoming sound will not stop playing after the call is disconnected. Thank you @kamalbennani for your contribution.
2.3.0
2.3.0 (January 23, 2023)
Changes
This release includes updated DNS names for Twilio Edge Locations. The Voice JS SDK uses these Edge Locations to connect to Twilio’s infrastructure via the parameter Device.Options.edge
. The current usage of this parameter does not change as the SDK automatically maps the edge value to the new DNS names.
Additionally, you need to update your Content Security Policies (CSP) if you have it enabled for your application. You also need to update your network configuration such as firewalls, if necessary, to allow connections to the new DNS names and IP addresses.
2.2.0
2.2.0 (December 5, 2022)
New Features
Call Message Events (Beta)
The SDK can now send and receive custom messages to and from Twilio's backend via the following new Call
APIs.
Please visit this page for more details about this feature. Additionally, please see the following for more information on how to send and receive messages on the server.
NOTE: This feature should not be used with PII.
Example
const device = new Device(token, options);
const setupCallHandlers = call => {
call.on('messageReceived', message => messageReceivedHandler(message));
call.on('messageSent', message => messageSentHandler(message));
};
// For outgoing calls
const call = await device.connect();
setupCallHandlers(call);
// For incoming calls
device.on('incoming', call => setupCallHandlers(call));
await device.register();
// For sending a message
const eventSid = call.sendMessage({
content: { foo: 'foo' },
messageType: Call.MessageType.UserDefinedMessage,
});
2.1.2
2.1.2 (October 26, 2022)
Bug Fixes
- Fixed an issue where insights data stops getting published after calling
device.updateOptions
.