aboutsummaryrefslogtreecommitdiffstats
path: root/include/mgcp/mgcp_internal.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-11-29 21:41:01 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-12-16 11:33:27 +0100
commitd74ac335748ad2fe4971fd7dcca653284b9bbc17 (patch)
tree68c9ae77ca34bc413bed5e8f6e0bba6e6a6241e3 /include/mgcp/mgcp_internal.h
parent9b2474490a738665247ea3a04648f96411a78d6d (diff)
dtmf: Schedule DTMF tones for the MTN hardware
Create a simple queue for pending DTMF tones, play them using the MTN API, and then send the next tones once the playback is complete. The callback and scheduling is done from the same context so no locking needs to be done.
Diffstat (limited to 'include/mgcp/mgcp_internal.h')
-rw-r--r--include/mgcp/mgcp_internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mgcp/mgcp_internal.h b/include/mgcp/mgcp_internal.h
index 1918cb0..6b2989d 100644
--- a/include/mgcp/mgcp_internal.h
+++ b/include/mgcp/mgcp_internal.h
@@ -24,6 +24,7 @@
#define OPENBSC_MGCP_DATA_H
#include <osmocom/core/select.h>
+#include <dtmf_scheduler.h>
#define CI_UNUSED 0
@@ -124,6 +125,7 @@ struct mgcp_endpoint {
struct mgcp_rtp_tap taps[MGCP_TAP_COUNT];
/* Special MGW handling */
+ struct dtmf_state dtmf_state;
int blocked;
unsigned int hw_dsp_port; /** This is index 1 based */
unsigned int audio_port;