# CID Lookup - using HTTP/HTTPS & BulkVS

**URL:** https://forums.vitalpbx.org/t/cid-lookup-using-http-https-bulkvs/2216
**Category:** VitalPBX
**Created:** [January 15, 2023, 8:38pm UTC](https://forums.vitalpbx.org/t/cid-lookup-using-http-https-bulkvs/2216 "2023-01-15T20:38:16Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![jpowers](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/j/e495f1/32.png) [@jpowers](https://forums.vitalpbx.org/u/jpowers)
#### Post date: [January 15, 2023, 8:38pm UTC](https://forums.vitalpbx.org/t/cid-lookup-using-http-https-bulkvs/2216/1 "2023-01-15T20:38:16Z")

</div>

I am looking for some help in configuring my VitalPBX server to successfully query BulkVS for CID Lookup. I have read the Wiki on how to generally configure this, but I cannot seem to quite get the syntax correct. Does anyone have a sample configuration that they have used to make this work?  
One more thing: Do I need to put CID Lookup on each _tenant_, or can I just put it in the “main” tenant and have it work for all of the tenants under it?

I’ve attached my configuration so far on this, and redacted the API key.

 ![2023-01-15_14-13](https://forums.vitalpbx.org/uploads/default/original/2X/4/47ce743c50022bdd1b5d77ba38f32857fd486bf0.png)

---

<div class="post-metadata">

### Author: ![PitzKey](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/pitzkey/32/420_2.png) [@PitzKey](https://forums.vitalpbx.org/u/PitzKey)
#### Post date: [January 16, 2023, 5:02am UTC](https://forums.vitalpbx.org/t/cid-lookup-using-http-https-bulkvs/2216/2 "2023-01-16T05:02:48Z")

</div>

Please share their documentation.

---

<div class="post-metadata">

### Author: ![jpowers](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/j/e495f1/32.png) [@jpowers](https://forums.vitalpbx.org/u/jpowers)
#### Post date: [January 16, 2023, 12:09pm UTC](https://forums.vitalpbx.org/t/cid-lookup-using-http-https-bulkvs/2216/3 "2023-01-16T12:09:34Z")

</div>

Their documentation is fairly sparse, but here is what’s on their faq from their website. I’m thinking that I’m just not getting the query string correct. Thanks for your help!

 ![image](https://forums.vitalpbx.org/uploads/default/original/2X/3/36a4d4f0aa2c70bd4aef268c0eb50dddf7b11fd0.jpeg)  
[BulkVS http & https CNAM FAQ](https://www.bulkvs.com/faqs/cnam-http.php)

---

<div class="post-metadata">

### Author: ![PitzKey](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/pitzkey/32/420_2.png) [@PitzKey](https://forums.vitalpbx.org/u/PitzKey)
#### Post date: [January 16, 2023, 12:46pm UTC](https://forums.vitalpbx.org/t/cid-lookup-using-http-https-bulkvs/2216/4 "2023-01-16T12:46:59Z")

</div>

Try using `${CALLERID(num)}`

---

<div class="post-metadata">

### Author: ![jpowers](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/j/e495f1/32.png) [@jpowers](https://forums.vitalpbx.org/u/jpowers)
#### Post date: [January 16, 2023, 3:11pm UTC](https://forums.vitalpbx.org/t/cid-lookup-using-http-https-bulkvs/2216/5 "2023-01-16T15:11:12Z")

</div>

> [@PitzKey](#):
>
> ${CALLERID(num)}

I gave that a try, but it still doesn’t seem to be doing anything. Should I only have to set this up in the “CID Lookup” section, or would it be better to use the CID Modifier portion instead? They both seem to do a similar function. I also checked the log files, and I can see no mention of a lookup even being attempted on my inbound calls. I may not be checking the right log file, however!

---

<div class="post-metadata">

### Author: ![PitzKey](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/pitzkey/32/420_2.png) [@PitzKey](https://forums.vitalpbx.org/u/PitzKey)
#### Post date: [January 16, 2023, 3:23pm UTC](https://forums.vitalpbx.org/t/cid-lookup-using-http-https-bulkvs/2216/6 "2023-01-16T15:23:42Z")

</div>

Can you try running it manually? does it return any data?

---

<div class="post-metadata">

### Author: ![jpowers](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/j/e495f1/32.png) [@jpowers](https://forums.vitalpbx.org/u/jpowers)
#### Post date: [January 16, 2023, 3:25pm UTC](https://forums.vitalpbx.org/t/cid-lookup-using-http-https-bulkvs/2216/7 "2023-01-16T15:25:13Z")

</div>

You know, I thought about that, and it does not give me anything other than an a 401 error. I thought I should be able to just put that URL into a web browser and try it. I’m not sure if that’s supposed to work with BulkVS, but I wouldn’t see why not. I didn’t really think there was a lot to all of this, so it may be a permissions/authentication issue with them. I will investigate that side a bit further and let you know.

---

<div class="post-metadata">

### Author: ![PitzKey](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/pitzkey/32/420_2.png) [@PitzKey](https://forums.vitalpbx.org/u/PitzKey)
#### Post date: [January 16, 2023, 3:41pm UTC](https://forums.vitalpbx.org/t/cid-lookup-using-http-https-bulkvs/2216/8 "2023-01-16T15:41:53Z")

</div>

From bash

```auto
curl https://cnam.bulkcnam.com/?id=API KEY&did=2024561111

```

Replace API KEY with your API Key

---

<div class="post-metadata">

### Author: ![miguel](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/miguel/32/415_2.png) [@miguel](https://forums.vitalpbx.org/u/miguel)
#### Post date: [January 16, 2023, 4:18pm UTC](https://forums.vitalpbx.org/t/cid-lookup-using-http-https-bulkvs/2216/9 "2023-01-16T16:18:07Z")

</div>

Did you get the ID value from the REST API section? or the SOAP API?

---

<div class="post-metadata">

### Author: ![jpowers](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/j/e495f1/32.png) [@jpowers](https://forums.vitalpbx.org/u/jpowers)
#### Post date: [January 16, 2023, 4:53pm UTC](https://forums.vitalpbx.org/t/cid-lookup-using-http-https-bulkvs/2216/10 "2023-01-16T16:53:31Z")

</div>

Miguel, I arrived at the same conclusion you did there. I was using the REST API instead of the SOAP. It works fine now with curl or in a web browser. However, incoming calls still don’t seem to be fetching any data with this. I have tried setting it up under both the tenant and the main tenant, just to rule that out. Neither one appears to do a lookup.

---

<div class="post-metadata">

### Author: ![jpowers](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/j/e495f1/32.png) [@jpowers](https://forums.vitalpbx.org/u/jpowers)
#### Post date: [January 16, 2023, 5:09pm UTC](https://forums.vitalpbx.org/t/cid-lookup-using-http-https-bulkvs/2216/11 "2023-01-16T17:09:31Z")

</div>

I figured out a way to make it work. Instead of putting the configuration into the “CID Lookup” area, I instead put it under “CID Modifiers” using HTTP/HTTPS. I then placed this modifier for use on the incoming routes, and it queries and displays the names without a problem. The downside to this method is having to do it on every route, but this is not a big problem.  
I used the following to do this:  
[https://cnam.bulkcnam.com/?id=\*\*SOAP](https://cnam.bulkcnam.com/?id=**SOAP) API KEY\*\*&did=[CIDNUM]

---

<div class="post-metadata">

### Author: ![mo10](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mo10](https://forums.vitalpbx.org/u/mo10)
#### Post date: [January 16, 2023, 6:20pm UTC](https://forums.vitalpbx.org/t/cid-lookup-using-http-https-bulkvs/2216/12 "2023-01-16T18:20:11Z")

</div>

> [@jpowers](#):
>
> The downside to this method is having to do it on every route

Yes, would be nice to have a hook before inbound routes.

---

<div class="post-metadata">

### Author: ![system](https://forums.vitalpbx.org/uploads/default/original/1X/672b458a1d454755270c2c16adc5316b641c3c6a.png) [@system](https://forums.vitalpbx.org/u/system)
#### Post date: [February 15, 2023, 6:20pm UTC](https://forums.vitalpbx.org/t/cid-lookup-using-http-https-bulkvs/2216/13 "2023-02-15T18:20:47Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
