0
votes

I have inherited a call center php application using twillio webrtc, and the twilio api.The trouble I'm having is the application, only makes a call to one number. I've looked through the controller using Twiml and Voice Response, and as far as I can tell a phone number gets passed from the front-end and $to_number is assigned that value.I've changed this value a million times , and it still dials the same number. It's because of this that I think that in my actual Twiml, is where it may be reset. The trouble is I can't find any Twiml in the entire application. I've also checked on twilio for any Twiml in my apps, and this is all I found. Twiml app When I try making a call using the call button, and an error is thrown.

I've been succesful in making calls to different numbers using the following request post request

In short, where is my Twiml (in xml) stored? Any ideas what may be causing this issue?

1

1 Answers

0
votes

The TwiML Application SID is passed in the Access Token to the client. The TwiML Application has set of URL's, one being the Voice URL, that points to TwiML which tells Twilio what to do.

If the Access Token is being sent to the console log, you can decode it to find the Application SID (to lookup in Twilio Console) here. You can enable client side debug here.