⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gateip.h

📁 dialogic voip 测试代码
💻 H
字号:
/**********************************************************************************************
* 
* $ProjectName: X:/SIPROJ/VOIP/HOST/WIN_NT/DEMOS/Samples.rel5/Dm3/Iplink/project.pj $
* $ProjectRevision: 1.5 $
* $Label$
* $Revision: 1.2 $ - $Date: 2001/09/06 12:58:10 $
* 
**********************************************************************************************/

#ifndef _GATEIP_H
#define  _GATEIP_H                

#ifdef __cplusplus
extern "C" {
#endif /* def __cplusplus */
#include <pdl.h>
#include "gatestrc.h"

      /****************************************************/
      /*                                                  */
      /*     DEFINITION OF GLOBAL FUNCTIONS               */
      /*                                                  */
      /****************************************************/

/*****FUNCTION***************************************************
*        NAME : ipGetChannels
* DESCRIPTION : Gets the number of ip channels available
*               in the system
*       INPUT : None
*      OUTPUT : None
*     RETURNS : Number of Voice channels
*    CAUTIONS : None
****************************************************************/
unsigned int ipGetChannels();


/*****FUNCTION***************************************************
*        NAME : ipOpenDevices
* DESCRIPTION : Initialize IP
*       INPUT : None
*      OUTPUT : None
*     RETURNS : success or fail
*    CAUTIONS : None
****************************************************************/
int ipOpenDevices();

/*****FUNCTION***************************************************
*        NAME : ipMakeCall
* DESCRIPTION : Fill the structures of makecall and send 
*                    gc_MakeCall to ip
*       INPUT : None
*      OUTPUT : None
*     RETURNS : 1 - success, 0 - fail
*    CAUTIONS : None
****************************************************************/
int ipMakeCall(unsigned int Channel);		


/*****FUNCTION***************************************************
*        NAME : OnExtension
* DESCRIPTION : Get the call information and update the CallParameters
*               structure. 
*       INPUT : parmBlk- pointer to GC_PARM_BLK structure
*               Channel- the channel which got the event
*      OUTPUT : None
*     RETURNS : None
*    CAUTIONS : None
****************************************************************/
void OnExtension(GC_PARM_BLKP parmBlk,unsigned int Channel);

/*****FUNCTION***************************************************
*        NAME : ipGetEvent
* DESCRIPTION : First process of ip events
*       INPUT : None
*      OUTPUT : None
*     RETURNS : 1 - success, 0 - fail
*    CAUTIONS : None
****************************************************************/
int ipGetEvent(METAEVENT *metaevt,unsigned int Channel);



#ifdef __cplusplus                /* close C++ brackets */
}   
#endif /* def __cplusplus */

#endif /* ndef _GATEIP_H */

/*** End of File ***/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -