Propagate some SIP INVITE header fields on a MT call

These fields can be used for Spoof call detection in the Dialer

Bug: 115537553
Test: compile and test on device
Change-Id: Ib92043536e0fc43e40efc53189a28c4e58064ddc
This commit is contained in:
shilu
2018-11-09 15:52:04 -08:00
committed by Hall Liu
parent a2e577d8ed
commit b7ec9a0c9a
4 changed files with 9 additions and 0 deletions

View File

@@ -614,6 +614,11 @@ public abstract class Connection extends Conferenceable {
public static final String EVENT_HANDOVER_FAILED =
"android.telecom.event.HANDOVER_FAILED";
/**
* Connection extra key used to store SIP invite fields for an incoming call for IMS calls
*/
public static final String EXTRA_SIP_INVITE = "android.telecom.extra.SIP_INVITE";
// Flag controlling whether PII is emitted into the logs
private static final boolean PII_DEBUG = Log.isLoggable(android.util.Log.DEBUG);