From f589221ed0a00c12fce0fac629475851b2680b77 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 30 Aug 2012 13:05:15 +0200 Subject: msc: Add debug messages when not sending a USSD welcome message --- openbsc/src/osmo-bsc/osmo_bsc_filter.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'openbsc/src/osmo-bsc/osmo_bsc_filter.c') 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); -- cgit v1.2.3