Retrieve all Calls

This function retrieves all calls from the client account.

URL

GET {baseURL}/calls

Parameters

None.

Responses

If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.

Returned Data (200 OK)

A JSON Structure containing the following fields:

FieldTypeData
recordsCall []An array of Call objects.
countIntegerThe number of records returned.
orderByStringCurrently, calls are ordered by UFN.
statusIntegerThe return code (also provided by the http status code).

Example

{
    "records": [
        {
            "bOutbound": 0,
            "CurrentAgentCountLoggedInToAcd": null,
            "AcdCallMonitoring_bCallRequest": null,
            "AcdSecondaryDistributionAlgorithmID": 1,
            "LanguagesID": 2,
...
            "dtCallStart": "2022-07-08T11:33:18.900977Z",
            "CallingPartyNumberType": 1,
            "dtAcdFirstQueueStart": null,
            "ResellersID": 1,
            "dtAcdCallRecordingAnnouncementStart": null
        }
    ],
    "count": 1,
    "orderBy": "UFN",
    "status": 200
}

Answer a Call

This function issues the answer call function to the PBX / PBX Connector. Note, not all PBX connectors support this function.

URL

GET {baseURL}/calls/{UFN}/answer

Parameters

Parameter

Where

Type

Data

UFNURLStringThe UFN of the call.

Responses

If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.

Hangup a Call

This function issues the hangup call function to the jtel System.

URL

GET {baseURL}/calls/{UFN}/hangup

Parameters

Parameter

Where

Type

Data

UFNURLStringThe UFN of the call.

Responses

If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.

Hold a Call

This function issues the call hold function to the jtel system.

URL

GET {baseURL}/calls/{UFN}/hold

Parameters

Parameter

Where

Type

Data

UFNURLStringThe UFN of the call.

Responses

If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.

Retrieve a Call

This function issues the retrieve call function to the jtel System.

URL

GET {baseURL}/calls/{UFN}/retrieve

Parameters

Parameter

Where

Type

Data

UFNURLStringThe UFN of the call.

Responses

If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.

Make a Call

This function starts an outbound call for an agent using a particular ACD group.

URL

GET {baseURL}/calls/makeCall?usersID={usersID}&acdGroupsID={acdGroupsID}&serviceNumbersID={serviceNumbersID}&destinationNumber={serviceNumbersID}&maxRingTime={maxRingTime}&userData={userData}&bSuppressPreview={bSuppressPreview}

Parameters

Parameter

Where

Type

Data

usersIDURLIntegerThe ID of the user for which the call should be made. Note, the telActive setting will be the destination for the agent leg of the call.
acdGroupsIDURLIntegerThe ID of a standalone ACD group or configuration ACD group for which the call should be made.
serviceNumbersIDURLIntegerThe ID of the service number on which the call should be made. This will be used in the signalling (calling party number).
destinationNumberURLStringThe destination number in E.164 format. Note, it may be possible to dial non E.164 strings in some systems, however, this behaviour is not supported so if you use it, then good luck!
maximumRingTimeURLIntegerThe maximum ring time for the call, before it is ended with a "no answer" result.
userDataURLStringAny user data associated with the call can be entered here. Usually a foreign system ID or identifier.
bSuppressPreviewURLBooleanCurrently not supported, for future use in combination with the dialler.

Responses

If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.

  • No labels