As already told by @Biorn1950 the new provider have to transfer the Phone-Number. You cant transfer the phone-number by contacting Swisscom or also after the Contract at swisscom has ended or you got another number by your new provider!
Gruess, Cordial salids, Cordialement, Cordiali saluti
Dominik