1/*
2 * Copyright (C) 2006 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.internal.telephony.gsm;
18
19/**
20 * Call fail causes from TS 24.008 .
21 * These are mostly the cause codes we need to distinguish for the UI.
22 * See 22.001 Annex F.4 for mapping of cause codes to local tones.
23 *
24 * {@hide}
25 *
26 */
27public interface CallFailCause {
28    static final int NORMAL_CLEARING     = 16;
29    // Busy Tone
30    static final int USER_BUSY           = 17;
31
32    // No Tone
33    static final int NUMBER_CHANGED      = 22;
34    static final int STATUS_ENQUIRY      = 30;
35    static final int NORMAL_UNSPECIFIED  = 31;
36
37    // Congestion Tone
38    static final int NO_CIRCUIT_AVAIL    = 34;
39    static final int TEMPORARY_FAILURE   = 41;
40    static final int SWITCHING_CONGESTION    = 42;
41    static final int CHANNEL_NOT_AVAIL   = 44;
42    static final int QOS_NOT_AVAIL       = 49;
43    static final int BEARER_NOT_AVAIL    = 58;
44
45    // others
46    static final int ACM_LIMIT_EXCEEDED = 68;
47    static final int CALL_BARRED        = 240;
48    static final int FDN_BLOCKED        = 241;
49    static final int ERROR_UNSPECIFIED = 0xffff;
50}
51