This API is called offline, after a call has ended in the JTEL ACD.
The result of the call, and some statistics regarding the call, are passed to the sales force instance.
This data can be used, for example, to create an activity record in SalesForce associated with the relevant SalesForce record.
To make use of this API, a REST endpoint must be provided in SalesForce for the jtel System to access.
Also, the following daemon must be activated in the jtel system:
\\acd-store\shared\JTELCarrierPortal\AppServer\SalesForce\SalesForce.Daemon.REST.writeCallStatistics.r5
The following pages describe an example implementation.
Request
POST
Data Structure
Data is passed to this API as a JSON structure.
The following fields are provided:
Field Name | Description |
---|---|
SalesForceID | The Id of the record in SalesForce. |
jtelStatisticsPartAID | The ID of the StatisticsPartA record in the jtel system. |
AgentUID | The UID of the agent in the jtel system. It is recommended, that for example the "NickName" field in SalesForce be used to map values between the systems, if the login UID cannot be made equal. |
bOutbound | 0 = Inbound Call, 1 = Outbound Call. |
CallerID | The caller ID of the caller or called party, in E.164 format (fully qualified including country code) without a proceeding +. |
ServiceNumber | The used service number in the jtel system, as configured in the "Service Number" field (database field ServiceNumbers.Name) in the jtel system. |
ServiceName | The used service in the jtel system, as configured in the "Name" field (database field ServiceNumbers.Name2) in the jtel system. |
AcdAgentGroupsName | The name of the agent group used in the jtel system. |
AcdConfigurationGroupsName | The name of the configuration group used in the jtel system. For standalone groups, this will be the same as the agent group name. |
dtCallStart | The date and time of the start of the call in the format YYYY-MM-DDThh:mm:ss (local jtel server time). |
dtCallAlert | The date and time of call ringing in the format YYYY-MM-DDThh:mm:ss (local jtel server time). This field can be empty, if no ringing occurs. |
dtCallConnect | The date and time of call connect in the format YYYY-MM-DDThh:mm:ss (local jtel server time). This field can be empty, if no connect occurs. |
dtCallEnd | The date and time of call end in the format YYYY-MM-DDThh:mm:ss (local jtel server time). This field can be empty, if no ringing occurs. |
nDuration | Duration of the call in seconds. -1 means no connection. 0 can mean a very short connection (< 500 ms) indeed. |
CONNRES | The result of the call 1 = Connection with agent |
Cause | The Q.850 cause for the end of the call. For example, 1 = invalid number, 16 = normal clearing, 17 = user busy. |
TransactionCodeExportKey | If a transaction code was recorded for the call, then this field will contain the export key of that transaction code. |
http Status Codes
The following status codes should be used:
Status Code | Meaning |
---|---|
200 – OK | Data was written |
409 – Conflict | Writing not possible due to a conflict in the data. Data should not be re-transmitted by the jtel system. |
423 – Locked | Writing not possible at this time. Data will be re-transmitted by the jtel system in this case. |
404 - Not found | Sales Force record not found. Data should not be re-transmitted by the jtel system. |