bsc_api/NITB: If TCH/H channel is used, indicate it to bsc_api

If we don't do this, OsmoNITB will send an assignment command from
a TCH/H to another TCH/H without any need.
This commit is contained in:
Andreas Eversberg 2013-03-31 11:50:35 +02:00 committed by Harald Welte
parent a4d0e3cc6b
commit 72c0dbd753
1 changed files with 2 additions and 1 deletions

View File

@ -2878,7 +2878,8 @@ static int _gsm48_lchan_modify(struct gsm_trans *trans, void *arg)
{
struct gsm_mncc *mode = arg;
return gsm0808_assign_req(trans->conn, mode->lchan_mode, 1);
return gsm0808_assign_req(trans->conn, mode->lchan_mode,
trans->conn->lchan->type != GSM_LCHAN_TCH_H);
}
static struct downstate {