Skip to content

Releases: twilio/twilio-voice.js

2.3.2

27 Feb 18:45
Compare
Choose a tag to compare

2.3.2 (February 27, 2023)

Bug Fixes

2.3.1

03 Feb 23:20
Compare
Choose a tag to compare

2.3.1 (February 3, 2023)

Bug Fixes

2.3.0

23 Jan 22:54
Compare
Choose a tag to compare

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

05 Dec 21:56
Compare
Choose a tag to compare

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

26 Oct 16:36
Compare
Choose a tag to compare

2.1.2 (October 26, 2022)

Bug Fixes

  • Fixed an issue where insights data stops getting published after calling device.updateOptions.