Skip to content

Voice overview

A SIPRTC voice application has two halves:

  1. REST API — you place calls, change live calls, and read records with HTTPS requests to api.siprtc.io (Calls).
  2. TinyML webhooks — when a call connects, SIPRTC asks your server what to do by requesting a URL you configured, and executes the TinyML document you return: speak, play, gather digits, record, dial, join a conference, stream audio, and so on.
Your serverREST client and webhooksSIPRTCPhone network / SIPthe number you callPOST /v1/Accounts/{auth_id}/Calls201 Createdcall resource with its sidplaces the callStatusCallback · initiatedringingStatusCallback · ringingansweredStatusCallback · in-progressGET/POST Url“what should this call do?”TinyML · <Response>…</Response>runs your TinyMLsay, gather, dial, stream…call endsStatusCallback · completed
An outbound call placed with the API

The same flow serves inbound calls: a call to one of your numbers or SIP endpoints fetches TinyML from the voice URL of the application attached to it.

CallerSIPRTCYour serverthe application's voice URLcalls +1 555 010 0001finds the number's applicationGET/POST voice URLCallSid, From, To, Direction…TinyML · <Response>…</Response>runs your TinyML
An inbound call to one of your numbers