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',
|
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,
|
||||||
|
|
Loading…
Reference in New Issue