fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/35739?usp=email )


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

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
---
M src/host/layer23/src/mobile/tch.c
1 file changed, 16 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/39/35739/1

diff --git a/src/host/layer23/src/mobile/tch.c 
b/src/host/layer23/src/mobile/tch.c
index 70c9163..d5dda2e 100644
--- a/src/host/layer23/src/mobile/tch.c
+++ b/src/host/layer23/src/mobile/tch.c
@@ -181,7 +181,9 @@
 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:

--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/35739?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Idd32c823639cc1f9999d77fcefe7e260e31a85ec
Gerrit-Change-Number: 35739
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>
Gerrit-MessageType: newchange

Reply via email to