forked from vacuum-im/sipphone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsipevent.h
61 lines (52 loc) · 877 Bytes
/
sipevent.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef SIPEVENT_H
#define SIPEVENT_H
#include <pjsua.h>
struct SipEvent
{
enum Type {
Null,
Error,
RegState,
IncomingCall,
CallState,
CallMediaState,
CallMediaFormat
};
Type type;
};
struct SipEventError :
public SipEvent
{
pj_status_t error;
};
struct SipEventRegState :
public SipEvent
{
pjsua_acc_id accIndex;
};
struct SipEventIncomingCall :
public SipEvent
{
pjsua_acc_id accIndex;
pjsua_call_id callIndex;
};
struct SipEventCallState :
public SipEvent
{
pjsip_inv_state state;
pjsip_status_code status;
quint32 duration;
qint64 destroyWaitTime;
};
struct SipEventCallMediaState :
public SipEvent
{
pjsua_conf_port_id confSlot;
pjsua_call_media_status mediaStatus;
};
struct SipEventCallMediaFormat :
public SipEvent
{
unsigned mediaIndex;
};
#endif // SIPEVENT_H