Emergency Call: Set MNCC_F_EMERGENCY flag

MNCC has a MNCC_F_EMERGENCY flag to indicate that the mncc.emergency
field is present. However, OsmoMSC never sets this flag.

Change-Id: I0ebd8f88e483172988f4a0cb0636b4160688d8ad
Closes: OS#2865
This commit is contained in:
Harald Welte 2018-01-24 11:06:19 +01:00
parent 79826e104a
commit 0dd013770e
1 changed files with 3 additions and 1 deletions

View File

@ -1546,8 +1546,10 @@ static int gsm48_cc_rx_setup(struct gsm_trans *trans, struct msgb *msg)
tlv_parse(&tp, &gsm48_att_tlvdef, gh->data, payload_len, 0, 0);
/* emergency setup is identified by msg_type */
if (msg_type == GSM48_MT_CC_EMERG_SETUP)
if (msg_type == GSM48_MT_CC_EMERG_SETUP) {
setup.fields |= MNCC_F_EMERGENCY;
setup.emergency = 1;
}
/* use subscriber as calling party number */
setup.fields |= MNCC_F_CALLING;