From b77106f61a5176ed86f720be8d4a91b615853214 Mon Sep 17 00:00:00 2001 From: paweldomas Date: Wed, 7 Jan 2015 16:00:38 +0100 Subject: [PATCH] Includes room secret in SIP gateway request if password is required to join the room. --- libs/rayo.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libs/rayo.js b/libs/rayo.js index e6182b105..e719dde6b 100644 --- a/libs/rayo.js +++ b/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,