IMS: Add support in frameworks for call deflection feature

Call deflection feature is useful to deflect MT call to another
number.

Test: Manual

Bug: 62170348
Change-Id: Idfbcc175a856aa0bb9476f8c73d7a614a3af0700
This commit is contained in:
Pooja Jain
2017-12-28 14:15:31 +05:30
parent 9f16828767
commit d34698def5
13 changed files with 138 additions and 2 deletions

View File

@@ -328,8 +328,11 @@ public abstract class Connection extends Conferenceable {
*/
public static final int CAPABILITY_CAN_PULL_CALL = 0x01000000;
/** Call supports the deflect feature. */
public static final int CAPABILITY_SUPPORT_DEFLECT = 0x02000000;
//**********************************************************************************************
// Next CAPABILITY value: 0x02000000
// Next CAPABILITY value: 0x04000000
//**********************************************************************************************
/**
@@ -729,6 +732,9 @@ public abstract class Connection extends Conferenceable {
if (can(capabilities, CAPABILITY_CAN_PULL_CALL)) {
builder.append(isLong ? " CAPABILITY_CAN_PULL_CALL" : " pull");
}
if (can(capabilities, CAPABILITY_SUPPORT_DEFLECT)) {
builder.append(isLong ? " CAPABILITY_SUPPORT_DEFLECT" : " sup_def");
}
builder.append("]");
return builder.toString();
@@ -2744,6 +2750,12 @@ public abstract class Connection extends Conferenceable {
onAnswer(VideoProfile.STATE_AUDIO_ONLY);
}
/**
* Notifies this Connection, which is in {@link #STATE_RINGING}, of
* a request to deflect.
*/
public void onDeflect(Uri address) {}
/**
* Notifies this Connection, which is in {@link #STATE_RINGING}, of
* a request to reject.