diff options
-rw-r--r-- | openbsc/src/osmo-bsc/osmo_bsc_filter.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_filter.c b/openbsc/src/osmo-bsc/osmo_bsc_filter.c index f03449493..3b657b320 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_filter.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_filter.c @@ -230,8 +230,15 @@ static void send_welcome_ussd(struct gsm_subscriber_connection *conn) struct osmo_bsc_sccp_con *bsc_con; bsc_con = conn->sccp_con; - if (!bsc_con || !bsc_con->msc->ussd_welcome_txt) + if (!bsc_con) { + LOGP(DMSC, LOGL_DEBUG, "No SCCP connection associated.\n"); return; + } + + if (!bsc_con->msc->ussd_welcome_txt) { + LOGP(DMSC, LOGL_DEBUG, "No USSD Welcome text defined.\n"); + return; + } gsm0480_send_ussdNotify(conn, 1, bsc_con->msc->ussd_welcome_txt); gsm0480_send_releaseComplete(conn); |