Improve Phone Jump Matching When Country Code is Not In CRM

Currently, most of the phone numbers in our CRM (ConnectWise) are not saved in E.164 format so no country code is present with the exception for phone numbers that are outside of the country. This makes the Phone Jumps feature almost useless as the Caller ID sent over from the phone system will always include the country code, which will never match against the phone numbers that have no country code present.

I recommend adding a new Admin > General setting for "Default Country Code" and then creating logic that says:

  1. If a Phone Jump number has no results

  2. And the first digits of the number provided matches the default country code

  3. Strip off the country code and re-attempt the match

Example:

A phone number in ConnectWise is (800) 555-1212

A call comes in and the phone jump URL presented is phone_jumps/18005551212

Currently, this wouldn't match and it would return no results.

Instead, seeing no results, Hudu compares the default country code (1) with the first digit(s) of the number provided (18005551212) to see if there is a match.

If there is, the country code is stripped off (8005551212) and then the match reattempted.

This time /8005551212 will match the ConnectWise phone number (800) 555-1212 and the Phone Jump works.

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board

Core Web App

Subscribe to request

Get notified by email when there are changes.