... | ... | @@ -3,15 +3,15 @@ |
|
|
A small demo app is provided with the SDK. You can clone it from [here](https:/www.github.com). This app can be helpful for implementing the sdk in your own app.
|
|
|
|
|
|
This demo app follows the steps suggestion from [this page](home).
|
|
|
The app's MainActivity starts the SIP functionalities Through an instance of the SIPWrappper class with correct configuration. *The Demo app is written with **Kotlin**.*
|
|
|
The app's MainActivity starts the SIP functionalities Through the SIPWrappper class with correct configuration. *The Demo app is written with **Kotlin**.*
|
|
|
```kotlin
|
|
|
SIPWrapper.restartSIP(applicationContext, thisAppConfig)
|
|
|
SIPWrapper.startSIP(applicationContext, thisAppConfig)
|
|
|
```
|
|
|
Main Activity also hosts all the log in and log out logic. Main activity's workflow can be characterized as a linear progression described as below.
|
|
|
|
|
|
1. Check & ask for Audio Recording Permission
|
|
|
2. Build AppConfig.
|
|
|
3. Restart SIP.
|
|
|
3. start SIP.
|
|
|
4. Start the service that Listenes for Incoming calls
|
|
|
5. Let user start any Outgoing Call Activity.
|
|
|
6. Log in and out of accounts.
|
... | ... | |