Set ImsReasonInfo for all reasons in onCallStartFailed
In DSDS device, if IMS determines that cross SIM redialing is required, for example ePDN activation failure with a specific cause, IMEI NOT ACCEPTED, it returns call failure with the reason code CODE_EMERGENCY_TEMP_FAILURE or CODE_EMERGENCY_PERM_FAILURE. If the call is terminated with reason code CODE_EMERGENCY_TEMP_FAILURE or CODE_EMERGENCY_PERM_FAILURE, no ImsReasonInfo is passed to DomainSelector, since Connection#setImsReasonInfo() is called only when the reason code is one of CODE_SIP_ALTERNATE_EMERGENCY_CALL, CODE_LOCAL_NOT_REGISTERED, and CODE_LOCAL_CALL_CS_RETRY_REQUIRED in onCallStartFailed(). Fix onCallStartFailed() to call Connection#setImsReasonInfo() for all reason codes to make ImsReasonInfo be passed to upper layers. This is applicable for AP domain selection only. Bug: 322918361 Test: atest ImsPhoneCallTrackerTest Change-Id: I6e4606379d991d8cbe6fde9a8834dd8282657e14
Loading
Please register or sign in to comment