Skip to main content
Skip table of contents

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.

CODE
@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.

CODE
@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>.

CODE
@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>.

CODE
@POST(CALLS_END)
suspend fun callEnded(@Path(ID) id: String): Response<Unit>

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.