When I'm trying to make a test call from TwiML Apps page (https://www.twilio.com/console/phone-numbers/runtime/twiml-apps/) for Pay TwiML:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Pay/>
</Response>
During pressing of first DTMF button I get error message No callsid in the DTMF message and end of call.
Has anyone met such a problem?
Solved!
PCI Mode should be set to Enabled.
Such an unobvious error response :(
Related
I am trying to build a phone component that can handle twilio calls and I got outgoing working but when I try to receive phone calls no events are fired and my console shows no answer from the client, my token is given identity test, this is the twiml returned
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Dial answerOnBridge="true" callerId="(my twilio phone number)">
<Client>
<Identity>
test
</Identity>
</Client>
</Dial>
</Response>
The browser has a console.log added to the device.on("incoming") event but it does not fire, what am I doing wrong?
I'm attempting to use the new feature and every attempt at testing results in a hangup on the outgoing call and a Schema warning in the Debugger that says, " Invalid content was found starting with element 'Pay'. One of '{Play"
My TWiML:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Pay paymentConnector="Default" amount="5.25" action="https://www.website.io/pay_action" />
</Response>
The call setup is: a Twilio js client initiates an outbound call to the twilio application, which requests TWiML from the server, returning a <Dial> verb. At some point, the caller (js client-side) presses a button, which updates the live call with the above TWiML, which then disconnects.
Any help would be greatly appreciated!!
Spoke with someone from Twilio support and the problem was that I hadn't enabled PCI in my account settings. I had clicked "Enable PCI" and agreed to the terms, but hadn't saved the setting on the page. This cleared the problem up!
Dialing a Twilio client app requires the <client> twiml noun. Is there a way to generate the Twiml necessary to forward a call to a client using a Twimlet? Ideally, the simulring would accept client OR numbers, but it does not appear to.
You can use something like this to simulring a mixture of clients
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Dial callerId="+1234567890">
<Client>Bob</Client>
<Client>Steve</Client>
<Client>Ted</Client>
</Dial>
</Response>
Remember that you must provide a valid callerId when calling out to a client or the call will fail.
If you want something like the sumulring TwiMLet you can host this code by pasting your TiwML into the Echo TwiMLet https://www.twilio.com/labs/twimlets/echo or by using TwiMLbin http://twimlbin.com/.
I'm trying to answer a phone call and dial a single digit back depending on an input from the user, is this even possible with twilio?
edit: thanks for the downvote, if you knew the twilio API you would've known this is a valid question.
Twilio developer evangelist here.
After using <Gather> to collect your user input you can respond with Twiml containing the <Play digits="1"> verb to play DTMF tones during a call.
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Gather action="/process_gather" method="GET">
<Say>
Please enter a digit
</Say>
</Gather>
</Response>
At /process_gather your server would respond with:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Play digits="digit to play..."></Play>
</Response>
Please let me know if I can help further!
I'm just following the instructions. From my Twilio dashboard, it shows the call incoming but no calls outgoing. What am I missing? Do I have to set a call forwarding option somewhere? I don't see any.
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Dial>
<Number>+6612345678</Number>
</Dial>
</Response>