make speech calls with NECI=1 work

Fix minor bug with speech calls in case of NECI=1
This commit is contained in:
Harald Welte 2009-12-12 21:16:38 +01:00
parent b83d938565
commit 487e6befb8
1 changed files with 3 additions and 1 deletions

View File

@ -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);