... | @@ -47,7 +47,7 @@ dependencies { |
... | @@ -47,7 +47,7 @@ dependencies { |
|
```
|
|
```
|
|
|
|
|
|
**Step 2. Configuration:** In this step you need to configure the AppConfig according to the Configuration provided to you by Reve Systems.
|
|
**Step 2. Configuration:** In this step you need to configure the AppConfig according to the Configuration provided to you by Reve Systems.
|
|
Your app has to be configured exactly as the credentials and attributes provided, otherwise you will not be able to connect to the server properly. You have to build an instance of the class AppConfig and pass it to the `SIPWrapper.restartSIP(context: Context, appConfig:AppConfig)` method. You have to build an instance the following way.
|
|
Your app has to be configured exactly as the credentials and attributes provided, otherwise you will not be able to connect to the server properly. You have to build an instance of the class AppConfig and pass it to the `SIPWrapper.startSIP(context: Context, appConfig:AppConfig)` method. You have to build an instance the following way.
|
|
|
|
|
|
>In kotlin
|
|
>In kotlin
|
|
```kotlin
|
|
```kotlin
|
... | @@ -83,7 +83,7 @@ AppConfig appConfig = new AppConfig(myConfigBuilder); |
... | @@ -83,7 +83,7 @@ AppConfig appConfig = new AppConfig(myConfigBuilder); |
|
UserInfo.setUsername(AppUI.getusername())
|
|
UserInfo.setUsername(AppUI.getusername())
|
|
UserInfo.setPassword(AppUI.getSipPassword())
|
|
UserInfo.setPassword(AppUI.getSipPassword())
|
|
```
|
|
```
|
|
**Step 4. Starting the Call Functionalities** At this stage The configuration of the App is complete. Now you can start to activate the functionalities of this sdk. You have to call the function `SIPWrapper.restartSIP(context: Context, appConfig:AppConfig)`. This method starts the components that lets you start/receive and end calls. Here context should be the default applicationContext and the appConfig is what you created in **Step 2.**
|
|
**Step 4. Starting the Call Functionalities** At this stage The configuration of the App is complete. Now you can start to activate the functionalities of this sdk. You have to call the function `SIPWrapper.startSIP(context: Context, appConfig:AppConfig)`. This method starts the components that lets you start/receive and end calls. Here context should be the default applicationContext and the appConfig is what you created in **Step 2.**
|
|
If all the configuration is ok, this function will start the core components of this sdk. You have to make sure that you are using the exact configuration provided by Reve Systems. You can call this method inside an activity or a service.
|
|
If all the configuration is ok, this function will start the core components of this sdk. You have to make sure that you are using the exact configuration provided by Reve Systems. You can call this method inside an activity or a service.
|
|
|
|
|
|
**Step 5. Permission:** Make sure your app has permission to **record Audio**. Otherwise no audio data will be sent via this app.
|
|
**Step 5. Permission:** Make sure your app has permission to **record Audio**. Otherwise no audio data will be sent via this app.
|
... | @@ -105,7 +105,7 @@ private fun checkAndRequestPermissions() { |
... | @@ -105,7 +105,7 @@ private fun checkAndRequestPermissions() { |
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
**Step 6. Call Handling:** The aforementioned `SIPWrapper.restartSIP(Context,AppConfig)` function will initialize **CallHandler**, a class for all types of call related activites. You can now make a call by simply calling `CallHandler.makeCall(number:String, isPaid:Boolean)`
|
|
**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 calling `CallHandler.makeCall(number:String, isPaid:Boolean)`
|
|
function and end call by calling `CallHandler.endCall()` function. You can receive Peer to Peer calls by using `CallHandler.acceptCall(callid:String)`.
|
|
function and end call by calling `CallHandler.endCall()` function. You can receive Peer to Peer calls by using `CallHandler.acceptCall(callid:String)`.
|
|
|
|
|
|
Check out the **[Call Handling guide](Call-Handling)** for details on Handling of calls using this SDK and UI integration with Native App.
|
|
Check out the **[Call Handling guide](Call-Handling)** for details on Handling of calls using this SDK and UI integration with Native App.
|
... | | ... | |