libmsc: Don't use bts field of gsm_subscriber_connection

Use gsm_subscriber_connection does not have a bts field if building as
libmsc. Use network directly.
This commit is contained in:
Daniel Willmann
2016-02-20 11:02:42 +01:00
committed by Neels Hofmeyr
parent b9bb2a4f54
commit 2a7426d7cb

View File

@@ -315,7 +315,7 @@ try_local:
rc = smpp_try_deliver(gsms, conn);
if (rc == 1) {
rc = 1; /* cause 1: unknown subscriber */
osmo_counter_inc(conn->bts->network->stats.sms.no_receiver);
osmo_counter_inc(conn->network->stats.sms.no_receiver);
} else if (rc < 0) {
rc = 21; /* cause 21: short message transfer rejected */
/* FIXME: handle the error somehow? */