A memory 110 comprising a read only memory (ROM) is provided to store the programs for executing basic calling and other functions, for example, transmission of an MOH melody, conversion of a call, rejection of a call, etc., and further stores initial service data which includes all the parameters needed to control switching between the key sets and the phone lines.