Decision in flow to check if the number is a UK mobile number or not

Hi guys,

Was wondering if anybody had any flows to share where there is a decision to see if the number dialling in is a mobile number (UK) or landline. Use case is, if its a mobile number, want to offer a link to be sent to download our mobile app, if landline, ignore.

Thank you

Assuming mobile numbers are intermixed with landline numbers in the UK (like they are in the US), you would need to gain access to a 3rd party service that can identify the nature of the line based on the number. That service can then be called from a data action in Architect. If that service doesn't fit the requirements for a data action (standard JSON-based REST web service), you'll need to build a middleware that can handle a data action request and proxy the request to the 3rd party service.

If you're looking for recommendations on such a service, I'd recommend posting on the Genesys Cloud Community forum.

So our mobile numebrs would be +447 starting and all landline numbers would be +4420 - we can differentiate so wondering if its just a simple decision we could make? but not sure what the string would look like in the decision. if caller original address starts with +447 for example. I found this. Phone number data type - Genesys Cloud Resource Center

For an inbound flow the phone number is a built-in variable in Architect, Call.Ani

and you could do a decision in the flow using something like the "Contains" function to see if the number contains +447.

Thank you for your help both, much appreciated.

Hi njadva
How did you complete this please, I've tried
Decision
call.ani contains("+44")
and
call.ani contains(+44)
and both fail

When you want to call a phone number in the United Kingdom, you need to know the UK phone number format. It consists of the country code 44 and then eight digits. Any number with a leading zero is only for use by the 999 emergency services in England and Wales. The UK number in international format is ‘+44-7911 123456’, so without the first zero. And second, in E. 164 notation, all spaces are removed, dashes are ‘-‘ and parentheses are ‘(‘ and ‘)’.

The UK phone number format is so versatile that it can be used in any country. It starts with a plus (+) sign, followed by the country code of the , followed by the area code, and then space.Many countries like Canada use a similar format to the uk phone number format, but start with just a plus sign.

In some other countries, the area code is not included and instead they start with just numbers.

Some other countries have their own unique formats for their phone numbers.UK phone numbers are usually 8 digits long, but there are some exceptions

The UK phone number is a country code + area code + local number. For example, the number 0845 123 4567 would be a landline in Northamptonshire.

A mobile or international call from the UK to the US would look like 001+000+999-9000.The +44 prefix is the international dialing code for the United Kingdom, but it is also used to call other countries.Finding someone’s phone number in the UK is a lot more difficult than you might think. You can make your search easier by using a reverse phone number search engine like FindIt.

So, if you need to find the phone number of an individual, or even just want to find out who owns a particular number, simply enter their name or email address into this website.

After finding your results, you can get in touch with them via email or call them on their landline directly from within the website!In the UK, the mobile numbers are capped at 12 digits.

However, some people may still find it difficult to remember numbers with 12 digits. This is why many people use the 0000 format as an easy way to remember their phone number.Many people are asking whether having 12-digit mobile phone numbers is really necessary and if this new change will really help people in any meaningful way?

A lot of research has been conducted on the topic and it seems that there is no clear evidence that shows that having longer UK mobile hunter express tracking number would make any difference to how well they can remember their phone number.The 0 in front of phone numbers is not a mistake.

When the telephone system was first introduced, phone numbers were seven digits. However, the last two digits became unnecessary with the advent of 7-digit dialing. So, if you have an old 7-digit number that ends in a 0, it’s not a mistake – it’s just how the system worked back then.

1 Like

One thing you can try is to have your flow read the phone number back to you, then you can figure out exactly what format the number is showing up as.

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