forked from jitsi/jitsi-videobridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allows XMPP connections to be added and removed via a REST inte…
…rface.
- Loading branch information
Showing
3 changed files
with
213 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
The configuration for the XMPP client connections that jitsi-videobridge uses can be modified at run time using REST calls to `/colibri/muc-client/`. | ||
|
||
# Adding an XMPP client connection | ||
A new XMPP client connection (i.e. a MucClient) can be added by posting a JSON which contains its configuration to `/colibri/muc-client/add`: | ||
``` | ||
{ | ||
"id": "new-client-connection", | ||
"domain":"xmpp.example.com", | ||
"hostname":"10.0.0.1", | ||
"username":"xmpp-username", | ||
"password":"xmpp-password", | ||
"muc_jids":"JvbBrewery@conference.xmpp.example.com", | ||
"muc_nickname":"unique-resource", | ||
"disable_certificate_verification":"false" | ||
} | ||
``` | ||
|
||
If a configuration with the specified ID already exists, the request will succeed (return 200), but the configuration will NOT be updated. If you need to update an existing configuration, you need to remove it first and then re-add it. | ||
|
||
# Removing an XMPP client connection. | ||
An XMPP client connection (i.e. a MucClient) can be removed by posting a JSON which contains its ID to `/colibri/muc-client/remove`: | ||
``` | ||
{ | ||
"id": "new-client-connection" | ||
} | ||
``` | ||
|
||
The request will be successful (return 200) as long as the format of the JSON is as expected, regardless of whether a connection was found and removed or it wasn't found. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters