comparison mncc/intswitch.c @ 24:52e801b5ebb1

themwi-mncc intsw: set cause when rejecting DTMF start
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 28 Jun 2022 18:36:47 -0800
parents ccc5ab6d8388
children 660126bd5f59
comparison
equal deleted inserted replaced
23:5b0f685fd2ed 24:52e801b5ebb1
166 case MNCC_DISC_IND: 166 case MNCC_DISC_IND:
167 handle_disconnect(call, msg); 167 handle_disconnect(call, msg);
168 return; 168 return;
169 case MNCC_START_DTMF_IND: 169 case MNCC_START_DTMF_IND:
170 msg->msg_type = MNCC_START_DTMF_REJ; 170 msg->msg_type = MNCC_START_DTMF_REJ;
171 mncc_set_cause(msg, GSM48_CAUSE_LOC_PRN_S_LU,
172 GSM48_CC_CAUSE_SERV_OPT_UNIMPL);
171 send_mncc_to_gsm(msg, sizeof(struct gsm_mncc)); 173 send_mncc_to_gsm(msg, sizeof(struct gsm_mncc));
172 return; 174 return;
173 case MNCC_STOP_DTMF_IND: 175 case MNCC_STOP_DTMF_IND:
174 msg->msg_type = MNCC_STOP_DTMF_RSP; 176 msg->msg_type = MNCC_STOP_DTMF_RSP;
175 send_mncc_to_gsm(msg, sizeof(struct gsm_mncc)); 177 send_mncc_to_gsm(msg, sizeof(struct gsm_mncc));