From 487e6befb85a8e6f114d916045b65174c35810a8 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 12 Dec 2009 21:16:38 +0100 Subject: make speech calls with NECI=1 work Fix minor bug with speech calls in case of NECI=1 --- openbsc/src/chan_alloc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'openbsc/src/chan_alloc.c') diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c index 6bf65f325..2f0d7b93f 100644 --- a/openbsc/src/chan_alloc.c +++ b/openbsc/src/chan_alloc.c @@ -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); -- cgit v1.2.3