mobile: init TCH state earlier (on receipt of CC ALERTING)

The MS would usually start receiving traffic indications with
dial tone or some music even before the call gets CONNECTed.

Change-Id: Idd32c823639cc1f9999d77fcefe7e260e31a85ec
Related: OS#4396
This commit is contained in:
Vadim Yanitskiy 2024-01-30 03:20:07 +07:00
parent 57eb13db22
commit 29824ebf3c
1 changed files with 3 additions and 1 deletions

View File

@ -181,7 +181,9 @@ static void tch_trans_free_cb(struct gsm_trans *trans)
static void tch_trans_state_chg_cb(struct gsm_trans *trans)
{
switch (trans->cc.state) {
case GSM_CSTATE_ACTIVE:
case GSM_CSTATE_CALL_DELIVERED: /* MO call: Rx CC ALERTING */
case GSM_CSTATE_CALL_RECEIVED: /* MT call: Tx CC ALERTING */
case GSM_CSTATE_ACTIVE: /* MO/MT call: Rx CC CONNECT */
tch_trans_cstate_active_cb(trans);
break;
case GSM_CSTATE_NULL: