forked from yuqingbin/GB28181-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSipSession.h
43 lines (34 loc) · 1.16 KB
/
SipSession.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#pragma once
#include "SipClientApent.h"
class CSipSession
{
public:
CSipSession(void);
CSipSession(CSipClientApent *proxy,CSipClientApent *sms,CSipClientApent *sender,CSipClientApent *receiver,int seesiontype);
~CSipSession(void);
int check_session(string id,int cid);//检测是否属于本次会话的消息
void insert_call(int cid);
void remove_call(int cid);
//实时视频会话流程
int handle_invite(eXosip_t *context_eXosip,eXosip_event_t *evt);
int handle_answered(eXosip_t *context_eXosip,eXosip_event_t *evt);
int handle_ack(eXosip_t *context_eXosip,eXosip_event_t *evt);
int handle_bye(eXosip_t *context_eXosip,eXosip_event_t *evt);
private:
CSipClientApent *sipagent_proxy_; //本级域
CSipClientApent *sipagent_sms_; //媒体服务器
CSipClientApent *sipagent_sender_; //媒体接收者
CSipClientApent *sipagent_receiver_; //媒体发送者
ACE_Recursive_Thread_Mutex sipcall_lock_;
vector<int> v_callid_;
int session_type_; //会话类型
int sender_cid_;
int sender_did_;
int sender_tid_;
int recevier_cid_;
int recevier_did_;
int recevier_tid_;
int sms_cid_;
int sms_did_;
int sms_tid_;
};