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:58:41 +01:00
parent 4d25b139cc
commit b77106f61a
+10 -1
View File
@@ -37,7 +37,16 @@ Strophe.addConnectionPlugin('rayo',
{
name: 'JvbRoomName',
value: roomName
});
}).up();
if (sharedKey !== null && sharedKey.length) {
req.c('header',
{
name: 'JvbRoomPassword',
value: sharedKey
}).up();
}
this.connection.sendIQ(
req,