Vapi4kConfig
Functions
Link copied to clipboard
abstract fun inboundCallApplication(block: InboundCallApplication.() -> Unit): InboundCallApplication
Creates a context for an InboundCall application.
Link copied to clipboard
Whenever a request is made, the contents of the onAllRequests{} block will be executed.
Link copied to clipboard
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
abstract fun outboundCallApplication(block: OutboundCallApplication.() -> Unit): OutboundCallApplication
Creates a context for an InboundCall application.
Link copied to clipboard
Creates a context for an InboundCall application.