summaryrefslogtreecommitdiff
path: root/channels/dahdi/bridge_native_dahdi.h
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2013-07-23 15:59:32 +0000
committerRichard Mudgett <rmudgett@digium.com>2013-07-23 15:59:32 +0000
commit83a871ea35e48264f35d4170f08c96d9485097f0 (patch)
tree2b83bc8355f5e6df795ddd8f013c66298cc4fe17 /channels/dahdi/bridge_native_dahdi.h
parentbf22391b8d3ab34d8bfea29cf8a8ac66a80c2733 (diff)
Restore chan_dahdi native bridging and PRI tromboned call elimination.
Created a native_dahdi bridging technology for use with the new bridging API. The new bridging technology is part of the chan_dahdi channel driver because it is very specific to that driver. Rather than include the new code directly into chan_dahdi.c the new bridge technology is in its own file and linked into chan_dahdi.so. A large part of this change is the mechanical process of moving declarations around so chan_dahdi.c can be split up into more files later. * Changed the bridging core to pass NULL frames into the channel technologies instead of discarding them. The channel technologies may need the proding to determine if their configuration is still valid. (closes issue ASTERISK-21886) Reported by: Matt Jordan Review: https://reviewboard.asterisk.org/r/2681/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@395154 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/dahdi/bridge_native_dahdi.h')
-rw-r--r--channels/dahdi/bridge_native_dahdi.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/channels/dahdi/bridge_native_dahdi.h b/channels/dahdi/bridge_native_dahdi.h
new file mode 100644
index 000000000..91e8d16b7
--- /dev/null
+++ b/channels/dahdi/bridge_native_dahdi.h
@@ -0,0 +1,47 @@
+/*
+ * Asterisk -- An open source telephony toolkit.
+ *
+ * Copyright (C) 2013 Digium, Inc.
+ *
+ * Richard Mudgett <rmudgett@digium.com>
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree.
+ */
+
+/*!
+ * \file
+ * \brief Native DAHDI bridging support.
+ *
+ * \author Richard Mudgett <rmudgett@digium.com>
+ *
+ * See Also:
+ * \arg \ref AstCREDITS
+ */
+
+#ifndef _ASTERISK_BRIDGE_NATIVE_DAHDI_H
+#define _ASTERISK_BRIDGE_NATIVE_DAHDI_H
+
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
+/* ------------------------------------------------------------------- */
+
+void dahdi_native_unload(void);
+int dahdi_native_load(struct ast_module *mod, const struct ast_channel_tech *tech);
+
+/* ------------------------------------------------------------------- */
+
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
+
+#endif /* _ASTERISK_BRIDGE_NATIVE_DAHDI_H */