Platform/Framework | Version number |
Android/iOS/Flutter/uni-app (client) | ≥ 1.7.1 |
Web | ≥ 1.4.6 |
WeChat Mini Program | ≥ 1.5.1 |
https://www.example.com
.
Example:$http://www.example.com?sdkappid=$sdkappid&command=$command&contenttype=json&clientip=$clientip&optplatform=$optplatform
Parameter | Description |
http | Request protocol is HTTPS or HTTP, request method is POST |
www.example.com | Callback URL |
sdkappid | SDKAppID assigned by the Instant Messaging console when an application is created |
command | |
contenttype | Fixed value: json |
clientip | Client IP, such as 127.0.0.1 |
optplatform | Client platforms may include iOS, Android, Web, miniProgram |
POST /?sdkappid=8888888&command=caller_start_call&contenttype=json&clientip=127.0.0.1&optplatform=iOS HTTP/1.1Host: www.example.comContent-Length: 337{"UserId": "Alice","RoomId": "Alice's Room","TotalNum": 2,"MediaType": "audio","CallType": "single","CallId": "aheahfo-eqwnknoihfsd-qweqf","Role": "caller","Event": "start_call","CallResult": "","EventTime": 1704695566,"StartCallTs": 1704856873,"AcceptTs": 1704856876,"EndTs": 1704856885}
Field | Type | Description |
UserId | String | Operating User ID |
RoomId | String | Operating Room ID |
TotalNum | Integer | Number of Participants in Call |
CallType | String | Call Type: Single Audio CallGroup Video Call |
CallId | String | Call Unique ID |
Role | String | role : Caller User IDCallee User ID |
Event | String | Call Event: start_call Caller initiates callcall_accepted Caller answers callcall_missed Caller missed callcall_rejected Caller rejects callcall_busy Caller line busycancel_call Caller cancels callcall_failed Caller failed to initiate callcall_end Caller call ended normallycall_interrupted Caller call interruptedreceive_call Callee receives callaccept_call Callee answers callnot_answer_call Callee does not answerreject_call Callee rejects callignore_call Called party ignores callcall_canceled Called party cancels callcall_end Normal termination of called party's callcall_interrupted Called party's call abnormally interruptedinvite_user Midway invite userjoin_in_group_call Join the call midway |
StartCallTs | Integer | Timestamp when call is initiated (second-level) only returned on normal_end |
AcceptTs | Integer | Timestamp when call is answered (second-level) only returned on normal_end |
EndTs | Integer | Timestamp when call ends (second-level) only returned on normal_end |
normal_end
.
Was this page helpful?