More changes to make t.38 support work
authorMatthew Fredrickson <creslin@digium.com>
Thu, 12 Jan 2006 17:14:58 +0000 (17:14 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Thu, 12 Jan 2006 17:14:58 +0000 (17:14 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8015 65c4cc65-6c06-0410-ace0-fbb531ad65f3

asterisk.c
channel.c
include/asterisk/frame.h

index b2ab024..7a5649b 100644 (file)
@@ -100,6 +100,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/pbx.h"
 #include "asterisk/enum.h"
 #include "asterisk/rtp.h"
+#if defined(T38_SUPPORT)
+#include "asterisk/udptl.h"
+#endif
 #include "asterisk/app.h"
 #include "asterisk/lock.h"
 #include "asterisk/utils.h"
@@ -2319,6 +2322,9 @@ int main(int argc, char *argv[])
                exit(1);
        }
        ast_rtp_init();
+#if defined(T38_SUPPORT)
+       ast_udptl_init();
+#endif
        if (ast_image_init()) {
                printf(term_quit());
                exit(1);
index 54027e4..14b95bc 100644 (file)
--- a/channel.c
+++ b/channel.c
@@ -3274,6 +3274,9 @@ static enum ast_bridge_result ast_generic_bridge(struct ast_channel *c0, struct
                    (f->frametype == AST_FRAME_VIDEO) || 
                    (f->frametype == AST_FRAME_IMAGE) ||
                    (f->frametype == AST_FRAME_HTML) ||
+#if defined(T38_SUPPORT)
+                   (f->frametype == AST_FRAME_MODEM) ||
+#endif
                    (f->frametype == AST_FRAME_TEXT)) {
                        if (f->frametype == AST_FRAME_DTMF) {
                                if (((who == c0) && watch_c0_dtmf) ||
index ca8397e..7331746 100644 (file)
@@ -145,8 +145,16 @@ struct ast_frame {
 /*! Comfort Noise frame (subclass is level of CNG in -dBov), 
     body may include zero or more 8-bit quantization coefficients */
 #define AST_FRAME_CNG          10
-/*! T.38 Fax-over-IP data stream */
-#define AST_FRAME_T38          11
+#if defined(T38_SUPPORT)
+/*! Modem-over-IP data streams */
+#define AST_FRAME_MODEM                11
+
+/* MODEM subclasses */
+/*! T.38 Fax-over-IP */
+#define AST_MODEM_T38          1
+/*! V.150 Modem-over-IP */
+#define AST_MODEM_V150         2
+#endif
 
 /* HTML subclasses */
 /*! Sending a URL */