Includes room secret in SIP gateway request if password is required to join the room.
This commit is contained in:
parent
4d25b139cc
commit
b77106f61a
11
libs/rayo.js
11
libs/rayo.js
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue