Questions tagged [twilio-node]
48 questions
1
vote
1 answer
What is difference between creating twilio client using authentication token and combination of API key and API Secret with Account sid?
I came across many twilio apis using account sid and authentication token to create twilio client (Refer 1 code) but I had even seen some twilio apis which uses account sid and api key with api secret to create twilio client (Refer 2 code).…

Abhishek
- 79
- 2
- 15
1
vote
2 answers
How to send custom notifications using twilio whatsapp without registering receiver's number?
I have followed the following steps from https://www.twilio.com/docs/sms/whatsapp/quickstart/node which works great with my the number I have registered with custom messages.
Now I changed the number with another WhatsApp number I had but it's not…

Subhendu Kundu
- 3,618
- 6
- 26
- 57
0
votes
0 answers
creating a new stream for another call
I am using twilio's connect().stream() for bidirectional synchronous stream.
Now at a certain point i want to call another number for that i need a new stream so that conversations wont get mixed.
But as that is indirectly getting executed inside…
0
votes
1 answer
Twilio webhook validation with query string
I'm sending a Twilio SMS message using a status callback with an ID query string:
const TwilioClient = Twilio(process.env.TWILIO_ACCOUNT_SID, process.env.TWILIO_AUTH_TOKEN);
TwilioClient.messages.create({
body: message,
from: fromNumber,
…

asportnoy
- 2,218
- 2
- 17
- 31
0
votes
1 answer
Why can't I programmatically send a templated WhatsApp message using Twilio?
My code:
const client = require('twilio')(accountSid, authToken);
const issueResolution = 'Hi Malcolm, were we able to solve the issue that you were facing?';
client.messages
.create({
from: senderNumber,
body:…

fblundun
- 987
- 7
- 19
0
votes
0 answers
Terminate a dialed call in initiated/ringing state
My intention is to limit outgoing calls to regional only.
For eg, if the caller is from Canada, that person can only call in Canada numbers.
I am basically, trying to separate US and Canada numbers.
I have already blocked other countries…

nmurshed
- 77
- 6
0
votes
1 answer
Gathering speech during outbound twilio voice call
I am trying to create a voice call from twilio to a number using programmable voice.
I also intend to gather recipient's speech transcribed. However, the documentation contains examples and tutorials only for inbound voice calls.
This is what I have…
0
votes
1 answer
Twilio recording only contains one channel / side of conversation - how to mix both?
I'm trying to record and download a phone conversation on twilio.
I've set it up with:
const voiceResponse = new twiml.VoiceResponse();
voiceResponse.dial({
callerId: callerNumber,
record: "record-from-answer",
…

TomHill
- 614
- 1
- 10
- 26
0
votes
1 answer
Retrieve twilio voice logs via webhook
I've checked the documentation and it explains how to retrieve call logs via API calls, but there does not seem to be a webhook available whenever a log is created :')
Is there an easy way to get notified whenever twilio creates a log for any…

Andre Wruszczak
- 35
- 3
0
votes
1 answer
"An application error has occured" : Twilio Voice Response play function with public url from S3
I am attempting to play an audio (a voicemail greeting) uploaded on AWS S3 with twilio-node. When I am testing this feature I am getting this voice response at the end of the call : "An application error has occured..."
I have uploaded the file with…

LamsaLL
- 11
- 2
0
votes
1 answer
Twilio "finishOnKey" not working with speech input only
We have requirement where we ask user for description of issue, it can be long some time. So to gather it we have extended speechTimout to "6" but in some scenario it can be a short so we want to have option where user can press key "1" once he…
0
votes
1 answer
sending customParams in Twilio SMS node js
I am sending SMS to users using Twilio SMS service, in nodejs. I am using twilio npm package.
I want to send customParams while sending the sms and get those params in webhook response when it gets delivere, so that I can update my database.
For…

Kiran Uppunda
- 43
- 1
- 6
0
votes
1 answer
Handle call end in twilio
I am building a conversational voice bot with Twilio and Node.js. Whenever a call ends, I need to send collected data(collected in Twilio autopilot Memory object) to a database. If the user completes the entire question-answer session with the bot,…

Himanshu Kumar
- 89
- 1
- 10
0
votes
1 answer
Is there a way to develop with twilio in VS CODE entirely?
I am working with Twilio and Nodejs. But I usually code in the Twilio console, which I don't like. I am aware of the Nodejs helper library but the execution is highly dependent on Autopilot tasks. So even if I am able to test function in VS Code by…

Himanshu Kumar
- 89
- 1
- 10
0
votes
1 answer
Pass query parameter while making POST request from twilio webhook
When the call ends, I want to send data to Microsoft teams. For that purpose, I am making a POST request using the Twilio webhook. I have added the link for HTTP request in CALL STATUS CHANGES. But I also want to send data collected during calls. Is…

Himanshu Kumar
- 89
- 1
- 10