New Call

This webhook is sent when a new call is created on the platform, it is configured at the appplication level

Payload

The payload of this webhook request is an object.
call_sidstringRequired

a unique identifier for the call.

application_sidstringRequired

a unique identifier for the jambonz application controlling this call

account_sidstringRequired

a unique identifier for the jambonz account associated with the application

directionenumRequired
Allowed values: inboundoutbound

the direction of the call:

  • inbound - The call was originated outside jambonz
  • outbound - The call was originated by jambonz
fromstringRequired

the calling party number

tostringRequired

the called party number

caller_idstringRequired

the caller name, if known

sip_statusdoubleRequired

the most recent sip status code received or generated for the call

call_statusenumRequired

current status of the call:

  • trying - a new incoming call has arrived or an outbound call has just been sent
  • ringing - a 180 Ringing response has been sent or received
  • early-media - an early media connection has been established prior to answering the call (183 Session Progress)
  • in-progress - call has been answered
  • completed - an answered call has ended
  • failed - a call attempt failed
  • busy - a call attempt failed because the called party returned a busy status
  • no-answer - a call attempt failed because it was not answered in time

Response

200
any
Return a 200 status to indicate that the data was received successfully.
Payload
1{
2 "call_sid": "d2515c3b-b79a-41a2-971a-445e769c823c",
3 "application_sid": "72c5c38f-9bba-40ce-aa83-aaa6be55e1b5",
4 "account_sid": "bad98250-b34d-459d-9e90-f97dfb9bc519",
5 "direction": "inbound",
6 "from": "+12125551212",
7 "to": "+14155551234",
8 "caller_id": "John Doe",
9 "sip_status": 100,
10 "call_status": "trying"
11}
Built with