mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 04:53:24 +00:00
Add check for non existing lchan at tch_frame_down()
Traffic cannot sent to BTS, if there is (currently) no logical channel associated with the transaction. This happens, if TCH traffic is received from upper layer, but there is no lchan available before completing immediate assignment, handover or assignment process.
This commit is contained in:
committed by
Ivan Kluchnikov
parent
ce7437e27c
commit
f4d336e2c4
@@ -1836,6 +1836,10 @@ int tch_frame_down(struct gsm_network *net, uint32_t callref, struct gsm_data_fr
|
||||
LOGP(DMNCC, LOGL_NOTICE, "TCH frame for trans without conn\n");
|
||||
return 0;
|
||||
}
|
||||
if (!trans->conn->lchan) {
|
||||
LOGP(DMNCC, LOGL_NOTICE, "TCH frame for trans without lchan\n");
|
||||
return 0;
|
||||
}
|
||||
if (trans->conn->lchan->type != GSM_LCHAN_TCH_F
|
||||
&& trans->conn->lchan->type != GSM_LCHAN_TCH_H) {
|
||||
/* This should be LOGL_ERROR or NOTICE, but
|
||||
|
||||
Reference in New Issue
Block a user