CallsApi. Android
Api to work with voip calls from intercom.
Get call status
Use this request to check call status.
If request was successful you'll get VMSIntercomCall
object.
@GET(CALLS_STATUS)
suspend fun callStatus(@Path(ID) id: String): VMSVisitHistory
Call answered
Use this request to let server know that the call was answered on current device.
If request was successful you'll get VMSIntercomAnswer
object. Use it to start sip session for this call.
@POST(CALLS_ANSWER)
suspend fun callAnswered(@Path(ID) id: String): VMSIntercomAnswer
Call canceled
Use this request to let server know that the call was canceled on current device.
If request was successful response will return Response<Unit>
.
@POST(CALLS_CANCEL)
suspend fun callCanceled(@Path(ID) id: String): Response<Unit>
Call ended
Use this request to let server know that the call was ended on current device.
If request was successful response will return Response<Unit>
.
@POST(CALLS_END)
suspend fun callEnded(@Path(ID) id: String): Response<Unit>