Hierarchy
- VoipWebhookRequest
Properties
direction
Call direction.
disposition
Call outcome.
dstPhone
Number being called
event
srcPhone
Number that is calling
Was this helpful?
Telephony event
An IP telephony event. The system uses this data to display notifications about a call to associated users.
async function VoipParseWebhookRequest(request: FetchRequest): Promise<VoipWebhookParseResult> { const data = JSON.parse(request.body); return { event: { event: VoipWebhookEvent.NotifyStart, direction: VoipCallDirection.In, dstPhone: data.dstPhone, srcPhone: data.srcPhone, disposition: VoipCallDisposition.Unknown, }; }; }