Skip to content

Commit

Permalink
Register Class Update
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacakakpo1 committed Mar 11, 2024
1 parent 07921ea commit f6b924a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
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:$login@sipdev.telnyx.com"
)

0 comments on commit f6b924a

Please sign in to comment.