|
**How To configure and use Reve Systems Voice Call sdk in your custom Android App**<br>
|
|
<h1>**How To configure and use [Reve Systems](https://www.revesoft.com/) Voice Call sdk in your custom Android App**<br></h1>
|
|
[Reve Systems][https://www.revesoft.com/] |
|
|
|
\ No newline at end of file |
|
Follow the Steps below to Implement the Reve Voice Android SDK for your own Dialer App<br>
|
|
|
|
**Step 1.Gradle:** Firstly you have to add the gradle dependency in your app’s build.gradle file. You can add the following line inside the dependencies{} tab to the aforementioned file to get access to the necessary packages. Sync your project after that.<br>
|
|
|
|
`**api 'com.revesoft.sdk:reveSdk:1.6.1-4' .**`
|
|
|
|
|
|
|
|
**Step 2. Configuration:** In this step you need to configure the AppConfig according to the Configuration provided to you by Reve Systems. Check out the Detailed **[Configuration Guide](configuration-page)**
|
|
|
|
|
|
|
|
**Step 3. Setting User Credentials:** Set the username and Password of the end user in UserInfo class. Taking these two pieces of information from the UI is recommended.
|
|
|
|
|
|
|
|
```kotlin
|
|
|
|
UserInfo.setUsername(AppUI.getusername())
|
|
|
|
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 get an instance sipwrapper of the Class **SIPWrapper** and then 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.
|
|
|
|
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 call this method inside an activity or a service.
|
|
|
|
|
|
|
|
**Step 5. Call Handling:** Check out the **[Call Handling guide](call-handling-page)** for Handling the calls using this sdk. |
|
|
|
\ No newline at end of file |