# Inconsistent directions for events of the same call

**URL:** <https://devforum.zoom.us/t/inconsistent-directions-for-events-of-the-same-call/81282>\
**Category:** Phone\
**Tags:** webhooks\
**Created:** [January 11, 2023, 4:02pm UTC](https://devforum.zoom.us/t/inconsistent-directions-for-events-of-the-same-call/81282 "2023-01-11T16:02:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![leobit](https://avatars.discourse-cdn.com/v4/letter/l/2acd7d/32.png) [@leobit](https://devforum.zoom.us/u/leobit)\
**Post date:** [January 11, 2023, 4:02pm UTC](https://devforum.zoom.us/t/inconsistent-directions-for-events-of-the-same-call/81282/1 "2023-01-11T16:02:25Z")

</div>

Hello,

According to the webhook events documentation, the direction property specifies the `Direction of the call` which presumably should be consistent across phone.recording\_completed and phone.callee\_call\_log\_completed for the same call.  
In some cases, we notice inconsistent direction values for the same call.  
Below is an example of this inconsistency in webhook requests for the same call (7178968308336916650).

```auto
**phone.callee_call_log_completed with direction inbound**
       {
            "applicationId": " ***************",
            "monitorTime": 1671483884252,
            "traceId": "PBX_SERVER_7178968308336916650",
            "accountId": " ***************",
            "event": "phone.callee_call_log_completed",
            "status": "200",
            "userId": " ***************",
            "url": " ***************",
            "subscriptionId": " ***************",
            "requestHeaders": "N/A",
            "requestBody": "{\"event\":\"phone.callee_call_log_completed\",\"payload\":{\"account_id\":\"***************\",\"object\":{\"call_logs\":[{\"id\":\"4145322e-b74c-4455-9355-b15db6ecb253\",\"call_type\":\"voip\",\"caller_number\":\"+***************\",\"caller_number_type\":2,\"caller_number_source\":\"external\",\"caller_name\":\" ***************\",\"callee_number\":\"841\",\"callee_number_type\":1,\"callee_name\":\"*************** \",\"direction\":\"inbound\",\"duration\":12,\"result\":\"Call connected\",\"date_time\":\"2022-12-19T21:04:29Z\",\"path\":\"sharedLines\",\"site\":{\"id\":\"***************\"},\"has_recording\":false,\"has_voicemail\":false,\"call_id\":\"7178968308336916650\",\"forwarded_by\":{\"name\":\"Customer Service Dept\",\"extension_type\":\"sharedLineGroup\",\"extension_number\":\"953\"},\"caller_country_code\":\"1\",\"caller_country_iso_code\":\"US\",\"answer_start_time\":\"2022-12-19T21:04:30Z\",\"call_end_time\":\"2022-12-19T21:04:42Z\",\"department\":\"Engagement\",\"cost_center\":\"\"}],\"user_id\":\"***************\"}},\"event_ts\":1671483884237}",
            "responseHeaders": "{\"Content-Length\":\"0\",\"Date\":\"Mon, 19 Dec 2022 21:04:44 GMT\"}",
            "runTime": "427",
            "ttl": 1672693486
        }

**phone.recording_completed with direction outbound**
        {
            "applicationId": " ***************",
            "monitorTime": 1671483883199,
            "traceId": "7178968308336916650+PBX_a1d7be5bfa56402aa9edecc28c614821",
            "accountId": " ***************",
            "event": "phone.recording_completed",
            "status": "200",
            "userId": " ***************",
            "url": " ***************",
            "subscriptionId": " ***************",
            "requestHeaders": "N/A",
            "requestBody": "{\"event\":\"phone.recording_completed\",\"payload\":{\"account_id\":\"***************\",\"object\":{\"recordings\":[{\"id\":\"0f59d7c270774d72a25e7ca5801db481\",\"user_id\":\"***************\",\"caller_number\":\"+ ***************\",\"caller_number_type\":2,\"caller_name\":\"*************** \",\"callee_number\":\"838\",\"callee_number_type\":1,\"callee_name\":\" ***************\",\"direction\":\"outbound\",\"duration\":11,\"download_url\":\"https://zoom.us/v2/phone/recording/download/*************** \",\"date_time\":\"2022-12-19T21:04:30Z\",\"recording_type\":\"Automatic\",\"call_log_id\":\"0f59d7c2-7077-4d72-a25e-7ca5801db481\",\"call_id\":\"7178968308336916650\",\"owner\":{\"type\":\"user\",\"id\":\" ***************\",\"name\":\"*************** \",\"extension_number\":838,\"has_access_permission\":false},\"site\":{\"id\":\" *************** \"},\"end_time\":\"2022-12-19T21:04:42Z\"}]}},\"event_ts\":1671483883122}",
            "responseHeaders": "{\"Content-Length\":\"0\",\"Date\":\"Mon, 19 Dec 2022 21:04:43 GMT\"}",
            "runTime": "248",
            "ttl": 1672693483
        }

```

Can you please investigate and let us know if this is a bug or if we are missing something?

Thank you.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [January 12, 2023, 2:21am UTC](https://devforum.zoom.us/t/inconsistent-directions-for-events-of-the-same-call/81282/2 "2023-01-12T02:21:14Z")

</div>

Thank you for posting the forum and sorry to hear about your experience with Webhooks, @leobit! I am happy to help on this matter. To begin, can you tell us if this is happening all the time or just in certain instances? When did you first start noticing the Inconsistent directions for events?

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [January 12, 2023, 3:28am UTC](https://devforum.zoom.us/t/inconsistent-directions-for-events-of-the-same-call/81282/3 "2023-01-12T03:28:06Z")

</div>

Update:

I’ve asked our engineers to investigate and they have confirmed that the behavior you are observing is normal. This occurs when the caller and callee are both under the same account. Zoom uses the `outbound field` to identify who initiated the recording, which can results in inconsistent direction values for the same call.

Please let me know if you have any questions about this.

---

<div class="post-metadata">

**Author:** ![anawilliam850](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anawilliam850/32/33827_2.png) [@anawilliam850](https://devforum.zoom.us/u/anawilliam850)\
**Post date:** [January 14, 2023, 9:55pm UTC](https://devforum.zoom.us/t/inconsistent-directions-for-events-of-the-same-call/81282/4 "2023-01-14T21:55:33Z")

</div>

Thank for the respond about this problem

---

<div class="post-metadata">

**Author:** ![leobit](https://avatars.discourse-cdn.com/v4/letter/l/2acd7d/32.png) [@leobit](https://devforum.zoom.us/u/leobit)\
**Post date:** [January 17, 2023, 8:31am UTC](https://devforum.zoom.us/t/inconsistent-directions-for-events-of-the-same-call/81282/5 "2023-01-17T08:31:21Z")

</div>

Hi, thank you for looking into this. However, your answer doesn’t seem to apply in this case. The caller is not even using Zoom. Caller is using regular cellphone and his type is **external** (caller\_number\_type: 2), but the direction for **phone.recording\_completed** in **outbound**

Thanks.
