It is necessary to replace the number prefixes 345, 347 with +345. Example, the numbers 3454952293042 and 3474952293042 should be converted to +3454952293042.
Go to "Routing" → "Outbound Routing"
Click "Add a new rule"
Create a template as shown in the image:
Click "Save settings"