Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • R REVECallSDKSample
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • sdk
  • REVECallSDKSample
  • Wiki
  • Call Handling

Call Handling · Changes

Page history
Update Call Handling authored Feb 08, 2022 by Sourav Das's avatar Sourav Das
Hide whitespace changes
Inline Side-by-side
Showing with 71 additions and 20 deletions
+71 -20
  • Call-Handling.md Call-Handling.md +71 -20
  • No files found.
Call-Handling.md
View page @ b70a4d4c
# Handling Calls With UI using **Reve** Voice SDK
After calling the `SIPWrapper.startSIP()` method VOIP Calling is available to you through the method
>Kotlin
```kotlin
CallHandler.makeCall()
ReveSdkCallHandler.makeCall()
```
>java
```java
ReveSdkCallHandler.Companion.makeCall()
```
But Even if you have access to the call functionalites, you need to Make your UI work according to the background tasks. The Listeners Interfaces **SDKSIPListener** and **SDKServiceListener** are used for that reason. See [Listeners Guide](Configuring-Listeners) to correctly Implement Listeners.
After Listeners are correctly implemented you can use your UI to start your calls with the method
```kotlin
CallHandler.makeCall(phoneNumber:String)
>Kotlin
>Kotlin
```kotlin
ReveSdkCallHandler.makeCall(phoneNumber:String)
```
>Java
```java
ReveSdkCallHandler.Companion.makeCall(phoneNumber:String)
```
This method can be called and the you can get the relevant call related info through the Listeners.
After you have started a call with makeCall method, you can end this call by invoking the the following method
```kotlin
CallHandler.endCall()
>Kotlin
```kotlin
ReveSdkCallHandler.endCall()
```
>Java
```java
ReveSdkCallHandler.Companion.endCall()
```
Finally you can accept incoming calls by invoking the method
```kotlin
callHandler.acceptCall(callID)
>Kotlin
```kotlin
ReveSdkCallHandler.acceptCall(callID)
```
>Java
```java
ReveSdkCallHandler.Companion.acceptCall(callID)
```
You can find the callID through the **SDKServiceListener** *(See [Listeners Guide](Configuring-Listeners))*
#### In call Functionalities
......@@ -33,38 +54,68 @@ You can use the following methods to achieve the aforementioned call features.
To mute call
```kotlin
CallHandler.setCallMute(true)
>Kotlin
```kotlin
ReveSdkCallHandler.setCallMute(true)
```
>Java
```java
ReveSdkCallHandler.Companion.setCallMute(true)
```
To unmute call
```kotlin
CallHandler.setCallMute(false)
>Kotlin
```kotlin
ReveSdkCallHandler.setCallMute(false)
```
>Java
```java
ReveSdkCallHandler.Companion.setCallMute(false)
```
To hold call
```kotlin
CallHandler.holdCall(true)
>Kotlin
```kotlin
ReveSdkCallHandler.holdCall(true)
```
>Java
```java
ReveSdkCallHandler.Companion.holdCall(true)
```
To unhold call
```kotlin
CallHandler.holdCall(false)
>Kotlin
```kotlin
ReveSdkCallHandler.holdCall(false)
```
>Java
```java
ReveSdkCallHandler.Companion.holdCall(false)
```
To turn on speaker
```kotlin
CallHandler.setSpeakerOn(true)
>Kotlin
```kotlin
ReveSdkCallHandler.setSpeakerOn(true)
```
>Java
```java
ReveSdkCallHandler.Companion.setSpeakerOn(true)
```
To turn off speaker
```kotlin
CallHandler.setSpeakerOn(false)
>Kotlin
```kotlin
ReveSdkCallHandler.setSpeakerOn(false)
```
>Java
```java
ReveSdkCallHandler.Companion.setSpeakerOn(false)
```
<!-- #### Incoming calls
You can get the incoming call id from `ListenersProvider.sdkServiceListener` Then you can invoke callHandler.acceptCall(callId) to accept the current incoming call. -->
You can get the incoming call id from `ListenersProvider.sdkServiceListener` Then you can invoke ReveSdkCallHandler.acceptCall(callId) to accept the current incoming call. -->
Clone repository
  • Call Handling
  • Configuring Listeners
  • Demo App Details
  • Get Api Key
  • Other Important Topics
  • Home