How to compare country codes
I need an HMR that compares the Country code of the from field with a stored value from Geolocation information. I am trying to determine if a call is generated in the country that the SBC is in.
For instance from Geolocation information I can set the country code of a physical device to +1. When a caller makes a call from that device, they may have a From value of +33160306053. I want to know if the from value starts with the same characters as the country code of the physical device.
This seems pretty straight forward, but once i move into APAC where there are a number of country codes that match the first 3 characters I am lost.