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-08-30 13:05:15 +0200 |
commit | fd91aead1c9b4cb8437478f4b8852296f683587b (patch) | |
tree | 665fb7661b57f00910b174aa74265e521f3e711c /openbsc | |
parent | 8d78558caa3193cfc0c564034d5b11e8fbe98351 (diff) |
msc: Add debug messages when not sending a USSD welcome message
Diffstat (limited to 'openbsc')
-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); |