When a customer opens the booking calendar for a Video Consultation, the phone number field includes a pre-selected country flag and dial code (extension). This article explains how that default value is determined and the steps required to ensure it displays correctly for your customers.
1. How the Default Extension is Set
The pre-selected phone extension is not determined by the user's timezone or IP address. Instead, it is set according to the locale configuration used to embed the calls widget.
The system matches the country code within the locale to a specific dial code. For example, if the widget is embedded with the locale en-GB, the system identifies the country as "GB" and automatically sets the phone extension to +44.
Technical details on how to set the locale parameter in your integration code can be found in our Initial Setup Documentation.
⚠️ Important: Define Locales in Bam Hub
Before a locale can be used in your embed code to set the phone extension, it must be defined in your Bam Hub settings. If the locale is not enabled in the dashboard, the widget may fallback to the default language, resulting in an incorrect phone extension.
To enable a locale:
- Log in to the Bam Hub.
- Navigate to Settings > Translations.
- Ensure the desired locale (e.g.,
en-GB,sv-SE,de-AT) is listed under the available translations.
Complete Locale-to-Dial-Code Mapping
The following table shows which dial code is pre-selected based on the country code used in your embed locale:
| Country Code | Country Name | Default Dial Code |
|---|---|---|
| AD | Andorra | +376 |
| AF | Afghanistan | +93 |
| AG | Antigua and Barbuda | +1268 |
| AI | Anguilla | +1 264 |
| AL | Albania | +355 |
| AM | Armenia | +374 |
| AO | Angola | +244 |
| AQ | Antarctica | +672 |
| AR | Argentina | +54 |
| AS | American Samoa | +1684 |
| AT | Austria | +43 |
| AU | Australia | +61 |
| AW | Aruba | +297 |
| AZ | Azerbaijan | +994 |
| BA | Bosnia and Herzegovina | +387 |
| BB | Barbados | +1 246 |
| BD | Bangladesh | +880 |
| BE | Belgium | +32 |
| BF | Burkina Faso | +226 |
| BG | Bulgaria | +359 |
| BH | Bahrain | +973 |
| BI | Burundi | +257 |
| BJ | Benin | +229 |
| BL | Saint Barthélemy | +590 |
| BM | Bermuda | +1 441 |
| BN | Brunei Darussalam | +673 |
| BO | Bolivia | +591 |
| BQ | Bonaire, Sint Eustatius and Saba | +599 |
| BR | Brazil | +55 |
| BS | Bahamas | +1 242 |
| BT | Bhutan | +975 |
| BV | Bouvet Island | +47 |
| BW | Botswana | +267 |
| BY | Belarus | +375 |
| BZ | Belize | +501 |
| CA | Canada | +1 |
| CH | Switzerland | +41 |
| CN | China | +86 |
| DE | Germany | +49 |
| DK | Denmark | +45 |
| ES | Spain | +34 |
| FI | Finland | +358 |
| FR | France | +33 |
| GB | United Kingdom | +44 |
| HK | Hong Kong | +852 |
| IE | Ireland | +353 |
| IT | Italy | +39 |
| JP | Japan | +81 |
| MX | Mexico | +52 |
| NO | Norway | +47 |
| SE | Sweden | +46 |
| US | United States | +1 |
How to Change the Default
To change the default phone extension, adjust the country suffix of the locale in your embed code (e.g., changing en-US to en-GB).
Note: Customers can always manually change the country code via the dropdown menu in the booking form if they wish to provide a different number.