Instead of using the national callerID database, we can fetch a caller's callerID information from a 3rd party system or CRM software, as long as they implement the proper API on their side.
Configuration Settings
You can configure CallerID Fetch on a per-phone number basis. In the Admin Portal, go to Call Routing > Inbound, then edit a phone number. The following fields exist:
Example of Our GET Request
The syntax of our request is {your_callerid_get_url}?phoneNumber={CALLER'S_NUMBER} with an example of this below:
https://crm.provider.com/callerid_lookup?phoneNumber=19726001150
Where "https://crm.provider.com/callerid_lookup" is the "CallerID Get URL" field you configure in the Admin portal.
If you have X-API-Key set, we will send it along in the GET headers.
Example of Your JSON Response
{"field":"callerID text to display"}
Any other response will be treated as a failure, and the phone system will simply continue using the national database for lookup.
API Timeout & Caller Silence
As of the time of this writing, the phone system will wait up to 6 seconds for your API to respond. This causes the caller to hear silence during your API's response. Please attempt to return a response as quickly as possible, to encourage good caller experience.
Live Test Case
If you would like to test this feature out, you can set the following parameters:
CallerID Get URL: https://pbx.primevox.net/api/test_callerid_get.php
CallerID Get JSON Field: callerid_text
If you visit the above URL in your browser you'll see the output will be a JSON block with "HELLO X" where X is the phoneNumber parameter passed when a call comes in.