Questions tagged [twilio-python]
40 questions
0
votes
1 answer
How To press One While Twilio Call is Making
I have this line of code in python to call in Twilio.
During a call, it says to press one to continue the call. So, how do I press one while on a call?
call = client_.calls.create(
record = True,
twiml=phone_call,
…

mosa lorans
- 45
- 6
0
votes
0 answers
Is there a way to retrieve unsubscribed phone numbers from Twilio?
I'm using Twilio in my application and right now this requires filling a table with the unsubscribed phone numbers.
I was looking into the Twilio documentation but I didn't find a specific endpoint to retrieve the unsubscribed recipients.
Is there a…

SK-AD
- 1
0
votes
1 answer
Twilio twiml 12100 error when using seemingly alright XML
I'm currently trying to use the twilio python library to start an outgoing call, wait for user input through the keypad or speech while saying a message and then return it through a callback to a php script I have running elsewhere, however even…

James Hunt
- 1
- 2
0
votes
1 answer
Twilio whatsapp location
Please let me know how to send and recive the location through twilio and python. like longitude and latitude and I need users to be able to share their current location with the bot.

Deepak
- 1
- 1
0
votes
0 answers
Twilio Room Creation take too long time to return a response
I am working on a creating video platform and in that, I used Twilio service. It is working fine for me but Video Room creation takes around 10-15 seconds. How to optimize video room creation?
I followed the same code format as they provided on…

Suhel
- 1
- 3
0
votes
2 answers
Can you filter out personal details from Python Twilio logger?
By default the Twilio Python client seems to log out personal information (emails and numbers). I know you can access the logger like this twilio_logger = logging.getLogger('twilio.http_client')
Is there a simple setting change we can make to filter…

MDalt
- 1,681
- 2
- 24
- 46
0
votes
1 answer
Sending call to multiple clients via conference participants REST API
I am trying to switch our old call flow to the conference and I have ported most of the features to the conference. I am trying to handle incoming calls in cases where I have to ring to multiple agents and disconnect the call after one of…

Parzival
- 47
- 4
0
votes
2 answers
Twilio SMS is saying a "to" phone number is not provided even though it is
I have very simple code and I just can't figure out what's going wrong.
I have a Twilio trial account and a trial phone number and I am trying to send an SMS using it.
from os import environ
from twilio.rest import Client
client =…

Datajack
- 88
- 3
- 16
0
votes
1 answer
Incoming SMS Phonenumber on Twilio
How do I retrieve the phone number of an incoming SMS sender? I'd like to fetch old records that this SMS sender has sent in the past.
I'm currently doing this on my flask application webhook for Twilio:
@app.route("/")
def hello():
return…

Pri Mar
- 105
- 1
- 6
0
votes
1 answer
Twilio Whatsapp API Sticker Support
Hey, Y'all
Im Trying to write an Whatsapp bot, which automatically will collect Stickers, send to the bot.
I wrote a simple piece of Code to anlyse each received message.
from flask import Flask, request
from dotenv import load_dotenv
from…

Levi
- 11
- 2
0
votes
1 answer
Writing Twiml based on user messages
First post on here. Im working on an application in python using the twilio voice api. Id need to be able to create twiml xml data based on user messages. Hence twiml creation and hosting programmatically on the fly. Is there anyone here that can…

middlepost
- 5
- 3
0
votes
1 answer
Python: Twilio TaskRouter Conference Instruction
I'm handling incoming call using TaskRouter with conference instruction like so
@csrf_exempt
def TaskEnqueue(request):
""" Put call into queue """
response = VoiceResponse()
digits = request.POST['Digits']
selected_service =…

Adamowicz
- 23
- 5
0
votes
1 answer
Update a Twilio number properties with a dictionary programatically
I have a Twilio number and a dictionary full of params that I want to set up. The only way I know to set number properties is by passing them into the number.update() function, so this is kinda annoying.
If the dictionary keys have the same name as…

steadynappin
- 409
- 3
- 14
0
votes
1 answer
Getting error making calls with twilio python api
Getting this error when I try to make a call with the twilio python api:
Jacob-Mac-mini:downloads kovyjacob$ python3 twilio_call.py
Traceback (most recent call last):
File "/Users/kovyjacob/Downloads/twilio_call.py", line 11, in
call…
user14129089
0
votes
1 answer
can you create a twilio twiml bin in python?
Is there a way to create a Twiml Bin through the Twilio API in Python?
I'm trying to automate the process of setting up numbers that behave a certain way, but I want them to be fully integrated into the web interface.

steadynappin
- 409
- 3
- 14