make speech calls with NECI=1 work
Fix minor bug with speech calls in case of NECI=1
This commit is contained in:
parent
b83d938565
commit
487e6befb8
|
@ -204,8 +204,10 @@ struct gsm_lchan *lchan_alloc(struct gsm_bts *bts, enum gsm_chan_t type)
|
|||
case GSM_LCHAN_TCH_H:
|
||||
lchan =_lc_find_bts(bts, GSM_PCHAN_TCH_H);
|
||||
/* If we don't have TCH/H available, fall-back to TCH/F */
|
||||
if (!lchan)
|
||||
if (!lchan) {
|
||||
lchan = _lc_find_bts(bts, GSM_PCHAN_TCH_F);
|
||||
type = GSM_LCHAN_TCH_F;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "Unknown gsm_chan_t %u\n", type);
|
||||
|
|
Loading…
Reference in New Issue