Skip to main content
Skip table of contents

CallsApi. iOS

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. If any error would occur you would get an VMSApiError object.

CODE
callStatus(with callId: Int, completion: (VMSIntercomCall?, VMSApiError?))

Call answered

Use this request to let server know that the call was answered on current device.

If request was successful you'll get VMSVoipCall object. Use it to start sip session for this call. If any error would occur you would get an VMSApiError object.

CODE
callAnswered(callId: Int, completion: (VMSVoipCall?, VMSApiError?))

Call canceled

Use this request to let server know that the call was canceled on current device.

If request was successful response will return nil. If any error would occur you would get an VMSApiError object.

CODE
callCanceled(callId: Int, completion: (VMSApiError?))

Call ended

Use this request to let server know that the call was ended on current device.

If request was successful response will return nil. If any error would occur you would get an VMSApiError object.

CODE
callEnded(callId: Int, completion: (VMSApiError?))

JavaScript errors detected

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

If this problem persists, please contact our support.