Iu: Send SMS over SAPI-3

After neels/ho was merged, SMS over IuCS/RANAP was failing in both
MO and MT direction.  The reason was that all mobile-terminated SMS-CP
layer messages were sent in RANAP with SAPI-0 instaed of SAPI-1.

Change-Id: I98e6eddb52d5c61c4e2d34bdfcd43cf460296ad7
Closes: OS#3993
This commit is contained in:
Harald Welte 2019-05-10 23:54:15 +02:00
parent f50d13045e
commit 4dd150afa3
1 changed files with 3 additions and 1 deletions

View File

@ -322,7 +322,9 @@ int ran_iu_decode_l2(struct ran_dec *ran_iu_decode, struct msgb *ranap)
static struct msgb *ran_iu_wrap_dtap(struct msgb *dtap)
{
struct msgb *an_apdu;
an_apdu = ranap_new_msg_dt(0, dtap->data, msgb_length(dtap));
uint8_t sapi = OMSC_LINKID_CB(dtap);
an_apdu = ranap_new_msg_dt(sapi, dtap->data, msgb_length(dtap));
an_apdu->l2h = an_apdu->data;
msgb_free(dtap);
return an_apdu;