File tree Expand file tree Collapse file tree 4 files changed +4
-54
lines changed
java/org/jitsi/jicofo/jibri
kotlin/org/jitsi/jicofo/jibri Expand file tree Collapse file tree 4 files changed +4
-54
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -198,15 +198,6 @@ abstract class BaseJibri internal constructor(
198198 else -> StanzaError .getBuilder(StanzaError .Condition .not_allowed).build()
199199 }
200200 }
201-
202- protected fun generateSessionId (): String = Utils .generateSessionId(SESSION_ID_LENGTH )
203-
204- companion object {
205- /* *
206- * The length of the session id field we generate to uniquely identify a Jibri session.
207- */
208- const val SESSION_ID_LENGTH = 16
209- }
210201}
211202
212203typealias JibriRequest = IqRequest <JibriIq >
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import org.jitsi.xmpp.extensions.jibri.RecordingStatus
3232import org.jitsi.xmpp.util.XmlStringBuilderUtil.Companion.toStringOpt
3333import org.jivesoftware.smack.packet.IQ
3434import org.jivesoftware.smack.packet.StanzaError
35+ import java.util.*
3536import org.jitsi.jicofo.util.ErrorResponse.create as error
3637
3738/* *
@@ -101,7 +102,7 @@ class JibriRecorder(
101102 // Stream ID should not be provided with requests to record to a file.
102103 error(iq, StanzaError .Condition .bad_request, " Stream ID is provided for a FILE recording." )
103104 } else {
104- val sessionId = generateSessionId ()
105+ val sessionId = UUID .randomUUID().toString ()
105106 try {
106107 val jibriSession = JibriSession (
107108 this ,
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import org.jitsi.xmpp.extensions.jibri.SipCallState
2929import org.jitsi.xmpp.util.XmlStringBuilderUtil.Companion.toStringOpt
3030import org.jivesoftware.smack.packet.IQ
3131import org.jivesoftware.smack.packet.StanzaError
32+ import java.util.UUID
3233import kotlin.collections.HashMap
3334import org.jitsi.jicofo.util.ErrorResponse.create as error
3435
@@ -72,7 +73,7 @@ class JibriSipGateway(
7273 get() = ArrayList (sipSessions.values)
7374
7475 override fun handleStartRequest (iq : JibriIq ): IQ = if (StringUtils .isNotBlank(iq.sipAddress)) {
75- val sessionId = generateSessionId ()
76+ val sessionId = UUID .randomUUID().toString ()
7677 val jibriSession = JibriSession (
7778 this ,
7879 conference.roomName,
You can’t perform that action at this time.
0 commit comments