AIS项目中Volte会议电话条目中的电话会加入国家码
问题.
Reproduce Rate : 100%
Pre-condition: = VoLTE / VoWiFi Conferrence Call
Occurrence: VoLTE / VoWiFi
1. Calling Mobile number over [VoLTE or VoWiFi]
2. add more call with oprerator number [AIS 1175]
3. get a call and Merge .
4. Check Manage Contact.
Actural Result : When Merge calling on [VoLTE or VoWiFi] all Manage phone number get a international prefix.
Ex. +661175, +66630787105
Expect Result : if get Merge calling on [VoLTE or VoWiFi] all phone Manage number get a Local prefix.
Ex. 1175 , 0630787105
AndroidO 平台.
1.网络返回来自动加上+66
修改对应mccmnc的CarrierConfig,将”mtk_key_restore_address_for_ims_conference_participants”配置成true
2.本地格式化
修改
/vendor/mediatek/proprietary/packages/services/Telephony/src/com/android/services/telephony/ConferenceParticipantConnection.java
public ConferenceParticipantConnection(
com.android.internal.telephony.Connection parentConnection,
ConferenceParticipant participant) {
mParentConnection = parentConnection;
int presentation = getParticipantPresentation(participant);
Uri address;
if (presentation != PhoneConstants.PRESENTATION_ALLOWED) {
address = null;
} else {
//这里会根据国家码去格式化电话号码,如贵司不需要格式化,烦请自行去掉,或者贵司可以自定义实现只针对特殊国家码不格式化。
String countryIso = getCountryIso(parentConnection.getCall().getPhone());
address = getParticipantAddress(participant.getHandle(), countryIso);
}
setAddress(address, presentation);
setCallerDisplayName(participant.getDisplayName(), presentation);'
....
AndroidN之前的平台.