📄 ua_session.hpp
字号:
#ifndef _OCSIP_UAS_SESSION_H_#define _OCSIP_UAS_SESSION_H_#include <sip_message_api.h>#include <SIP_Session.h>#include <SIP_Service.h>#include <sys/time.h>#include <FF_SipMessageContainer.h>#ifdef __linux__#define hrtime_t u_int64_t#endifclass UA_Session : public SIP_Session {public: typedef enum { CALL_INITIAL, CALL_PROCEEDING, CALL_CALLING, CALL_SUCCESS, CALL_CONFIRMED, CALL_COMPLETED, CALL_RELEASING } CallState; UA_Session (); virtual ~UA_Session(); const UA_Session::CallState getState() const; void setState (UA_Session::CallState value); const sip_msg_uri_t* getReqUri() const; void setReqUri(sip_msg_uri_t* value); void setService(SIP_Service& P_service) throw(); SIP_Service& getService() throw (std::exception); hrtime_t getConfirmedTime(); void storeProviderId(FF_SipMessageContainer& P_message); int getProviderCallId(); int getProviderDialogId(); int getProviderSubscriptionId(); private: UA_Session(const UA_Session &right); UA_Session & operator=(const UA_Session &right); void setConfirmedTime(hrtime_t P_time);private: UA_Session::CallState state; sip_msg_uri_t* reqUri; SIP_Service* service; hrtime_t confirmedTime ; int providerCallId; int providerDialogId; int providerSubscriptionId;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -