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

📄 gatepstn.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 14:36:07 $
* 
**********************************************************************************************/

#ifndef _GATEPSTN_H
#define  _GATEPSTN_H                

#ifdef __cplusplus
extern "C" {
#endif /* def __cplusplus */

#include <pdl.h>
#include "gatestrc.h"
#include "incfile.h"

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

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


/*****FUNCTION***************************************************
*        NAME : pstnOpenFrontEnd
* DESCRIPTION : Initialize front end
*       INPUT : none
*      OUTPUT : None
*     RETURNS : success or fail
*    CAUTIONS : None
****************************************************************/
int pstnOpenFrontEnd();


/*****FUNCTION***************************************************
*        NAME : pstnListen
* DESCRIPTION : Listen to a given timeslot
*       INPUT : unsigned int channel  
*               unsigned int timeslot    -  Time slot to listen to
*      OUTPUT : None
*     RETURNS : 1 - success, 0 - fail
*    CAUTIONS : None
****************************************************************/
int pstnListen(unsigned int channel, unsigned short timeslot);


/*****FUNCTION***************************************************
*        NAME : pstnUnListen
* DESCRIPTION : UnListen on a given channel, and relisten to default
*       INPUT : unsigned int channel
*      OUTPUT : None
*     RETURNS : 1 - success, 0 -fail
*    CAUTIONS : None
****************************************************************/
int pstnUnListen(unsigned int channel);



/*****FUNCTION***************************************************
*        NAME : pstnGetEvent
* DESCRIPTION : Gets SRL event and channel
*       INPUT : None
*      OUTPUT : None
*     RETURNS : 1 - success, 0 - fail
*    CAUTIONS : None
****************************************************************/
int pstnGetEvent(METAEVENT *metaevt,unsigned int Channel);



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

#endif /* ndef _GATEPSTN_H */

/*** End of File ***/

⌨️ 快捷键说明

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