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

📄 sipxmessageobserver.h

📁 基于sipfoundy 公司开发的sipx协议API
💻 H
字号:
//// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -