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:
parent
79826e104a
commit
0dd013770e
|
@ -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);
|
tlv_parse(&tp, &gsm48_att_tlvdef, gh->data, payload_len, 0, 0);
|
||||||
/* emergency setup is identified by msg_type */
|
/* 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;
|
setup.emergency = 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* use subscriber as calling party number */
|
/* use subscriber as calling party number */
|
||||||
setup.fields |= MNCC_F_CALLING;
|
setup.fields |= MNCC_F_CALLING;
|
||||||
|
|
Loading…
Reference in New Issue