summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/bb/mobile/mncc.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-12-23 11:13:19 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2014-02-26 12:17:15 +0100
commit712952a933e4e0953742481483627a28d26cefed (patch)
treeda147fc290d2726ac0cf9add44ee416211b0e0b1 /src/host/layer23/include/osmocom/bb/mobile/mncc.h
parent3138c0214285f73c1a9e5af05f5d783d68feaec9 (diff)
Add ringer support to built-in MNCC application of mobile
Diffstat (limited to 'src/host/layer23/include/osmocom/bb/mobile/mncc.h')
-rw-r--r--src/host/layer23/include/osmocom/bb/mobile/mncc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/host/layer23/include/osmocom/bb/mobile/mncc.h b/src/host/layer23/include/osmocom/bb/mobile/mncc.h
index cad1883c..a73a882c 100644
--- a/src/host/layer23/include/osmocom/bb/mobile/mncc.h
+++ b/src/host/layer23/include/osmocom/bb/mobile/mncc.h
@@ -44,6 +44,9 @@ struct gsm_call {
uint8_t dtmf_state;
uint8_t dtmf_index;
char dtmf[32]; /* dtmf sequence */
+
+ struct osmo_timer_list ringer_timer;
+ uint8_t ringer_state;
};
#define DTMF_ST_IDLE 0 /* no DTMF active */
@@ -52,6 +55,9 @@ struct gsm_call {
#define DTMF_ST_STOP 3 /* DTMF stopped, waiting for resp. */
#define DTMF_ST_SPACE 4 /* wait space between tones */
+#define RINGER_MARK 0, 500000
+#define RINGER_SPACE 0, 250000
+
#define MNCC_SETUP_REQ 0x0101
#define MNCC_SETUP_IND 0x0102
#define MNCC_SETUP_RSP 0x0103