Vapi4kConfig

interface Vapi4kConfig : CommonCallbacks

Functions

Link copied to clipboard

Creates a context for an InboundCall application.

Link copied to clipboard
abstract fun onAllRequests(block: suspend (requestContext: RequestContext) -> Unit)

Whenever a request is made, the contents of the onAllRequests{} block will be executed.

Link copied to clipboard
abstract fun onAllResponses(block: suspend (responseContext: ResponseContext) -> Unit)

Whenever a response is received, the contents of the onAllResponses{} block will be executed.

Link copied to clipboard
abstract fun onRequest(requestType: ServerRequestType, vararg requestTypes: ServerRequestType, block: suspend (requestContext: RequestContext) -> Unit)

Whenever a request is made for the specified type(s), the contents of the onRequest{} block will be executed.

Link copied to clipboard
abstract fun onResponse(requestType: ServerRequestType, vararg requestTypes: ServerRequestType, block: suspend (responseContext: ResponseContext) -> Unit)

Whenever a response of the specified type(s) is received, the contents of the onResponse{} block will be executed.

Link copied to clipboard

Creates a context for an InboundCall application.

Link copied to clipboard
abstract fun webApplication(block: WebApplication.() -> Unit): WebApplication

Creates a context for an InboundCall application.