/* * Copyright (C) 2004-2005 by Objective Systems, Inc. * * This software is furnished under an open source license and may be * used and copied only in accordance with the terms of this license. * The text of the license may generally be found in the root * directory of this installation in the COPYING file. It * can also be viewed online at the following URL: * * http://www.obj-sys.com/open/license.html * * Any redistributions of this file including modified versions must * maintain this copyright notice. * *****************************************************************************/ /** * @file ooStackCmds.h * This file contains stack commands which an user application can use to make * call, hang call etc. */ #ifndef OO_STACKCMDS_H #define OO_STACKCMDS_H #include "ootypes.h" #ifdef __cplusplus extern "C" { #endif #ifndef EXTERN #if defined (MAKE_DLL) #define EXTERN __declspec(dllexport) #else #define EXTERN #endif /* MAKE_DLL */ #endif /* EXTERN */ /** * @defgroup stackcmds Stack Control Commands * @{ */ /** * This is an enumeration of Stack Command return codes. */ typedef enum OOStkCmdStat{ OO_STKCMD_SUCCESS, OO_STKCMD_MEMERR, OO_STKCMD_INVALIDPARAM, OO_STKCMD_WRITEERR, OO_STKCMD_CONNECTIONERR }OOStkCmdStat; /** * This is an enumeration of stack command codes. */ typedef enum OOStackCmdID { OO_CMD_NOOP, OO_CMD_MAKECALL, /*!< Make call */ OO_CMD_ANSCALL, /*!< Answer call */ OO_CMD_FWDCALL, /*!< Forward call */ OO_CMD_HANGCALL, /*!< Terminate call */ OO_CMD_SENDDIGIT, /*!< Send dtmf */ OO_CMD_MANUALRINGBACK, /*!< Send Alerting - ringback */ OO_CMD_MANUALPROGRESS, /*!< Send progress */ OO_CMD_STOPMONITOR, /*!< Stop the event monitor */ OO_CMD_REQMODE, /*!< Request new mode */ OO_CMD_SETANI /*!