I've already Googled

Okay, so I’ve already looked quite a bit for this, and what I want to know is simply how to set up an extension on my PBX to dial other extensions within the PBX or press 9 for an outside line, like a standard PBX. Thanks.