Includes room secret in SIP gateway request if password is required to join the room.

This commit is contained in:
paweldomas 2015-01-07 16:00:38 +01:00
parent 4d25b139cc
commit b77106f61a
1 changed files with 10 additions and 1 deletions

View File

@ -37,7 +37,16 @@ Strophe.addConnectionPlugin('rayo',
{ {
name: 'JvbRoomName', name: 'JvbRoomName',
value: roomName value: roomName
}); }).up();
if (sharedKey !== null && sharedKey.length) {
req.c('header',
{
name: 'JvbRoomPassword',
value: sharedKey
}).up();
}
this.connection.sendIQ( this.connection.sendIQ(
req, req,