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; 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 * CDMA call failure reasons are derived from the possible call failure scenarios described 25 * in "CDMA IS2000 - Release A (C.S0005-A v6.0)" standard. 26 * 27 * {@hide} 28 * 29 */ 30 public interface CallFailCause { 31 // Unassigned/Unobtainable number 32 int UNOBTAINABLE_NUMBER = 1; 33 34 int NORMAL_CLEARING = 16; 35 // Busy Tone 36 int USER_BUSY = 17; 37 38 // No Tone 39 int NUMBER_CHANGED = 22; 40 int STATUS_ENQUIRY = 30; 41 int NORMAL_UNSPECIFIED = 31; 42 43 // Congestion Tone 44 int NO_CIRCUIT_AVAIL = 34; 45 int TEMPORARY_FAILURE = 41; 46 int SWITCHING_CONGESTION = 42; 47 int CHANNEL_NOT_AVAIL = 44; 48 int QOS_NOT_AVAIL = 49; 49 int BEARER_NOT_AVAIL = 58; 50 51 // others 52 int ACM_LIMIT_EXCEEDED = 68; 53 int CALL_BARRED = 240; 54 int FDN_BLOCKED = 241; 55 56 // Stk Call Control 57 int DIAL_MODIFIED_TO_USSD = 244; 58 int DIAL_MODIFIED_TO_SS = 245; 59 int DIAL_MODIFIED_TO_DIAL = 246; 60 61 int CDMA_LOCKED_UNTIL_POWER_CYCLE = 1000; 62 int CDMA_DROP = 1001; 63 int CDMA_INTERCEPT = 1002; 64 int CDMA_REORDER = 1003; 65 int CDMA_SO_REJECT = 1004; 66 int CDMA_RETRY_ORDER = 1005; 67 int CDMA_ACCESS_FAILURE = 1006; 68 int CDMA_PREEMPTED = 1007; 69 70 // For non-emergency number dialed while in emergency callback mode. 71 int CDMA_NOT_EMERGENCY = 1008; 72 73 // Access Blocked by CDMA Network. 74 int CDMA_ACCESS_BLOCKED = 1009; 75 76 int ERROR_UNSPECIFIED = 0xffff; 77 78 } 79