blob: a094bb9b6745fbc68ad995f19c41d78d6def3fbb [file] [log] [blame]
Harald Welte1e908662010-03-07 23:39:54 +01001#ifndef _OSMOCORE_MNCC_H
2#define _OSMOCORE_MNCC_H
3
4#define GSM_MAX_FACILITY 128
5#define GSM_MAX_SSVERSION 128
6#define GSM_MAX_USERUSER 128
7
8/* Expanded fields from GSM TS 04.08, Table 10.5.102 */
9struct gsm_mncc_bearer_cap {
10 int transfer; /* Information Transfer Capability */
11 int mode; /* Transfer Mode */
12 int coding; /* Coding Standard */
13 int radio; /* Radio Channel Requirement */
14 int speech_ctm; /* CTM text telephony indication */
15 int speech_ver[8]; /* Speech version indication */
16};
17
18struct gsm_mncc_number {
19 int type;
20 int plan;
21 int present;
22 int screen;
23 char number[33];
24};
25
26struct gsm_mncc_cause {
27 int location;
28 int coding;
29 int rec;
30 int rec_val;
31 int value;
32 int diag_len;
33 char diag[32];
34};
35
36struct gsm_mncc_useruser {
37 int proto;
38 char info[GSM_MAX_USERUSER + 1]; /* + termination char */
39};
40
41struct gsm_mncc_progress {
42 int coding;
43 int location;
44 int descr;
45};
46
47struct gsm_mncc_facility {
48 int len;
49 char info[GSM_MAX_FACILITY];
50};
51
52struct gsm_mncc_ssversion {
53 int len;
54 char info[GSM_MAX_SSVERSION];
55};
56
57struct gsm_mncc_cccap {
58 int dtmf;
59 int pcp;
60};
61
62enum {
63 GSM_MNCC_BCAP_SPEECH = 0,
64 GSM_MNCC_BCAP_UNR_DIG = 1,
65 GSM_MNCC_BCAP_AUDIO = 2,
66 GSM_MNCC_BCAP_FAX_G3 = 3,
67 GSM_MNCC_BCAP_OTHER_ITC = 5,
68 GSM_MNCC_BCAP_RESERVED = 7,
69};
70
71#endif