Telephone switches are usually owned and operated by a [telephone service provider]? and located in their premises, but sometimes individual businesses or private commercial buildings will house their own switch (which may well be owned and operated by a telephone service provider still).
Switches are used in both local central offices and in long distance centers.