Reputation: 23517
I have a simple method for getting a new twilio voice client...
export const createTwilioDevice = (_token) => new Twilio.Device(
_token,
{
logLevel: 0,
answerOnBridge: true,
codecPreferences: ["opus", "pcmu"],
}
);
TwilioDevice.value = createTwilioDevice();
TwilioDevice.value.on("registered", () => {
console.info("Twilio.Device ready to make and receive calls!");
});
TwilioDevice.value.on("incoming", handleIncomingCall);
TwilioDevice.value.on("tokenWillExpire", handleTokenWillExpire);
TwilioDevice.value.on("error", handleCallError);
await TwilioDevice.value.register();
It was working but now I am getting
ConnectionError: ConnectionError (53000): Raised whenever a signaling connection error occurs that is not covered by a more specific error code.
What could have caused this to start happening?
Upvotes: 4
Views: 3501
Reputation: 1604
I was getting the same error when I tried to set up a Twilio device using the https://github.com/TwilioDevEd/voice-javascript-sdk-quickstart-ruby.
The issue that caused this error in my case was that I was using Account SID from the Test Credentials instead of Live Credentials.
In the case of Test Credentials, no actual call is made, for making an actual voice call you have to use Live Credentials. Docs Reference.
Check your US region Twilio Test/Live Credentials at this link
Upvotes: 0
Reputation: 29
Twilio currently serving this service to only specific region
Read Official Document: https://www.twilio.com/docs/global-infrastructure
Upvotes: 1
Reputation: 21
In case it helps anyone in the future, I just had this same ConnectionError 53000 and it was caused by having a blank space character in the identity string used to get the Twilio AuthToken.
As of today, the Twilio docs specifically state:
The identity may only contain alpha-numeric and underscore characters. Other characters, including spaces, or exceeding the maximum number of characters (121), will result in not being able to place or receive calls.
Upvotes: 2
Reputation: 21
I had the same err, in my case, a client forgot to settle a bill for twillio testing account)
Upvotes: 2