Skip to content

Commit 6308e48

Browse files
author
Naveen Kalla
committed
Notify user regarding invalid number during MO call.
When user dials an invalid number, network returns an error indicating "unobtainable number" (See the Table 10.5.123/3GPP TS 24.008 for the possible failure causes). Changes done to display message to indicate user that an invalid number has been dialed. Change-Id: I477d64bc3b59cc205396f911ff9630c640f619f3
1 parent 5a870fe commit 6308e48

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

telephony/java/com/android/internal/telephony/Connection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public enum DisconnectCause {
5050
CS_RESTRICTED, /* call was blocked by restricted all voice access */
5151
CS_RESTRICTED_NORMAL, /* call was blocked by restricted normal voice access */
5252
CS_RESTRICTED_EMERGENCY, /* call was blocked by restricted emergency voice access */
53+
UNOBTAINABLE_NUMBER, /* Unassigned number (3GPP TS 24.008 table 10.5.123) */
5354
CDMA_LOCKED_UNTIL_POWER_CYCLE, /* MS is locked until next power cycle */
5455
CDMA_DROP,
5556
CDMA_INTERCEPT, /* INTERCEPT order received, MS state idle entered */

telephony/java/com/android/internal/telephony/gsm/CallFailCause.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
*
2626
*/
2727
public interface CallFailCause {
28+
// Unassigned/Unobtainable number
29+
static final int UNOBTAINABLE_NUMBER = 1;
30+
2831
static final int NORMAL_CLEARING = 16;
2932
// Busy Tone
3033
static final int USER_BUSY = 17;

telephony/java/com/android/internal/telephony/gsm/GsmConnection.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,9 @@ public void cancelPostDial() {
356356
case CallFailCause.FDN_BLOCKED:
357357
return DisconnectCause.FDN_BLOCKED;
358358

359+
case CallFailCause.UNOBTAINABLE_NUMBER:
360+
return DisconnectCause.UNOBTAINABLE_NUMBER;
361+
359362
case CallFailCause.ERROR_UNSPECIFIED:
360363
case CallFailCause.NORMAL_CLEARING:
361364
default:

0 commit comments

Comments
 (0)