Skip to main content

Webhooks Overview

PIOPIY provides two types of webhooks for your web server: 1.CDR (Call Detail Records) and 2.Live Events. By configuring webhooks, you can receive real-time notifications about call activities, including call initiation, status updates, and detailed call records.

What is PIOPIY CDR?

PIOPIY CDR (Call Detail Records) provide detailed information about completed calls. Webhooks notify your web server about completed incoming and outgoing calls by sending JSON data to your configured URL through a POST request.

How CDR Work in the PIOPIY?

To receive CDR notifications, configure your web server's POST method URL in the PIOPIY dashboard. Once configured, the PIOPIY platform will send notifications about the completed status of both incoming and outgoing calls.

CDR Retry Mechanism:

If a call is disconnected, the platform will attempt to resend the CDR response three times, with increasing delay intervals. The retry process follows this pattern:

  • First Response : Received immediately after the call is disconnected.

  • Second Response : Received 5 minutes after the first response is received.

  • Third Response : Received 10 minutes after the second response is received.

  • Final Response : Received 15 minutes after the third response is received.

The retry mechanism ensures that the CDR is successfully delivered to your web server even if there are network issues or interruptions.

Webhooks

List of CDR

NoCDRDescription
1in_missedCDR for getting when an inbound call is missed either leg a or leg b
2in_answeredCDR for getting when an inbound call is answered either leg a or leg b
3out_missedCDR for getting when an outbound call is missed either leg a or leg b
4out_answeredCDR for getting when an outbound call is answered either leg a or leg b

Note

Configuring your POST method URL for Live Event and CDR in PIOPIY, is same as webhooks.

What is PIOPIY Live Events ?

PIOPIY Live Events notify the status of ongoing calls. The platform sends JSON data through POST requests to your configured web server with the call status, such as started, answered, hangup, stream-connected, stream-disconnected, and stream-error.

How Live Events works in PIOPIY?

To receive Live Event notifications, configure your web server's POST method URL in the PIOPIY dashboard. Once the configuration is complete, the PIOPIY platform will send Live Event notifications about ongoing calls.

List of Events

NoEventsDescription
1in_answeredEvent for getting when an inbound call is answered
2in_hangupEvent for getting when an inbound call ends
3out_startedEvent for getting when an outbound call starts either leg a or leg b
4out_answeredEvent for getting when an outbound call is answered either leg a or leg b
5out_hangupEvent for getting when an outbound call ends either leg a or leg b
6stream_connectedEvent for getting when a streaming is connected
7stream_disconnectedEvent for getting when a media streaming is disconnected
8stream_errorEvent for getting when an error occurs during a streaming connection