mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-26 14:27:14 +00:00
More changes to make t.38 support work
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8015 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -100,6 +100,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
|||||||
#include "asterisk/pbx.h"
|
#include "asterisk/pbx.h"
|
||||||
#include "asterisk/enum.h"
|
#include "asterisk/enum.h"
|
||||||
#include "asterisk/rtp.h"
|
#include "asterisk/rtp.h"
|
||||||
|
#if defined(T38_SUPPORT)
|
||||||
|
#include "asterisk/udptl.h"
|
||||||
|
#endif
|
||||||
#include "asterisk/app.h"
|
#include "asterisk/app.h"
|
||||||
#include "asterisk/lock.h"
|
#include "asterisk/lock.h"
|
||||||
#include "asterisk/utils.h"
|
#include "asterisk/utils.h"
|
||||||
@@ -2319,6 +2322,9 @@ int main(int argc, char *argv[])
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
ast_rtp_init();
|
ast_rtp_init();
|
||||||
|
#if defined(T38_SUPPORT)
|
||||||
|
ast_udptl_init();
|
||||||
|
#endif
|
||||||
if (ast_image_init()) {
|
if (ast_image_init()) {
|
||||||
printf(term_quit());
|
printf(term_quit());
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|||||||
@@ -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_VIDEO) ||
|
||||||
(f->frametype == AST_FRAME_IMAGE) ||
|
(f->frametype == AST_FRAME_IMAGE) ||
|
||||||
(f->frametype == AST_FRAME_HTML) ||
|
(f->frametype == AST_FRAME_HTML) ||
|
||||||
|
#if defined(T38_SUPPORT)
|
||||||
|
(f->frametype == AST_FRAME_MODEM) ||
|
||||||
|
#endif
|
||||||
(f->frametype == AST_FRAME_TEXT)) {
|
(f->frametype == AST_FRAME_TEXT)) {
|
||||||
if (f->frametype == AST_FRAME_DTMF) {
|
if (f->frametype == AST_FRAME_DTMF) {
|
||||||
if (((who == c0) && watch_c0_dtmf) ||
|
if (((who == c0) && watch_c0_dtmf) ||
|
||||||
|
|||||||
@@ -145,8 +145,16 @@ struct ast_frame {
|
|||||||
/*! Comfort Noise frame (subclass is level of CNG in -dBov),
|
/*! Comfort Noise frame (subclass is level of CNG in -dBov),
|
||||||
body may include zero or more 8-bit quantization coefficients */
|
body may include zero or more 8-bit quantization coefficients */
|
||||||
#define AST_FRAME_CNG 10
|
#define AST_FRAME_CNG 10
|
||||||
/*! T.38 Fax-over-IP data stream */
|
#if defined(T38_SUPPORT)
|
||||||
#define AST_FRAME_T38 11
|
/*! 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 */
|
/* HTML subclasses */
|
||||||
/*! Sending a URL */
|
/*! Sending a URL */
|
||||||
|
|||||||
Reference in New Issue
Block a user