sipxmessageobserver.h
来自「基于sipfoundy 公司开发的sipx协议API」· C头文件 代码 · 共 69 行
H
69 行
//// Copyright (C) 2004, 2005 Pingtel Corp.// //// $$//////////////////////////////////////////////////////////////////////////////#ifndef _SipXMessageObserver_h_#define _SipXMessageObserver_h_// SYSTEM INCLUDES// APPLICATION INCLUDES#include "os/OsServerTask.h"#include "net/SipMessage.h"#include "net/SipMessageEvent.h"#include "sipXtapi.h"// DEFINES#define SIPXMO_NOTIFICATION_STUN 1// MACROS// EXTERNAL FUNCTIONS// CONSTANTS// STRUCTS// TYPEDEFS// MACROS// FORWARD DECLARATIONSclass OsEventMsg ;/** * Class that is an OsServerTask, and has a message queue that observes SIP messages. * For example, it is used for looking for message responses, like the INFO response. */class SipXMessageObserver : public OsServerTask{public:/* ============================ CREATORS ================================== */ SipXMessageObserver(const SIPX_INST hInst); virtual ~SipXMessageObserver(void); /* ============================ MANIPULATORS ============================== */ /** * Implementation of OsServerTask's pure virtual method */ UtlBoolean handleMessage(OsMsg& rMsg); /** * FOR TEST PURPOSES ONLY - a response code to send back to the client */ void setTestResponseCode(int code) { mTestResponseCode = code; } private: bool handleIncomingInfoMessage(SipMessage* pMessage); bool handleIncomingInfoStatus(SipMessage* pMessage); bool handleStunOutcome(OsEventMsg* pMsg) ; /** * Special response code - for test purposes only. */ int mTestResponseCode; SIPX_INST mhInst;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?