https://www.example.com.https://www.example.com?SdkAppid=$SDKAppID&CallbackCommand=$CallbackCommand&contenttype=json&ClientIP=$ClientIP&OptPlatform=$OptPlatform
Parameter | Description |
https | The request protocol is HTTPS, and the request method is POST |
www.example.com | Callback URL |
SdkAppid | Assigned SDKAppID in the Chat console when creating an application |
CallbackCommand | Fixed as Call.CallbackAfterEndCall |
contenttype | The value is fixed as json |
ClientIP | Client IP address, in the format of 127.0.0.1 |
OptPlatform | Client platform. For the parameter values, see the description of the OptPlatform parameter in Third-Party Callback Introduction: Callback Protocol |
{"CallbackCommand":"Call.CallbackAfterEndCall","CallRecord": {"CallId": "055662e1-bc8a-469c-a334-1126c8c17d58","Caller_Account": "10001","MediaType": "Audio","CallType": "SingleCall","StartTime": 1741231146,"EndTime": 1741231296,"AcceptTime": 0,"CallResult": "NotAnswer","CalleeList_Account": ["10001", "user2"],"RoomId": "roomid-1434","RoomIdType": 2}"EventTime":1703589922780}
Field | Type | Description |
CallbackCommand | String | Callback command |
CallRecord | Struct | Call record information |
CallId | String | Call ID |
Caller_Account | String | Caller ID |
MediaType | String | Media type: Video video callAudio audio call |
CallType | String | Call type: SingleCall one-to-one callMultiCall group call |
StartTime | Integer | Call initiation timestamp (in seconds) |
EndTime | Integer | Call end timestamp (in seconds) |
AcceptTime | Integer | Call connection timestamp (in seconds) |
CallResult | String | Call result Cancel: Caller cancels the call before connecting.Reject: recipient decline the callNotAnswer: recipient timeout before answeringNormalEnd: Call connected and ended normallyCallBusy: call busyInterrupt: Call interrupted due to reasons such as network issuesOffline: The server detects heartbeat expiry, causing the call to end. |
CalleeList_Account | Array | Call Member List |
RoomId | String | TRTC Room ID |
RoomIdType | Integer | RoomId type: 1 Digit room number2 String room number |
EventTime | Integer | Event-triggered timestamp in milliseconds |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0 // Ignore the callback result.}
Field | Type | Required | Description |
ActionStatus | String | Required | Request processing result. OK: successful processing; FAIL: processing failed |
ErrorInfo | String | Required | Error message |
ErrorCode | Integer | Required | Error code. Enter 0 here to ignore the callback result |
Feedback