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 17 package 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 */ 27 public interface CallFailCause { 28 // Unassigned/Unobtainable number 29 static final int UNOBTAINABLE_NUMBER = 1; 30 31 static final int NORMAL_CLEARING = 16; 32 // Busy Tone 33 static final int USER_BUSY = 17; 34 35 // No Tone 36 static final int NUMBER_CHANGED = 22; 37 static final int STATUS_ENQUIRY = 30; 38 static final int NORMAL_UNSPECIFIED = 31; 39 40 // Congestion Tone 41 static final int NO_CIRCUIT_AVAIL = 34; 42 static final int TEMPORARY_FAILURE = 41; 43 static final int SWITCHING_CONGESTION = 42; 44 static final int CHANNEL_NOT_AVAIL = 44; 45 static final int QOS_NOT_AVAIL = 49; 46 static final int BEARER_NOT_AVAIL = 58; 47 48 // others 49 static final int ACM_LIMIT_EXCEEDED = 68; 50 static final int CALL_BARRED = 240; 51 static final int FDN_BLOCKED = 241; 52 static final int ERROR_UNSPECIFIED = 0xffff; 53 } 54