... | ... | @@ -89,7 +89,19 @@ If all the configuration is ok, this function will start the core components of |
|
|
|
|
|
**Step 5. Permission:** Make sure to ask for permissions for Audio record and Make Calls in your app. Otherwise the sdk wont work.
|
|
|
|
|
|
**Step 6. Call Handling:** The aforementioned `SIPWrapper.startSIP(Context,AppConfig)` function will initialize **CallHandler**, a class for all types of call related activites. You can now make a call by simply using `CallHandler.makeCall(number:String)`
|
|
|
**Step 6. Call Handling:** The aforementioned `SIPWrapper.startSIP(Context,AppConfig)`
|
|
|
>In kotlin
|
|
|
```kotlin
|
|
|
ReveSdkSIPWrapper.startSIP(context,appConfig);
|
|
|
|
|
|
```
|
|
|
|
|
|
>In Java
|
|
|
```java
|
|
|
ReveSdkSIPWrapper.Companion.startSIP(context,appConfig);
|
|
|
```
|
|
|
|
|
|
function will initialize **ReveSdkCallHandler**, a class for all types of call related activites. You can now make a call by simply using `ReveSdkCallHandler.makeCall(number:String)`
|
|
|
|
|
|
Start Call using:
|
|
|
|
... | ... | @@ -109,7 +121,7 @@ if (SIPProvider.callState == CallState.READY){ |
|
|
```
|
|
|
|
|
|
|
|
|
function and end call by using`CallHandler.endCall()` function.
|
|
|
function and end call by using`ReveSdkCallHandler.endCall()` function.
|
|
|
|
|
|
>In kotlin
|
|
|
```kotlin
|
... | ... | @@ -127,7 +139,7 @@ if (SIPProvider.callState == CallState.READY){ |
|
|
```
|
|
|
|
|
|
You can receive Peer to Peer calls by using `CallHandler.acceptCall(callid:String)`.
|
|
|
>In Kotlin
|
|
|
|
|
|
```kotlin
|
|
|
if (SIPProvider.callState == CallState.READY){
|
|
|
ReveSdkCallHandler.acceptCall(callid)
|
... | ... | @@ -141,7 +153,7 @@ if (SIPProvider.callState == CallState.READY){ |
|
|
ReveSdkCallHandler.Companion.acceptCall(callid);
|
|
|
}
|
|
|
```
|
|
|
You can get the callid of an incoming call from Listeners. Check out how to [Implement Listeners](Configuring-Listeners).
|
|
|
You can get the callid of an incoming call from Listeners. Check out how to [Implement Listeners]().
|
|
|
|
|
|
Check out the **[Call Handling guide](Call-Handling)** for details on Handling of calls using this SDK and UI integration with Native App.
|
|
|
|
... | ... | |