|
|
# Demo App Details
|
|
|
|
|
|
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.
|
|
|
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 the SIPWrappper class with correct configuration. *The Demo app is written with **Kotlin**.*
|
... | ... | @@ -11,12 +11,12 @@ Main Activity also hosts all the log in and log out logic. Main activity's workf |
|
|
|
|
|
1. Check & ask for Audio Recording Permission
|
|
|
2. Build AppConfig.
|
|
|
3. start SIP.
|
|
|
4. Start the service that Listenes for Incoming calls
|
|
|
3. Start SIP.
|
|
|
4. Start the service that Listeners for Incoming calls
|
|
|
5. Let user start any Outgoing Call Activity.
|
|
|
6. Log in and out of accounts.
|
|
|
|
|
|
The App has a CallWindowActivity Class. This is launched when the user starts an outgoing call or when an Incoming call is made with the user as reveiver. User can Accept or Decline Incoming call and End the outgoing calls From here. This Activity also stores Log data to the room database.
|
|
|
The App has a CallWindowActivity Class. This is launched when the user starts an outgoing call or when an Incoming call is made with the user as receiver. User can Accept or Decline Incoming call and End the outgoing calls From here. This Activity also stores Log data to the room database.
|
|
|
|
|
|
Main Activity uses MainViewModel and CallWindowActivity uses CallViewModel to access the call log database. We encourage you to use your own database as the Room Database used here is locally stored and the user will lose all the call logs if somehow the local logs are deleted.
|
|
|
|
... | ... | @@ -29,7 +29,7 @@ Finally You can Change Login Credentials from the panel below as well as view ca |
|
|
<a href="url"><img src="uploads/c7a1aa424c15da38d8f9be9e9e835f2a/main_settings.jpg" width="350" ></a>
|
|
|
|
|
|
## CallWindowActivity
|
|
|
This Activity is shown when there is an active call going on which may either be incoming or outgoing. End Call Button ends any call but Accept Call button only shows up it is an incoming call. The Call states durations etc are shown up in this layout.
|
|
|
This Activity is shown when there is an active call going on which may either be incoming or outgoing. End Call Button ends any call but Accept Call button only shows up it is an incoming call. The Call states durations etc. are shown up in this layout.
|
|
|
|
|
|
|
|
|
<a href="url"><img src="uploads/2826e0002a67d5a8f40aa53ccc2bfbb9/call_incoming.jpg" width="350" ></a>
|
... | ... | |