aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc/smpp_smsc.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-07-06 16:41:30 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-07-06 16:50:19 +0200
commit42cf2e03c936d34c1bda7d491f9e367bf02dddce (patch)
treef085716b4fc8a4b53f85f37d4011bbed58aa1276 /openbsc/src/libmsc/smpp_smsc.h
parentdcbc83355e1d7243180d436cadabd913bee2c922 (diff)
sms: Add a way to always route SMS through SMPP systems
default-route would only be looked at after there has been no subscriber in the local database. Depending on the setup this is not what one wants. This has been discussed at the OsmoDevCon and there have been hacks in some branches. Let's introduce a VTY command to select if SMPP should be consulted first and then fallback to the current behavior.
Diffstat (limited to 'openbsc/src/libmsc/smpp_smsc.h')
-rw-r--r--openbsc/src/libmsc/smpp_smsc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/libmsc/smpp_smsc.h b/openbsc/src/libmsc/smpp_smsc.h
index 8d31b2b14..3dd656242 100644
--- a/openbsc/src/libmsc/smpp_smsc.h
+++ b/openbsc/src/libmsc/smpp_smsc.h
@@ -92,6 +92,7 @@ struct smsc {
uint16_t listen_port;
char system_id[SMPP_SYS_ID_LEN+1];
int accept_all;
+ int smpp_first;
struct osmo_smpp_acl *def_route;
void *priv;
};
@@ -137,6 +138,8 @@ int smpp_determine_scheme(uint8_t dcs, uint8_t *data_coding, int *mode);
struct gsm_sms;
struct gsm_subscriber_connection;
+int smpp_route_smpp_first(struct gsm_sms *sms,
+ struct gsm_subscriber_connection *conn);
int smpp_try_deliver(struct gsm_sms *sms,
struct gsm_subscriber_connection *conn);
#endif