chenqiyang
2021-09-01 8fb1bc18bad99b2de79783848b41d07da01315a7
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
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
 * Copyright (c) 2010-2019 Belledonne Communications SARL.
 *
 * This file is part of Liblinphone.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
 
#ifndef _L_CALL_ENUMS_H_
#define _L_CALL_ENUMS_H_
 
// =============================================================================
 
#define L_ENUM_VALUES_CALL_SESSION_STATE(F) \
    F(Idle /**< Initial state */) \
    F(IncomingReceived /**< Incoming call received */) \
    F(OutgoingInit /**< Outgoing call initialized */) \
    F(OutgoingProgress /**< Outgoing call in progress */) \
    F(OutgoingRinging /**< Outgoing call ringing */) \
    F(OutgoingEarlyMedia /**< Outgoing call early media */) \
    F(Connected /**< Connected */) \
    F(StreamsRunning /**< Streams running */) \
    F(Pausing /**< Pausing */) \
    F(Paused /**< Paused */) \
    F(Resuming /**< Resuming */) \
    F(Referred /**< Referred */) \
    F(Error /**< Error */) \
    F(End /**< Call end */) \
    F(PausedByRemote /**< Paused by remote */) \
    F(UpdatedByRemote /**< The call&apos;s parameters are updated for example when video is asked by remote */) \
    F(IncomingEarlyMedia /**< We are proposing early media to an incoming call */) \
    F(Updating /**< We have initiated a call update */) \
    F(Released /**< The call object is now released */) \
    F(EarlyUpdatedByRemote /**< The call is updated by remote while not yet answered (SIP UPDATE in early dialog received) */) \
    F(EarlyUpdating /**< We are updating the call while not yet answered (SIP UPDATE in early dialog sent) */)
 
// =============================================================================
// DEPRECATED
// =============================================================================
 
#define LinphoneCallIdle LinphoneCallStateIdle
#define LinphoneCallIncomingReceived LinphoneCallStateIncomingReceived
#define LinphoneCallOutgoingInit LinphoneCallStateOutgoingInit
#define LinphoneCallOutgoingProgress LinphoneCallStateOutgoingProgress
#define LinphoneCallOutgoingRinging LinphoneCallStateOutgoingRinging
#define LinphoneCallOutgoingEarlyMedia LinphoneCallStateOutgoingEarlyMedia
#define LinphoneCallConnected LinphoneCallStateConnected
#define LinphoneCallStreamsRunning LinphoneCallStateStreamsRunning
#define LinphoneCallPausing LinphoneCallStatePausing
#define LinphoneCallPaused LinphoneCallStatePaused
#define LinphoneCallResuming LinphoneCallStateResuming
#define LinphoneCallRefered LinphoneCallStateReferred
#define LinphoneCallError LinphoneCallStateError
#define LinphoneCallEnd LinphoneCallStateEnd
#define LinphoneCallPausedByRemote LinphoneCallStatePausedByRemote
#define LinphoneCallUpdatedByRemote LinphoneCallStateUpdatedByRemote
#define LinphoneCallIncomingEarlyMedia LinphoneCallStateIncomingEarlyMedia
#define LinphoneCallUpdating LinphoneCallStateUpdating
#define LinphoneCallReleased LinphoneCallStateReleased
#define LinphoneCallEarlyUpdatedByRemote LinphoneCallStateEarlyUpdatedByRemote
#define LinphoneCallEarlyUpdating LinphoneCallStateEarlyUpdating
 
#endif // ifndef _L_CALL_ENUMS_H_