# Zoom Phone Embed not receiving Matching Contact Event

**URL:** <https://devforum.zoom.us/t/zoom-phone-embed-not-receiving-matching-contact-event/100845>\
**Category:** Phone\
**Created:** [December 27, 2023, 8:05pm UTC](https://devforum.zoom.us/t/zoom-phone-embed-not-receiving-matching-contact-event/100845 "2023-12-27T20:05:13Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoomdev11](https://avatars.discourse-cdn.com/v4/letter/z/f4b2a3/32.png) [@zoomdev11](https://devforum.zoom.us/u/zoomdev11)\
**Post date:** [December 27, 2023, 8:05pm UTC](https://devforum.zoom.us/t/zoom-phone-embed-not-receiving-matching-contact-event/100845/1 "2023-12-27T20:05:13Z")

</div>

**API Endpoint(s) and/or Zoom API Event(s)**

### Match contacts

When `enableContactMatching` is true, the widget matches contacts by phone number on **Incoming** , **Outgoing** , **History** , and **Voicemail** pages.

### zp-contact-match-event

**zp-contact-match-event** fires on the above pages.

```auto
{
  "type": "zp-contact-match-event",
  "data": {
    "requestId": <request id>,
    "phoneNumbers": [<phone number array>] 
  }
}

```

**Description**  
We are not receiving this event even if we already set the enableContactMatching flag to TRUE on the init config section shown below. We already checked on incoming and outgoing calls but the event is not being triggered

```auto
  document.querySelector('iframe#zoom-embeddable-phone-iframe').contentWindow.postMessage(
      {
        type: 'zp-init-config',
        data: {
          enableSavingLog: false,
          enableAutoLog: true,
          enableContactSearching: true,
          enableContactMatching: true,
        },
      },
      'https://applications.zoom.us',
    );

```

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [December 27, 2023, 9:02pm UTC](https://devforum.zoom.us/t/zoom-phone-embed-not-receiving-matching-contact-event/100845/2 "2023-12-27T21:02:37Z")

</div>

Hi @zoomdev11 , is this new behavior or this is the first time you’re trying to use this event?

---

<div class="post-metadata">

**Author:** ![zoomdev11](https://avatars.discourse-cdn.com/v4/letter/z/f4b2a3/32.png) [@zoomdev11](https://devforum.zoom.us/u/zoomdev11)\
**Post date:** [December 28, 2023, 2:47pm UTC](https://devforum.zoom.us/t/zoom-phone-embed-not-receiving-matching-contact-event/100845/4 "2023-12-28T14:47:30Z")

</div>

Hi , so this is my first time trying to use this event , the way I’m trying to catch the event is the same like the other ones that are comming by default(code below) , thanks so much for the help!

```auto
 window.addEventListener('message', (e) => {
        const data = e.data;
        if (data) {
          switch (data.type) {
            case 'zp-call-ringing-event':
              console.log('call ringing: ', data.data);
              break;
            case 'zp-call-connected-event':
              console.log('call connected: ', data.data);
              break;
            case 'zp-contact-match-event':
              console.log('match event: ', data.data);
              break;
            default:
          }
        }
      });

```

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [December 28, 2023, 4:01pm UTC](https://devforum.zoom.us/t/zoom-phone-embed-not-receiving-matching-contact-event/100845/5 "2023-12-28T16:01:02Z")

</div>

> [@zoomdev11](#):
>
> We are not receiving this event even if we already set the enableContactMatching flag to TRUE on the init config section shown below.

I am unable to test this at this time as I need to update my test account licensing for Zoom Phone, but could you please verify the following from [the documentation](https://developers.zoom.us/docs/zoom-phone/smart-embed-guide/#auto-log)?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/f/7f957de4b1c2edda6dddf5fbc836b6aee0662e39.png)  
This sounds like it may be something in the web portal.

> [@zoomdev11](#):
>
> the way I’m trying to catch the event is the same like the other ones that are comming by default(code below)

Can you confirm you’re receiving the other events? I noticed, they don’t have the same settings requirement as `zp-contact-match-event`.

---

<div class="post-metadata">

**Author:** ![zoomdev11](https://avatars.discourse-cdn.com/v4/letter/z/f4b2a3/32.png) [@zoomdev11](https://devforum.zoom.us/u/zoomdev11)\
**Post date:** [December 28, 2023, 5:11pm UTC](https://devforum.zoom.us/t/zoom-phone-embed-not-receiving-matching-contact-event/100845/6 "2023-12-28T17:11:32Z")

</div>

Hi , yes I’m able to catch all the other events but the `zp-contact-match-event` is not. Will share with you the complete snippet from my code

```auto
  useEffect(() => {
    setupPermissions();

    document.querySelector('iframe#zoom-embeddable-phone-iframe').contentWindow.postMessage(
      {
        type: 'zp-init-config',
        data: {
          enableSavingLog: false,
          enableAutoLog: true,
          enableContactSearching: true,
          enableContactMatching: true,
        },
      },
      'https://applications.zoom.us',
    );

    // TODO: US96612 Read Zoom Phone events
      window.addEventListener('message', (e) => {
        const data = e.data;
        if (data) {
          switch (data.type) {
            case 'zp-call-ringing-event':
              console.log('call ringing: ', data.data);
              break;
            case 'zp-call-connected-event':
              console.log('call connected: ', data.data);
              break;
            case 'zp-call-ended-event':
              console.log('call ended: ', data.data);
              break;
            case 'zp-contact-match-event':
              console.log('match event: ', data.data);
              break;
            default:
          }
        }
      });
  }, []);

```

---

<div class="post-metadata">

**Author:** ![zoomdev11](https://avatars.discourse-cdn.com/v4/letter/z/f4b2a3/32.png) [@zoomdev11](https://devforum.zoom.us/u/zoomdev11)\
**Post date:** [December 28, 2023, 5:13pm UTC](https://devforum.zoom.us/t/zoom-phone-embed-not-receiving-matching-contact-event/100845/7 "2023-12-28T17:13:25Z")

</div>

All the events in the switch sentence are being fired the only exception is the ‘zp-contact-match-event’

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [December 28, 2023, 5:52pm UTC](https://devforum.zoom.us/t/zoom-phone-embed-not-receiving-matching-contact-event/100845/8 "2023-12-28T17:52:14Z")

</div>

> [@gianni.zoom](#):
>
> I am unable to test this at this time as I need to update my test account licensing for Zoom Phone, but could you please verify the following from [the documentation](https://developers.zoom.us/docs/zoom-phone/smart-embed-guide/#auto-log)?
> 
> ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/f/7f957de4b1c2edda6dddf5fbc836b6aee0662e39.png)
> 
> This sounds like it may be something in the web portal.

@zoomdev11 can you please confirm or clarify if there’s something in the **web portal Settings** that needs to be done?

---

<div class="post-metadata">

**Author:** ![zoomdev11](https://avatars.discourse-cdn.com/v4/letter/z/f4b2a3/32.png) [@zoomdev11](https://devforum.zoom.us/u/zoomdev11)\
**Post date:** [December 28, 2023, 8:28pm UTC](https://devforum.zoom.us/t/zoom-phone-embed-not-receiving-matching-contact-event/100845/9 "2023-12-28T20:28:54Z")

</div>

We’ve looked through the account Settings and did not see anything that mentioned autolog/autologging.

Should we be checking a different settings location? Would this setting use a different name that we could search for?

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [December 29, 2023, 4:46pm UTC](https://devforum.zoom.us/t/zoom-phone-embed-not-receiving-matching-contact-event/100845/10 "2023-12-29T16:46:20Z")

</div>

Hi @zoomdev11 ,

I’ve just reached out to our Zoom Phone team for insight.

---

<div class="post-metadata">

**Author:** ![zoomdev11](https://avatars.discourse-cdn.com/v4/letter/z/f4b2a3/32.png) [@zoomdev11](https://devforum.zoom.us/u/zoomdev11)\
**Post date:** [December 29, 2023, 5:11pm UTC](https://devforum.zoom.us/t/zoom-phone-embed-not-receiving-matching-contact-event/100845/11 "2023-12-29T17:11:47Z")

</div>

Thanks Appreciate it!

---

<div class="post-metadata">

**Author:** ![zoomdev11](https://avatars.discourse-cdn.com/v4/letter/z/f4b2a3/32.png) [@zoomdev11](https://devforum.zoom.us/u/zoomdev11)\
**Post date:** [January 5, 2024, 4:44pm UTC](https://devforum.zoom.us/t/zoom-phone-embed-not-receiving-matching-contact-event/100845/12 "2024-01-05T16:44:48Z")

</div>

Hi @gianni.zoom Happy New year ! Any news so far ? thanks in advance

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [January 6, 2024, 3:20am UTC](https://devforum.zoom.us/t/zoom-phone-embed-not-receiving-matching-contact-event/100845/13 "2024-01-06T03:20:33Z")

</div>

Hi @zoomdev11 ,

Happy new year! I’ve just followed up and hope to get some insight, otherwise I will follow up for a few more details to escalate into support. Appreciate your patience!

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [January 10, 2024, 9:59pm UTC](https://devforum.zoom.us/t/zoom-phone-embed-not-receiving-matching-contact-event/100845/14 "2024-01-10T21:59:41Z")

</div>

Hi @zoomdev11 ,

Based on my conversations, this seems like a bug. Can you please private message me your developer email and white listed url so the bug report?

It would be helpful to also provide a link to a recording showing the working vs. non working events.

Thanks!

---

<div class="post-metadata">

**Author:** ![provega](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/provega/32/56698_2.png) [@provega](https://devforum.zoom.us/u/provega)\
**Post date:** [March 6, 2024, 3:46am UTC](https://devforum.zoom.us/t/zoom-phone-embed-not-receiving-matching-contact-event/100845/15 "2024-03-06T03:46:22Z")

</div>

Having the same issue. I swear it was working, but not is not. Not clue what this does, but looking at the embedded widget code, it seems to read this value “thirdConfig”

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/6/16b1397d13ba2b42d46f61edb406f003bfc0b45c.png)

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [March 6, 2024, 6:00pm UTC](https://devforum.zoom.us/t/zoom-phone-embed-not-receiving-matching-contact-event/100845/16 "2024-03-06T18:00:31Z")

</div>

Hi @provega ,

We did not hear back from the other developer, but it’d be helpful if you shared the following details via my private message so I can submit a request for further investigation"

- developer email associated with embed email
- whitelisted url
- steps to reproduce
- short recording of issue
