Skip to content

Commit

Permalink
Fix CallEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacakakpo1 committed Apr 9, 2024
1 parent 87e250c commit d14d96a
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 9 deletions.
4 changes: 2 additions & 2 deletions iosApp/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- JanusMessageSDK (0.7.32)
- JanusMessageSDK (0.7.33)

DEPENDENCIES:
- JanusMessageSDK (from `../shared`)
Expand All @@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: "../shared"

SPEC CHECKSUMS:
JanusMessageSDK: 8bd3b38839fcb56e1a1bf722ef89163bf082405c
JanusMessageSDK: 12858318464cda9496c7451e2dcc5530eb37c1d1

PODFILE CHECKSUM: 1e004fa731d7a04f3d9d5649deb94144c69121d3

Expand Down
2 changes: 1 addition & 1 deletion iosApp/Pods/Local Podspecs/JanusMessageSDK.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions iosApp/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shared/JanusMessageSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'JanusMessageSDK'
spec.version = '0.7.32'
spec.version = '0.7.33'
spec.homepage = 'https://github.com/team-telnyx/janus-message-sdk'
spec.source = { :http=> ''}
spec.authors = { 'Telnyx' => '[email protected]' }
Expand Down
13 changes: 13 additions & 0 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,20 @@ fun Project.procRunFailLog(vararg params: String):List<String>{


publishing {
publications {

create<MavenPublication>("maven") {
run {
groupId = "com.telnyx"
artifactId = this@Build_gradle.getArtifactId()
version = getVersionName()
artifact(tasks["sourceJar"])

}
pom {
}
}
}

repositories {
mavenLocal()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,20 @@ class CallBody() {
@SerialName("request")
var request: String = ""


@SerialName("call_id")
var callId: String = ""

@SerialName("uri")
var uri: String = ""

@SerialName("autoaccept_reinvites")
var autoacceptReinvites: Boolean = false
fun default(userName: String): CallBody {
fun default(userName: String,callId:String): CallBody {
return CallBody().apply {
this.autoacceptReinvites = false
request = Janus.CALL.value
this.callId = callId
uri = "sip:$userName@sipdev.telnyx.com"
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package com.telnyx.janusmessagesdk.janus

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

@Serializable
data class JanusCallEvent(
@SerialName("body")
val pluginData: PluginData,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.telnyx.janusmessagesdk.janus

import io.ktor.client.plugins.UserAgent
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.encodeToString
Expand Down Expand Up @@ -53,12 +54,16 @@ class Body{
var username: String ?= null
@SerialName("password")
var password: String ?= null
fun default(userName:String,password:String,displayName: String = ""): Body {

@SerialName("user_agent")
var userAgent: String? = null
fun default(userName:String,password:String,displayName: String = "",userAgent: String = ""): Body {
return this.apply {
this.login = userName
this.password = password
this.username = "sip:$userName@sipdev.telnyx"
request = Janus.REGISTER.value
this.userAgent = userAgent
proxy = "sip:sipdev.telnyx.com:5060"
this.displayName = displayName
}
Expand Down

0 comments on commit d14d96a

Please sign in to comment.