summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom
diff options
context:
space:
mode:
authorAndreas.Eversberg <jolly@eversberg.eu>2010-10-15 18:54:57 +0000
committerAndreas.Eversberg <jolly@eversberg.eu>2010-10-15 18:54:57 +0000
commitadf65e29fd0723cc2550be9c37668cfaf27858f9 (patch)
tree89891ad47443a9b9d3cf191817da98569e17cca7 /src/host/layer23/include/osmocom
parent19807191b6b7407900971b3af533611661ff623d (diff)
[layer23] DTMF support
Diffstat (limited to 'src/host/layer23/include/osmocom')
-rw-r--r--src/host/layer23/include/osmocom/bb/mobile/mncc.h23
-rw-r--r--src/host/layer23/include/osmocom/bb/mobile/settings.h1
2 files changed, 18 insertions, 6 deletions
diff --git a/src/host/layer23/include/osmocom/bb/mobile/mncc.h b/src/host/layer23/include/osmocom/bb/mobile/mncc.h
index 37e1affc..1f8e9099 100644
--- a/src/host/layer23/include/osmocom/bb/mobile/mncc.h
+++ b/src/host/layer23/include/osmocom/bb/mobile/mncc.h
@@ -30,17 +30,28 @@
#include <osmocore/mncc.h>
struct gsm_call {
- struct llist_head entry;
+ struct llist_head entry;
- void *ms;
+ struct osmocom_ms *ms;
- uint32_t callref;
+ uint32_t callref;
- uint8_t init; /* call has been initiated, no response yet */
- uint8_t hold; /* call on hold */
- uint8_t ring; /* call is ringing/knocking */
+ uint8_t init; /* call initiated, no response yet */
+ uint8_t hold; /* call on hold */
+ uint8_t ring; /* call ringing/knocking */
+
+ struct timer_list dtmf_timer;
+ uint8_t dtmf_state;
+ uint8_t dtmf_index;
+ char dtmf[32]; /* dtmf sequence */
};
+#define DTMF_ST_IDLE 0 /* no DTMF active */
+#define DTMF_ST_START 1 /* DTMF started, waiting for resp. */
+#define DTMF_ST_MARK 2 /* wait tone duration */
+#define DTMF_ST_STOP 3 /* DTMF stopped, waiting for resp. */
+#define DTMF_ST_SPACE 4 /* wait space between tones */
+
#define MNCC_SETUP_REQ 0x0101
#define MNCC_SETUP_IND 0x0102
#define MNCC_SETUP_RSP 0x0103
diff --git a/src/host/layer23/include/osmocom/bb/mobile/settings.h b/src/host/layer23/include/osmocom/bb/mobile/settings.h
index 88649e36..a6708e6d 100644
--- a/src/host/layer23/include/osmocom/bb/mobile/settings.h
+++ b/src/host/layer23/include/osmocom/bb/mobile/settings.h
@@ -43,6 +43,7 @@ struct gsm_settings {
uint8_t no_lupd;
/* supported by configuration */
+ uint8_t cc_dtmf;
uint8_t sms_ptp;
uint8_t a5_1;
uint8_t a5_2;