Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/main/kotlin/org/jitsi/jibri/api/xmpp/XmppApi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,10 @@ class XmppApi(
jacksonObjectMapper().readValue<AppData>(startIq.appData)
}
val serviceParams = ServiceParams(xmppEnvironment.usageTimeoutMins, appData)
val callParams = CallParams(callUrlInfo)
val extraUrlParams = buildList {
startIq.rtcStatsEnabled?.let { add("config.analytics.rtcstatsEnabled=$it") }
}
val callParams = CallParams(callUrlInfo, extraUrlParams = extraUrlParams)
logger.info("Parsed call url info: $callUrlInfo")

when (startIq.mode()) {
Expand Down
6 changes: 5 additions & 1 deletion src/main/kotlin/org/jitsi/jibri/selenium/JibriSelenium.kt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ data class CallParams(
* Display name which when it is set, it is used by jibri when joining the web conference.
* Note that this is currently only used in the sipgateway gateway scenario;
*/
val displayName: String = ""
val displayName: String = "",
/**
* Extra URL params to add when joining the call, on top of the service-specific defaults.
*/
val extraUrlParams: List<String> = listOf()
) {
override fun toString(): String {
return if (passcode.isNullOrEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ class FileRecordingJibriService(
return
}
jibriSelenium.joinCall(
fileRecordingParams.callParams.callUrlInfo.copy(urlParams = RECORDING_URL_OPTIONS),
fileRecordingParams.callParams.callUrlInfo.copy(
urlParams = RECORDING_URL_OPTIONS + fileRecordingParams.callParams.extraUrlParams
),
fileRecordingParams.callLoginParams
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ class SipGatewayJibriService(
*/
override fun start() {
jibriSelenium.joinCall(
sipGatewayServiceParams.callParams.callUrlInfo.copy(urlParams = SIP_GW_URL_OPTIONS),
sipGatewayServiceParams.callParams.callUrlInfo.copy(
urlParams = SIP_GW_URL_OPTIONS + sipGatewayServiceParams.callParams.extraUrlParams
),
sipGatewayServiceParams.callLoginParams,
sipGatewayServiceParams.callParams.passcode,
unmute = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ class StreamingJibriService(
return
}
jibriSelenium.joinCall(
streamingParams.callParams.callUrlInfo.copy(urlParams = RECORDING_URL_OPTIONS),
streamingParams.callParams.callUrlInfo.copy(
urlParams = RECORDING_URL_OPTIONS + streamingParams.callParams.extraUrlParams
),
streamingParams.callLoginParams
)

Expand Down
Loading