SMS-over-GSUP: respond with error if net->sms_over_gsup is false

Change-Id: If14f8a394e691f86e0acbffb283c3862fe62ffd2
This commit is contained in:
Vadim Yanitskiy 2020-04-20 10:33:36 +07:00
parent 531d3a4b11
commit b6ec0999f0
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}