A dial plan establishes the type of telephone number in a given area. This includes country codes, access codes, area codes and all combinations of digits dialed. For instance, the North American public switched telephone network (PSTN) uses a phone numbers with a 3-digit area code and a 7-digit telephone number.