Questions tagged [twilio-javascript]

28 questions
3
votes
1 answer

In twilio-video, how can I subscribe to remote tracks at later time if I connected to a room with automaticSubscription set to false?

Based on example provided in docs for twilio-video v2.x I can connect to a chat room without automatically subscribing to any tracks published by remote participants like this: const { connect } = require('twilio-video'); const room = await…
mlst
  • 2,688
  • 7
  • 27
  • 57
2
votes
1 answer

How to specify statusCallbackEvent in Twillio Programmable Video statusCallback while creating a room?

Is there any way to specify the statusCallbackEvent while creating a room using Room API? Like in TwiML we can specify the statusCallbackEvent docs here. Here is the code snippet for room creatiion: // Create Room using twilio API …
2
votes
1 answer

Validate Twilio webhook incoming request with API key and secret, instead of using Auth Token

Instead of using Twilio Auth Token to validate the incoming webhook request from twilo, I want to use API key - API Key Secret combination to validate the request. I am not being able to find an option in twilio lib
1
vote
1 answer

twilio/voice-sdk does not listen incoming call listener when I call on my twilio number

I am using the following stack with versions Laravel (9.11) vue.js (2.x) php (8.1.0) twilio/voice-sdk (2.1.1) twilio/sdk (6.37) Workflow of my application: I am making an inbound contact center for voice calls by using a task router, where a…
1
vote
0 answers

Twilio test credentials region permission error

I'm receiving the following error when using test credentials to create an SMS message using the Javascript SDK (v3.54.2): function call: await this.twilio.messages.create({...}) Error Message: Error: Permission to send an SMS has not been enabled…
1
vote
1 answer

Switch to default audio input device when it's connected in js

I'm using twilio sdk to implement web calling app. Let's say I'm making a call to someone with my laptop devices (mic and speakers). During the call I plugged-in my headset. In the system both audio input and output devices are changed. The call…
1
vote
1 answer

POST request errors out when CURL works

I’m trying to use a cloudflare worker (Pasted below) to send an SMS message via the Twilio API. The CURL request (also pasted below) I’m basing the worker off of works. Based on the 400 error from the worker the message body isn’t passed in…
stanley
  • 1,113
  • 1
  • 12
  • 26
1
vote
1 answer

Remove user from Twilio Chat Channel when tab is closed

Anybody is aware about a method to automatically unsubscribe/remove a user from a Twilio Programable Chat channel, after some time of inactivity ? The most simple scenario that comes to my mind is the one where a user closes the browser tab without…
colxi
  • 7,640
  • 2
  • 45
  • 43
0
votes
0 answers

How to retrieve "to" number in Twilio Voice callbacks when using React frontend and Python backend?

I have created a Twilio application in Python using the client like this: application = client.applications.create(voice_method='POST', voice_url='', …
0
votes
0 answers

Twilio: List Numbers from Incoming Group Text MMS

I understand that responding in a group chat from a Twilio client is not supported as of May 2022. However, all I need to do for my application is retrieve the numbers involved in an incoming webhook request. For example, a user starts a group…
epietrowicz
  • 334
  • 1
  • 4
  • 16
0
votes
1 answer

Twilio: Getting "Conflict" error while adding the participant to the Conversion

Facing issue while adding the non chat participants using the JS SDK in twilio conversation I have done following things to add the non chat participants in the JS SDK Twilio.Conversations.Client.create(token).then(client => { …
0
votes
0 answers

I'm using the serverless Twilio Voice JavaScript quickstart. Can I set two audio output devices at the same time here?

I've got a project that is built on the serverless Twilio Voice JavaScript quickstart. Here's a link to the quickstart. https://www.twilio.com/docs/voice/sdks/javascript/get-started#information Below is the chunk of code where it allows the user to…
Sully1570
  • 43
  • 6
0
votes
0 answers

Twilio client JavaScript SDK fails to initialize

I am try to initialize Twilio SDK using a Twilio JWT Token. Below is my code: