Questions tagged [twilio-node]

48 questions
3
votes
1 answer

Inferring the ReturnType<> of a chained function

I'm working with the twilio-node pkg and there's the fetch function: lookupResponse = await twilioClient.lookups.v1.phoneNumbers('+123').fetch({type: 'carrier'}); with a clearly defined return type, Promise. Since I'm…
Joe - GMapsBook.com
  • 15,787
  • 4
  • 23
  • 68
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
0 answers

How can i create/retrive more detailed participant info in twilio video?

I want to show multiple user details as an overlay on the participant's video. Is there any way we can store more detailed participant data for the Twilio video? I've used Twilio chat and we can store some app-related data in attributes. As shown…
Ravi Rajpurohit
  • 502
  • 6
  • 15
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
2
votes
1 answer

Twilio API in Node throwing error about user agent

I'm following the NodeJS Twilio SDK docs with the following: const twilio = require('twilio') exports.sendActivationCode = async (phone, activationCode) => { const accountSID = '' const authToken = '' const client =…
Fluidbyte
  • 5,162
  • 9
  • 47
  • 76
1
vote
1 answer

Twilio 'Header' import issue

When i installed latest twilio's version which is "twilio": "^4.7.2", and building the project (npm run build) the following error occurs, node_modules/twilio/lib/base/BaseTwilio.d.ts:22:19 - error TS2304: Cannot find name 'Headers'. 22 …
Joe Kee
  • 13
  • 4
1
vote
1 answer

Pagination is not working for calls resource in Twilio

Problem: I want API to serve all the calls that were received by any given twilio number. It works just fine initially when the call logs are in 50s but as the number increases the call logs API is becoming very slow as there are too many call logs…
1
vote
1 answer

How can I send a MMS with original mediaUrl from twilio?

I am sending MMS through twilio rest api. I received message on phone but media preview is not visible. Here is code: MMS Preview: I think twilio convert mediaUrl to tiny link that's why its preview not available. when I click on twilio link media…
Hammad Ali
  • 331
  • 3
  • 12
1
vote
1 answer

Twilio Studio IVR call disconnects before user the input is gathered

I am setting up an IVR flow in Twilio Studio. I have a function that validates the user's phone number and then fetches some data. Once the data is fetched, I need to ask the user to input their zip code. I have used the "Gather Input On Call"…
Jilna
  • 190
  • 1
  • 13
1
vote
0 answers

Using Twilio's transcription from recordings obtained via dial (forwarded calls)

Folks, I'm currently entrusted with the task of implementing, while using Twilio, transcriptions for interactions between clients and end users. After our number is called, I need to make some checks for smart routing depending on the caller number.…
Dinaiscoding
  • 992
  • 1
  • 7
  • 16
1
vote
1 answer

Conversation Service Resource API returns undefined

I followed the tutorial described here: https://www.twilio.com/docs/conversations/api/service-resource The following code returns "TypeError: Cannot read property 'create' of undefined" const twilioClient = twilio(twilioAccountSid,…
Logan Cundiff
  • 479
  • 8
  • 13
1
vote
2 answers

How to consume typing indicator from twilio chat channel via webhook

I'm using twilio chat service to integrate my inhouse chat platform with twilio flex. when creating the channel via the node SDK, I register a webhook to to consume messages sent over the channel and pass them on to our chat clients. Does the flex…
1
vote
1 answer

Initiating an outbound conference call using Twilio Functions

I do not see any documentation in creating a conference call in twilio functions
martinii
  • 141
  • 10
1
vote
0 answers

Why Twilio Flex HOLD MUSIC TWIML played after 25 to 30 seconds In case of Call transfer from watson assistant

I am calling Twilio number from Watson dialog using watson vgwActTransfer. At Twilio side I am receiving incoming call using Studio flow. Here I have used SendToFlex widget. Where call will be queued in Queue 1 for 30 seconds. While call is Queue 1,…
1
vote
1 answer

Getting the number of the caller in twilio

I want to know the current callers(client) Phone Number and then be able to verify it from my HubSpot CRM to see which language my client speaks. Then Enqueue the call to the agent that speaks the language or give the Caller an option to choose the…
1
2 3 4