PBX == Private Business eXchange. You get several phone lines from your Telco, connect them to PBX "outside" lines (called "trunk"), and connect your phones to PBX "inside" lines (extensions). If you are talking for anything more than a handful of extensions, and more than one trunk line - hire a contractor who specializes in that.