Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register Class Update #2

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ kotlin {
iosSimulatorArm64()


version = "0.7.21"
version = "0.7.22"

cocoapods {
summary = "Janus-message-sdk"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.telnyx.janusmessagesdk.janus

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.uuid.UUID


@Serializable
Expand All @@ -13,21 +14,23 @@ data class Register(
@SerialName("janus")
val janus: String,
@SerialName("session_id")
val sessionId: Long,
val sessionId: Long = UUID().timeStamp,
@SerialName("transaction")
val transaction: String
val transaction: String = UUID().toString()
)

@Serializable
data class Body(
@SerialName("authuser")
val authuser: String,
@SerialName("display_name")
val displayName: String,
@SerialName("proxy")
val proxy: String = "sip:sipdev.telnyx.com:5060",
@SerialName("request")
val request: String = "register",
@SerialName("secret")
val secret: String,
@SerialName("login_token")
val loginToken: String,
@SerialName("login")
val login: String,
@SerialName("username")
val username: String
val username: String = "sip:[email protected]"
)
Loading