This webhook will be called by octopush in the course of time, each time an acknowledgement of receipt of a Voice SMS is received
Query fields
| Name | Type | Description |
|---|---|---|
| message_id | string | Original message ticket |
| number | string | Mobile number |
| status | string | Status of the acknowledgement of receipt |
| delivery_date | string | Date of receipt of the acknowledgement of receipt in “Y-m-d H:i:s” format |
| call_duration | string | Call Duration |
| charged_duration | string | Invoice duration |
Possible values for the “status” field:
- DELIVERED
- NOT_DELIVERED
- NOT_DELIVERABLE
- BUSY
- REFUSED
- BLACKLISTED_NUMBER
Simple example of a PHP recovery script
$content = json_decode($response); echo $content['message_id']; // sms_5fa275dbf21dc echo $content['number']; // +44600000000 echo $content['status']; // DELIVERED echo $content['delivery_date']; // 2020-11-04 11:11:45 echo $content['call_duration']; // 12 echo $content['charged_duration']; // 30