Go to Settings
Head over to Phone Numbers tab then Click Add Number
Choose Add Phone Number
Select your country and click the Filter button so you can filter the number you want to purchase according to your preference
You can filter to search by digit or phrases and match it to a certain part of the number (Example used in this video is to filter the numbers according to an area code)
Once you're good with the filters, click Apply
Choose your preferred number then click Proceed to Buy
After purchasing the number, the next thing to do is to configure it. To do that, click on the kebab icon then click Edit Configuration
Here are the details that you may need to configure with your newly purchased number. Once you're done with the configuration, click Save