summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/bb
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2017-12-26 12:46:30 +0800
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2017-12-27 10:07:17 +0800
commita8130aba91247e07df83d2612f14d58d9a45eaa7 (patch)
treec72730d9c1edb60e2716b70a4b5a1fbca383a9be /src/host/layer23/include/osmocom/bb
parentf02c04f4441ae0d05f46f5fdfd1aa8181ede57a8 (diff)
mobile: Send SMS through the primitive interface
Make this symmetric and send the SMS through the primitive interface. Construct and copy the sms into the prim, store the SCA in the prim as well. In 04.11 we see we can store 2*10 digits in the destination address and a NUL. Change-Id: I91d7537f4f6ce5ba00218c58f3456947ec7bc662
Diffstat (limited to 'src/host/layer23/include/osmocom/bb')
-rw-r--r--src/host/layer23/include/osmocom/bb/mobile/gsm411_sms.h2
-rw-r--r--src/host/layer23/include/osmocom/bb/mobile/primitives.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/host/layer23/include/osmocom/bb/mobile/gsm411_sms.h b/src/host/layer23/include/osmocom/bb/mobile/gsm411_sms.h
index d3074fb3..3ed6710c 100644
--- a/src/host/layer23/include/osmocom/bb/mobile/gsm411_sms.h
+++ b/src/host/layer23/include/osmocom/bb/mobile/gsm411_sms.h
@@ -35,5 +35,7 @@ struct gsm_sms *sms_from_text(const char *receiver, int dcs, const char *text);
int gsm411_rcv_sms(struct osmocom_ms *ms, struct msgb *msg);
int sms_send(struct osmocom_ms *ms, const char *sms_sca, const char *number,
const char *text, uint8_t msg_ref);
+int gsm411_tx_sms_submit(struct osmocom_ms *ms, const char *sms_sca,
+ struct gsm_sms *sms);
#endif /* _GSM411_SMS_H */
diff --git a/src/host/layer23/include/osmocom/bb/mobile/primitives.h b/src/host/layer23/include/osmocom/bb/mobile/primitives.h
index 39b49454..034b2029 100644
--- a/src/host/layer23/include/osmocom/bb/mobile/primitives.h
+++ b/src/host/layer23/include/osmocom/bb/mobile/primitives.h
@@ -62,6 +62,8 @@ struct mobile_shutdown_param {
struct mobile_sms_param {
struct gsm_sms sms;
+ char sca[20+1]; /*<! Service Centre Address. For SubmitMS */
+
bool cause_valid;
int cause;
};