# Webhook question - no useful information?

**URL:** <https://openvidu.discourse.group/t/webhook-question-no-useful-information/2713>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [February 17, 2021, 7:25pm UTC](https://openvidu.discourse.group/t/webhook-question-no-useful-information/2713 "2021-02-17T19:25:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vidguy](https://avatars.discourse-cdn.com/v4/letter/v/ce73a5/32.png) [@vidguy](https://openvidu.discourse.group/u/vidguy)\
**Post date:** [February 17, 2021, 7:25pm UTC](https://openvidu.discourse.group/t/webhook-question-no-useful-information/2713/1 "2021-02-17T19:25:57Z")

</div>

I am doing this for version OpenVidu version 2.15.0.

```
OPENVIDU_WEBHOOK=true
OPENVIDU_WEBHOOK_ENDPOINT=https://mydomain.com/api.php?postNewVideoCall=1
#OPENVIDU_WEBHOOK_HEADERS=
OPENVIDU_WEBHOOK_EVENTS=[sessionCreated,sessionDestroyed,participantJoined,participantLeft,webrtcConnectionCreated,webrt$

```

It works, I get a hit when someone makes a call which is good, but it doesn’t pass any useful information to my endpoint. Why? Is there a way to get it to also send who is calling? I mean the inspector’s Active Sessions shows who and what, why is that info not sent too with the webhook?

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [February 17, 2021, 8:58pm UTC](https://openvidu.discourse.group/t/webhook-question-no-useful-information/2713/2 "2021-02-17T20:58:58Z")

</div>

You have the very same information in both the REST API (which is the data endpoint used by the Inspector) and the CDR/WebHook events.  
For example, the participantJoined event has all the info about it ( **Connection** objects in the REST API entities): [OpenVidu Docs](https://docs.openvidu.io/en/2.16.0/reference-docs/openvidu-server-cdr/#participantjoined)  
Same for every webrtc connection ( **publishers** and **subscribers** in the REST API entities): [OpenVidu Docs](https://docs.openvidu.io/en/2.16.0/reference-docs/openvidu-server-cdr/#webrtcconnectioncreated)

---

<div class="post-metadata">

**Author:** ![vidguy](https://avatars.discourse-cdn.com/v4/letter/v/ce73a5/32.png) [@vidguy](https://openvidu.discourse.group/u/vidguy)\
**Post date:** [February 18, 2021, 5:20pm UTC](https://openvidu.discourse.group/t/webhook-question-no-useful-information/2713/3 "2021-02-18T17:20:19Z")

</div>

Thanks, so I enabled OPENVIDU\_CDR=true in my .env. It works, all activity is logged to my log directory of /opt/openvidu/cdr in JSON format. thats great. But thats still on the server, the JSON log data is not part of the webhook call. So when someone tries to call, I get a webhook hit to my external PHP script, but it has no posted data still. its just a notice that something happened, but I don’t even know what. I have to somehow build a solution to check this JSON log file at /opt/openvidu/cdr to find out what happened now? Why? Wouldn’t the info be posted with the webhook hit?

Am I missing something? I mean you said “You have the very same information in both the REST API… and the CDR/WebHook events” - then where is it in the webhook? when I look at the posted variables from the webhook hit/event I see no information at all, including no CDR log data that I want.

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [February 18, 2021, 6:42pm UTC](https://openvidu.discourse.group/t/webhook-question-no-useful-information/2713/4 "2021-02-18T18:42:12Z")

</div>

CDR and WebHook serve the very same information into two different places. The documentation explains everything. The CDR generates a log file with the information, the webhook allows you to react in real time from your application’s server side.

---

<div class="post-metadata">

**Author:** ![vidguy](https://avatars.discourse-cdn.com/v4/letter/v/ce73a5/32.png) [@vidguy](https://openvidu.discourse.group/u/vidguy)\
**Post date:** [February 19, 2021, 2:22pm UTC](https://openvidu.discourse.group/t/webhook-question-no-useful-information/2713/5 "2021-02-19T14:22:08Z")

</div>

Thanks, I figured it out. The JSON is not posted as a POST variable, you just read the HTTP stream directly. All great.
