diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2011-11-03 11:33:19 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2011-11-13 20:25:20 +0100 |
commit | 3426063f562892ede1be7f67f302ad5d754f8f4c (patch) | |
tree | 4e64a0fe1633786b00b83a1a2135d3d43f581174 /src/host/layer23/include | |
parent | fe2e57bc800448703208ab52688b34ffb65bb386 (diff) |
host/mobile: Adding (partly implemented) supplementary service support
Use VTY to request your extension number form OpenBSC:
en
service 1 *100#
Written-by: Andreas Eversberg <jolly@eversberg.eu>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/host/layer23/include')
4 files changed, 20 insertions, 3 deletions
diff --git a/src/host/layer23/include/osmocom/bb/common/logging.h b/src/host/layer23/include/osmocom/bb/common/logging.h index 2cb58354..3efa57a5 100644 --- a/src/host/layer23/include/osmocom/bb/common/logging.h +++ b/src/host/layer23/include/osmocom/bb/common/logging.h @@ -12,6 +12,7 @@ enum { DNB, DMM, DCC, + DSS, DSMS, DMNCC, DMEAS, diff --git a/src/host/layer23/include/osmocom/bb/mobile/Makefile.am b/src/host/layer23/include/osmocom/bb/mobile/Makefile.am index 7f49d5e9..b58b9529 100644 --- a/src/host/layer23/include/osmocom/bb/mobile/Makefile.am +++ b/src/host/layer23/include/osmocom/bb/mobile/Makefile.am @@ -1,3 +1,3 @@ -noinst_HEADERS = gsm322.h gsm411_sms.h gsm48_cc.h gsm48_mm.h gsm48_rr.h mncc.h \ - settings.h subscriber.h support.h transaction.h vty.h \ - mncc_sock.h +noinst_HEADERS = gsm322.h gsm480_ss.h gsm411_sms.h gsm48_cc.h gsm48_mm.h \ + gsm48_rr.h mncc.h settings.h subscriber.h support.h \ + transaction.h vty.h mncc_sock.h diff --git a/src/host/layer23/include/osmocom/bb/mobile/gsm480_ss.h b/src/host/layer23/include/osmocom/bb/mobile/gsm480_ss.h new file mode 100644 index 00000000..ecd778e4 --- /dev/null +++ b/src/host/layer23/include/osmocom/bb/mobile/gsm480_ss.h @@ -0,0 +1,9 @@ +#ifndef _GSM480_SS_H +#define _GSM480_SS_H + +int gsm480_ss_init(struct osmocom_ms *ms); +int gsm480_ss_exit(struct osmocom_ms *ms); +int gsm480_rcv_ss(struct osmocom_ms *ms, struct msgb *msg); +int ss_send(struct osmocom_ms *ms, const char *code, int new_trans); + +#endif /* _GSM480_SS_H */ diff --git a/src/host/layer23/include/osmocom/bb/mobile/transaction.h b/src/host/layer23/include/osmocom/bb/mobile/transaction.h index b0695ecb..8c06d5d9 100644 --- a/src/host/layer23/include/osmocom/bb/mobile/transaction.h +++ b/src/host/layer23/include/osmocom/bb/mobile/transaction.h @@ -41,6 +41,13 @@ struct gsm_trans { struct gsm_mncc msg; /* stores setup/disconnect/release message */ } cc; struct { + /* current supp.serv. state */ + int state; + + uint8_t invoke_id; + struct msgb *msg; + } ss; + struct { uint8_t sapi; /* SAPI to be used for this trans */ struct gsm411_smc_inst smc_inst; |