📄 mh.c
字号:
/******************************************************************** * * File: mh.c * * Description: * The MH main application. * * Revisions: * 04-may-01 J.H and S.J.M initial version. * * Copyright 2003 Netergy Microelectronics, Inc. All rights reserved. * ********************************************************************/#include "h248app.h"/************************************************************************** * LOCAL FUNCTION PROTOTYPES **************************************************************************/void _ProcessHandset();void _OnHookEvent();void _OffHookEvent();/************************************************************************** * GLOBAL VARIABLES **************************************************************************/BOOL g_bQuit = FALSE;extern void *snmp_handle;/************************************************************************** * MAIN FUNCTION **************************************************************************/int main(int argc, char **argv) { int i; char sMgcIpAddrDispaly[34]; WORD wEndPointNumber; SYSLOG(LOG_INFO,"*** Starting H248 MH app ***\n"); /* initialize drivers, stacks, etc. */ _Initialization(); wEndPointNumber = HandsetQueryNumberOfLines(); for (i = 0; i < wEndPointNumber; i++) { /* Create instance */ CreateInstance(&xEndPoint[i]); } H248ProtocolStart(); //HandsetClearDisplayLine(1); HandsetClearDisplay(); HandsetDisplayString("Registering to MGC",2); sprintf(sMgcIpAddrDispaly,"%s%s",g_sMgcIpAddr," ..."); HandsetDisplayString(sMgcIpAddrDispaly,3); while (!g_bQuit) { for (i = 0; i < wEndPointNumber; i++) { EndPointProcess(&xEndPoint[i]); } /* update date time display */ HandsetUpdateClock(); AudioProcess(); MediaStreamProcess(); } H248ProtocolTerminate(); // MediaStreamTerm(); // give time for shutdown to complete msleep(500); SYSLOG(LOG_INFO,"*** Exiting H248 MH app ***\n"); return 0;}/**************************************************************************//*********************** END OF FILE **************************************//**************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -