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

Change-Id: If14f8a394e691f86e0acbffb283c3862fe62ffd2
changes/72/17872/2
Vadim Yanitskiy 3 years ago
parent 531d3a4b11
commit b6ec0999f0
  1. 2
      src/libmsc/gsm_04_11_gsup.c

@ -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…
Cancel
Save