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

📄 sipdialogpresenceclient.h

📁 MiniSip Client with DomainKeys Authentication, Sip, Audio communications, Echo Cancel
💻 H
字号:
/* Copyright (C) 2004-2006 the Minisip Team  This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.  This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.  You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA *//* Copyright (C) 2004  * * Authors: Erik Eliasson <eliasson@it.kth.se> *          Johan Bilien <jobi@via.ecp.fr>*//* Name * 	SipDialogPresenceClient.h * Author * 	Erik Eliasson, eliasson@it.kth.se * Purpose * */#ifndef SipDialogPresenceClient_H#define SipDialogPresenceClient_H#include<libminisip/libminisip_config.h>#include<libmutil/StateMachine.h>#include<libmsip/SipDialog.h>#include<libmsip/SipTransaction.h>#include<libmsip/SipResponse.h>#include<libminisip/sip/SipSoftPhoneConfiguration.h>class Session;class SipDialogContainer;class SipDialogConfig;class LogEntry;class LIBMINISIP_API SipDialogPresenceClient: public SipDialog{	public:		SipDialogPresenceClient(MRef<SipStack*> stack, MRef<SipDialogConfig*> callconfig, bool use_stun);				virtual ~SipDialogPresenceClient();		virtual std::string getMemObjectType(){return "SipDialogPresenceClient";}				virtual  std::string getName(){return "SipDialogPresenceClient[callid="+dialogState.callId +"]";}		virtual bool handleCommand(const SipSMCommand &command);		void setUpStateMachine();/*		MRef<SipInvite*> getLastInvite();				void setLastInvite(MRef<SipInvite*> i);				void sendInvite(const  std::string &branch);		void sendAuthInvite(const  std::string &branch);		void sendBye(const  std::string &branch, int);		void sendCancel(const  std::string &branch);		void sendInviteOk(const  std::string &branch);		void sendByeOk(MRef<SipBye*> bye, const  std::string &branch);		void sendReject(const  std::string &branch);		void sendRinging(const  std::string &branch);		void sendNotAcceptable(const  std::string &branch);		void registerSDP(uint32_t sourceId, MRef<SdpPacket*> sdppack);		void handleSdp(MRef<SdpPacket*> );		void setLocalCalled(bool lc){localCalled=lc;}				void setNonce(const  std::string &n){ nonce = n; }		void setRealm(const  std::string &r){ realm = r; }		MRef<SipSoftPhoneConfiguration*> getPhoneConfig(){return phoneconf;}		MRef<LogEntry *> getLogEntry();		void setLogEntry( MRef<LogEntry *> );*/	private:				void sendSubscribe(const  std::string &branch);		void createSubscribeClientTransaction();				bool a0_start_trying_presence(const SipSMCommand &command);		bool a1_X_subscribing_200OK(const SipSMCommand &command);		bool a2_trying_retrywait_transperror(const SipSMCommand &command);		bool a4_X_trying_timerTO(const SipSMCommand &command);		bool a5_subscribing_subscribing_NOTIFY(const SipSMCommand &command);		bool a6_subscribing_termwait_stoppresence(const SipSMCommand &command);		bool a7_termwait_terminated_notransactions(const SipSMCommand &command);//		MRef<SipSoftPhoneConfiguration*> phoneconf;		MRef<SipIdentity *> toUri;		bool useSTUN;};#endif

⌨️ 快捷键说明

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