Phone ID - Identity attributes: Active Call Status

📘

NOTE:

To add this feature to your account, contact a Telesign expert. This feature is currently available for customers with end users in select countries.

Use this identity attribute to check if the end user is actively engaged in an ongoing call. This helps prevent fraud by using ongoing call activity and type to determine the presence of Authorized Push Payment fraud.

Active Call Status allows you to take extra steps when the end user initiates a transaction. If the end user is actively engaged in a conversation with a potential scammer, you can decide whether you want to allow the transaction.

Based on the phone number provided in the API request, Active Call Status provides a true/false response (indicating whether the user is participating in a call). It provides the information on whether the end user initiated or received the call and its duration.

Examples

Request body

{
  "addons": {
    "active_call_status": {}
  }
}

Response 1: Active call

When a call is active, the is_call_active parameter returns True. The call_direction parameter returns either called or calling, depending on who initiated the call. The call_duration parameter shows the length of a call in seconds.

{
    "active_call_status": {
        "is_call_active": True,
        "call_duration": 120,
        "call_direction": "called",
        "status": {
            "code": 2800,
            "description": "Request successfully completed."
        }
    }
}

Response 2: Inactive call

When a call is not active, is_call_active returns False.

{
    "active_call_status": {
        "is_call_active": False,
        "call_duration": None,
        "call_direction": None,
        "status": {
            "code": 2800,
            "description": "Request successfully completed."
        }
    }
}

Response error examples

Active Call Status returns the applicable error code and a description of the error for status.code when a request isn't successfully completed. The examples below are a few that you might see. See status codes for a complete list of possible status codes. If error code 2806 is returned, please contact Customer Support Team to enable Active Call Status.

Code 2802 is returned when there is an unexpected error. 2810 is included in the response when a provider returns an unrecognized response.

Response 3: Error - request processing timeout occurred

Code 2811 is returned when the timeout is reached.

{
    "active_call_status": {
        "status": {
            "code": 2811,
            "description": "Request processing timeout.",
        }
    }
}

Response 4: Error - no active_call_status information is found

Code 2805 is returned when the provider returns null or empty values for the required parameters.

{
    "active_call_status": {
        "status": {
            "code": 2805,
            "description": "No active_call_status add-on information for phone number."
        }
    }
}

Response 5: Error - phone type is not applicable

Code 2804 is returned when the phone number is invalid, restricted, toll-free, or a pay phone number.

{
    "active_call_status": {
        "status": {
            "code": 2804,
            "description": "Phone number not applicable in active_call_status add-on."
        }
    }
}

Schema

Active Call Status request parameters

ParameterTypeDescription
addonsobjectThis parameter allows you to receive information returned from your enabled identity attributes. Contact our Customer Support Team to add this feature.
addons.active_call_statusobjectInclude this parameter to initiate use of the Active Call Status identity attribute. The value should be an empty object.

Active Call Status response parameters

PropertyTypeDescription
reference_idstringA 32-digit hex value used to identify a web service request. The value is unique to each web service request and is randomly generated by Telesign.
phone_typestringOne of the phone type codes.
descriptionstringText describing the phone type.
active_call_statusobjectContains sub-properties related to the Active Call Status identity attribute. You will only see this in your response if you used the Active Call Status identity attribute.
active_call_status.is_call_activebooleanIndicates whether the end user is engaged in an ongoing call. Returns True if the call is active and False if the call is inactive.
active_call_status.call_durationintegerThe duration of an ongoing call in seconds. The parameter is None if the call is inactive.
active_call_status.call_directionstringIf the call is active, returns either called or calling, depending on who initiated the call. The parameter is None if the call is inactive.
active_call_status.statusobjectContains properties related to the processing status for this identity attribute.
active_call_status.status.codestringA numeric code indicating the processing status for this identity attribute.
active_call_status.status.descriptionstringA brief description telling you what the code means.

Status codes

Status codeAssociated text string
2800Request successfully completed
2801Invalid request addon parameter: {parameter_name}.
2802active_call_status add-on temporarily unavailable.
2803Phone number out of active_call_status add-on coverage.
2804Phone number not applicable in active_call_status add-on.
2805No active_call_status add-on information for phone_number.
2806active_call_status add-on is not enabled.
2810Request process failed during data collection.
2811Request processing timeout.