summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include
diff options
context:
space:
mode:
authorAndreas.Eversberg2010-10-14 09:37:52 +0200
committerAndreas.Eversberg2010-10-14 09:37:52 +0200
commit1dd14c0b26e0427f63b36eb5aeb259e1cfb4f8e9 (patch)
treebefef2999aa6c4766619f0706e31dfdd452f1c13 /src/host/layer23/include
parent[layer23] If SIM is invalid, display that on the VTY (diff)
downloadosmocom-1dd14c0b26e0427f63b36eb5aeb259e1cfb4f8e9.tar.gz
osmocom-1dd14c0b26e0427f63b36eb5aeb259e1cfb4f8e9.tar.xz
osmocom-1dd14c0b26e0427f63b36eb5aeb259e1cfb4f8e9.zip
[layer23] Adding abbreviated dialing to VTY
It is possible to store phone numbers with abbreviations now. Dialing these abbreviation makes testing of mobile originated calls much easier too.
Diffstat (limited to 'src/host/layer23/include')
-rw-r--r--src/host/layer23/include/osmocom/bb/mobile/settings.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/host/layer23/include/osmocom/bb/mobile/settings.h b/src/host/layer23/include/osmocom/bb/mobile/settings.h
index 2437951..88649e3 100644
--- a/src/host/layer23/include/osmocom/bb/mobile/settings.h
+++ b/src/host/layer23/include/osmocom/bb/mobile/settings.h
@@ -67,9 +67,20 @@ struct gsm_settings {
/* radio */
uint16_t dsc_max;
+
+ /* dialing */
+ struct llist_head abbrev;
+};
+
+struct gsm_settings_abbrev {
+ struct llist_head list;
+ char abbrev[4];
+ char number[32];
+ char name[32];
};
int gsm_settings_init(struct osmocom_ms *ms);
+int gsm_settings_exit(struct osmocom_ms *ms);
char *gsm_check_imei(const char *imei, const char *sv);
int gsm_random_imei(struct gsm_settings *set);