Connection Twilio Connection with code: 31002

Everything,

I am trying to implement Twilio in an Android application using the Quick Start Guide listed on the site. I can call to connect successfully, but 10 seconds after the connection, the connection disconnects and calls this method:

@Override public void onDisconnected(Connection connection, int i, String s) { D.debugClass(getClass(), "disconnected code: " + i + " status: " + s); } 

Printed Error: disconnected code: 31002 status: Connection declined

I use the server.py file from the server.py example and I put it on the heroku server.

Server logs indicate that the my / call endpoint was successful and returned 200. I believe that the values ACCOUNT_SID , APP_SID and AUTH_TOKEN are correct.

I also added this line Twilio.setLogLevel(Log.DEBUG); , and logs from Twilio do not indicate an error. I'm not sure where to look next?

+5
source share

Source: https://habr.com/ru/post/1243426/


All Articles