ooh323cDriver.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright (C) 2004-2005 by Objective Systems, Inc.
  3. *
  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:
  9. *
  10. * http://www.obj-sys.com/open/license.html
  11. *
  12. * Any redistributions of this file including modified versions must
  13. * maintain this copyright notice.
  14. *
  15. *****************************************************************************/
  16. #ifndef _OO_H323CDRIVER_H_
  17. #define _OO_H323CDRIVER_H_
  18. #include "chan_ooh323.h"
  19. #include "ootypes.h"
  20. #include "ooh323ep.h"
  21. #include "oochannels.h"
  22. #include "ooCalls.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)
  33. struct h323_pvt;
  34. int ooh323c_start_stack_thread(void);
  35. int ooh323c_stop_stack_thread(void);
  36. int ooh323c_start_call_thread(ooCallData *call);
  37. int ooh323c_stop_call_thread(ooCallData *call);
  38. int ooh323c_set_capability
  39. (struct ast_format_cap *cap, int dtmf, int dtmfcodec);
  40. struct ast_format *convertH323CapToAsteriskCap(int cap);
  41. int ooh323c_set_capability_for_call
  42. (ooCallData *call, struct ast_format_cap *cap, int dtmf, int dtmfcodec,
  43. int t38support, int g729onlyA);
  44. #endif