1e41f4b71Sopenharmony_ci# Telephony Subsystem Changelog 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci## cl.telephony.1 Input Parameter Change of System APIs of the SMS Module 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ciInput parameters are changed for some released system APIs of the SMS module of the telephony subsystem, which do not comply with the API specifications of OpenHarmony. The following changes are made in API version 9 and later: 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ciThe **slotId** parameter is added to the **isImsSmsSupported** API, indicating the slot ID. 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ci**Change Impacts** 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ciInput parameters of JavaScript APIs need to be adapted for applications developed based on earlier versions. Otherwise, relevant functions will be affected. 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ci**Key API/Component Changes** 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ci- Involved APIs 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ci isImsSmsSupported(callback: AsyncCallback<boolean>): void; 20e41f4b71Sopenharmony_ci isImsSmsSupported(): Promise<boolean>; 21e41f4b71Sopenharmony_ci 22e41f4b71Sopenharmony_ci- Before change: 23e41f4b71Sopenharmony_ci 24e41f4b71Sopenharmony_ci```js 25e41f4b71Sopenharmony_cifunction isImsSmsSupported(callback: AsyncCallback<boolean>): void; 26e41f4b71Sopenharmony_cifunction isImsSmsSupported(): Promise<boolean>; 27e41f4b71Sopenharmony_ci``` 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ci- After change: 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ci```js 32e41f4b71Sopenharmony_cifunction isImsSmsSupported(slotId: number, callback: AsyncCallback<boolean>): void; 33e41f4b71Sopenharmony_cifunction isImsSmsSupported(slotId: number): Promise<boolean>; 34e41f4b71Sopenharmony_ci``` 35e41f4b71Sopenharmony_ci 36e41f4b71Sopenharmony_ci**Adaptation Guide** 37e41f4b71Sopenharmony_ci 38e41f4b71Sopenharmony_ciAdd an input parameter. The sample code is as follows: 39e41f4b71Sopenharmony_ci 40e41f4b71Sopenharmony_ciCallback mode 41e41f4b71Sopenharmony_ci 42e41f4b71Sopenharmony_ci```js 43e41f4b71Sopenharmony_cilet slotId = 0; 44e41f4b71Sopenharmony_cisms.isImsSmsSupported(slotId, (err, data) => { 45e41f4b71Sopenharmony_ci console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); 46e41f4b71Sopenharmony_ci}); 47e41f4b71Sopenharmony_ci``` 48e41f4b71Sopenharmony_ci 49e41f4b71Sopenharmony_ciPromise mode 50e41f4b71Sopenharmony_ci 51e41f4b71Sopenharmony_ci```js 52e41f4b71Sopenharmony_cilet slotId = 0; 53e41f4b71Sopenharmony_cilet promise = sms.isImsSmsSupported(slotId); 54e41f4b71Sopenharmony_cipromise.then(data => { 55e41f4b71Sopenharmony_ci console.log(`isImsSmsSupported success, promise: data->${JSON.stringify(data)}`); 56e41f4b71Sopenharmony_ci}).catch(err => { 57e41f4b71Sopenharmony_ci console.error(`isImsSmsSupported failed, promise: err->${JSON.stringify(err)}`); 58e41f4b71Sopenharmony_ci}); 59e41f4b71Sopenharmony_ci```