SMS-over-GSUP: respond with error if net->sms_over_gsup is false
Change-Id: If14f8a394e691f86e0acbffb283c3862fe62ffd2
This commit is contained in:
parent
531d3a4b11
commit
b6ec0999f0
|
@ -282,9 +282,9 @@ int gsm411_gsup_rx(struct gsup_client_mux *gcm, void *data, const struct osmo_gs
|
|||
|
||||
/* Make sure that 'SMS over GSUP' is expected */
|
||||
if (!net->sms_over_gsup) {
|
||||
/* TODO: notify sender about that? */
|
||||
LOGP(DLSMS, LOGL_NOTICE, "Unexpected MO/MT SMS over GSUP "
|
||||
"(sms-over-gsup is not enabled), ignoring message...\n");
|
||||
gsup_client_mux_tx_error_reply(gcm, gsup_msg, GMM_CAUSE_GPRS_NOTALLOWED);
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue