diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-08-30 13:05:15 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-03 14:39:19 +0100 |
commit | f589221ed0a00c12fce0fac629475851b2680b77 (patch) | |
tree | 0f585c1c45253763ad37edcc4c88a23bbe7f423c /openbsc/src/osmo-bsc/osmo_bsc_filter.c | |
parent | b3089e437da1bc20de199d7688aa255d6ac82601 (diff) |
msc: Add debug messages when not sending a USSD welcome message
Diffstat (limited to 'openbsc/src/osmo-bsc/osmo_bsc_filter.c')
-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); |