[gsm_04_11] Replace hardcoded transaction_id by real allocation

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Harald Welte 2009-12-22 13:45:58 +01:00
parent 4010f1e6f4
commit 4983921af1
1 changed files with 5 additions and 1 deletions

View File

@ -1011,7 +1011,11 @@ int gsm411_send_sms_lchan(struct gsm_lchan *lchan, struct gsm_sms *sms)
u_int8_t transaction_id;
int rc;
transaction_id = 4; /* FIXME: we always use 4 for now */
transaction_id = trans_assign_trans_id(lchan->subscr, GSM48_PDISC_SMS, 0);
if (transaction_id == -1) {
DEBUGP(DSMS, "No available transaction ids\n");
return -EBUSY;
}
msg->lchan = lchan;