blob: 4e8e6623a07a3fbf5777b18a0e317f76dc256559 (
plain)
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
|
#pragma once
#include <osmocom/core/linuxlist.h>
struct sip_agent;
struct mncc_connection;
struct call_leg;
/**
* One instance of a call with two legs. The initial
* field will always be used by the entity that has
* launched the call.
*/
struct call {
struct llist_head entry;
struct call_leg *initial;
struct call_leg *remote;
};
enum {
CALL_TYPE_NONE,
CALL_TYPE_SIP,
CALL_TYPE_MNCC,
};
struct call_leg {
int type;
};
struct sip_call_leg {
struct call_leg base;
struct sip_agent *agent;
};
struct mncc_call_leg {
struct call_leg base;
struct mncc_connection *conn;
};
extern struct llist_head g_call_list;
void calls_init(void);
|