Automatically adding dialing codes

Hi,
I am a noob. Apologies :smile:
I need Asterisk to automatically add country code for certain numbers that are dialed by our PBX. Would I do this within the dial plan and if so, how do I make sure this doesn’t affect anyone else using said PBX?
An example. Our PBX is hosted in one country but services another country. Said people in country x want to call “locally” but not have to dial as if they are calling into country.
Thanks!

Use different contexts for the people in different countries.

And you can prepend numbers in the Asterisk DialPlan itself. There is tons of posts on this topic - hint: use appropriate dial pattern and ${EXTEN} :wink: