/* * (CAPI*) * * An implementation of Common ISDN API 2.0 for Asterisk * * include file for helper applications * * Copyright (C) 2005 Cytronics & Melware * * Armin Schindler * * Reworked, but based on the work of * Copyright (C) 2002-2005 Junghanns.NET GmbH * * Klaus-Peter Junghanns * * This program is free software and may be modified and * distributed under the terms of the GNU Public License. */ #ifndef _ASTERISK_CAPI_IF_H #define _ASTERISK_CAPI_IF_H /* exported symbols from chan_capi */ /* important things we need */ extern unsigned ast_capi_ApplID; extern _cword get_ast_capi_MessageNumber(void); extern int capidebug; extern int capi_call(struct ast_channel *c, char *idest, int timeout); extern int capi_detect_dtmf(struct ast_channel *c, int flag); extern MESSAGE_EXCHANGE_ERROR _capi_put_cmsg(_cmsg *CMSG); /* * helper for ast_verbose with different verbose settings */ #define cc_ast_verbose(o_v, c_d, text...) \ do { \ if ((o_v == 0) || (option_verbose > o_v)) { \ if ((!c_d) || ((c_d) && (capidebug))) { \ ast_verbose(text); \ } \ } \ } while(0) #endif