Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signaling connection disconnected when trying to connect to room #48

Closed
Loag opened this issue Feb 5, 2017 · 6 comments
Closed

Signaling connection disconnected when trying to connect to room #48

Loag opened this issue Feb 5, 2017 · 6 comments
Assignees
Labels
needs more information Issues that require more information to resolve, such as Room SIDs, SDK versions, etc.

Comments

@Loag
Copy link

Loag commented Feb 5, 2017

I'm having an issue connecting to a room that I am giving a random string name. The client connects fine but I get error 53001 when trying to connect to a room which I also saw wasn't in the twilio error code manual. Any suggestions? I tried the started project and it worked perfectly.

`var request = $.ajax({
url: "/token",
type: "POST",
dataType: "json",
data: {symptoms : arrayIt},

  success: function(response) {
    identity = response.identity;
    toke = response.token;
    roomName = response.identifier;

    videoClient = new Twilio.Video.Client(toke);
    if (videoClient)
        videoClient.connect({ to: roomName}).then(roomJoined,
        function(error) {
          log('Could not connect to Twilio: ' + error.message);
        });
  },
  error: function( errorThrown){
    console.log(errorThrown);
    }
});`
@markandrus
Copy link
Contributor

Hi @immexerxez,

Sorry to hear that! When you construct your Twilio.Video.Client, can you construct it passing the logLevel parameter? Like so:

videoClient = new Twilio.Video.Client(toke, { logLevel: 'debug' });

and then paste the resulting logs? This should allow me to see the Access Token you pass in and anything weird that might be happening.

Thanks,
Mark

@markandrus markandrus self-assigned this Feb 5, 2017
@markandrus markandrus added the needs more information Issues that require more information to resolve, such as Room SIDs, SDK versions, etc. label Feb 5, 2017
@Loag
Copy link
Author

Loag commented Feb 6, 2017

Hi @markandrus thank you for your response. I did as instructed and I think The issue is here
`Sun Feb 05 2017 22:30:16 GMT-0600 (CST) | sip.transport | received WebSocket text message:

SIP/2.0 400 Bad request
CSeq: 8042 INVITE
Call-ID: 378vv1117scc5cbi8ogh
From: sip:undefined@AC73c5c5f676305d93b49daaa7203405c7.endpoint.twilio.com;tag=s3mgohirmt
To: sip:orchestrator@AC73c5c5f676305d93b49daaa7203405c7.endpoint.twilio.com;tag=37783021_6772d868_9e414ad9-89e2-44b3-b6c6-0557e5e4fa75
Via: SIP/2.0/WSS 127.0.0.1:51706;branch=z9hG4bK919890;rport=51706
Server: Twilio
Contact: sip:172.18.2.5:443;transport=wss
Supported: room-signaling
Require: timer
Session-Expires: 120;refresher=uac
Content-Type: application/room-signaling+json
X-Twilio-CallSid: CA07d06f5f64e16023200a874ae3ca144f
Content-Length: 113

{"version":1,"type":"error","participants":[],"error":{"code":53200,"message":"Participant identity is invalid"}}`

if this is not sufficient I will gladly add the rest of the log. but it seems that I am setting the identity incorrectly or with a null value.

@Loag
Copy link
Author

Loag commented Feb 6, 2017

@markandrus thank you for notifying me about adding "loglevel debug" I discovered that I was incorrectly passing the identity of the user requesting a token.

@Loag Loag closed this as completed Feb 6, 2017
@markandrus
Copy link
Contributor

@immexerxez I am glad it worked out!

@mjamal-tiu
Copy link

I am also getting same email see more details at below ticket and provide me any solution.
#576

Thanks in advanced

@mjamal-tiu
Copy link

Issue is resolved based on suggestion provided on #576

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more information Issues that require more information to resolve, such as Room SIDs, SDK versions, etc.
Projects
None yet
Development

No branches or pull requests

3 participants