Write cloud-side JavaScript that routes calls in real-time according to the required business logic. A JS session is automatically created upon the arrival of an incoming call, and enables outgoing calls to one or more phone numbers. The JS API allows for connecting audio between calls, recording calls, converting speech to text, synthesizing speech from text, and much more.