2 * Copyright (C) 2004-2005 by Objective Systems, Inc.
4 * This software is furnished under an open source license and may be
5 * used and copied only in accordance with the terms of this license.
6 * The text of the license may generally be found in the root
7 * directory of this installation in the COPYING file. It
8 * can also be viewed online at the following URL:
10 * http://www.obj-sys.com/open/license.html
12 * Any redistributions of this file including modified versions must
13 * maintain this copyright notice.
15 *****************************************************************************/
16 #ifndef _OO_H323CDRIVER_H_
17 #define __OO_H323DRIVER_H_
18 #include "chan_ooh323.h"
21 #include "oochannels.h"
23 #include "ooCapability.h"
24 #include "ooStackCmds.h"
25 #include "asterisk/format.h"
26 #define H323_DTMF_RFC2833 (1 << 0)
27 #define H323_DTMF_Q931 (1 << 1)
28 #define H323_DTMF_H245ALPHANUMERIC (1 << 2)
29 #define H323_DTMF_H245SIGNAL (1 << 3)
30 #define H323_DTMF_INBAND (1 << 4)
31 #define H323_DTMF_CISCO (1 << 5)
32 #define H323_DTMF_INBANDRELAX (1 << 8)
35 int ooh323c_start_stack_thread(void);
36 int ooh323c_stop_stack_thread(void);
37 int ooh323c_start_call_thread(ooCallData *call);
38 int ooh323c_stop_call_thread(ooCallData *call);
39 int ooh323c_set_capability
40 (struct ast_format_cap *cap, int dtmf, int dtmfcodec);
41 struct ast_format *convertH323CapToAsteriskCap(int cap);
42 int ooh323c_set_capability_for_call
43 (ooCallData *call, struct ast_format_cap *cap, int dtmf, int dtmfcodec,
44 int t38support, int g729onlyA);