Check Permission Set and Digit Barring.
You need to configure your digit barring tables accordingly. Then under permission set, assign the barring tables you need. Assign the relevant permission set to users. For example, those who need to dial IDD need a permission set where the external digit barring table allows them to dial 0+country code. (The easiest way is to set all free in the digit barring).