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, 
       }; 
   }; 
}  

Hierarchy

  • VoipWebhookRequest

Properties

direction

Call direction.

disposition

disposition: VoipCallDisposition

Call outcome.

dstPhone

dstPhone: string

Number being called

event

srcPhone

srcPhone: string

Number that is calling