Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/call/find HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 70
Content-Type: application/json

{
"status" : "ESTABLISHED",
"rtmpUrl" : "rtmp://localhost:1935/live"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Tue, 28 Mar 2017 12:37:55 GMT

[{
"custom":{},
"nodeId":null,
"appKey":null,
"sessionId":null,
"callId":"MzEjol9dY-TIg9FpAy-J3YmhDbyY-g7w771EDq",
"parentCallId":null,
"incoming":false,
"status":"ESTABLISHED",
"sipStatus":200,
"rtmpUrl":"rtmp://localhost:1935/live",
"rtmpStream":"stream1",
"rtmpStreamStatus":"RTMP_STREAM_ACTIVE",
"caller":"001",
"callee":"005",
"hasAudio":true,
"hasVideo":true,
"sdp":null,
"visibleName":"001",
"inviteParameters":null,
"mediaProvider":"Flash",
"sipMessageRaw":null,
"isMsrp":false,
"target":null,
"holdForTransfer":false
}]


/call/terminate

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/call/terminate HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 53
Content-Type: application/json

{
"callId" : "becee2c0-13b4-11e7-b817-c1649197cae8"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Tue, 28 Mar 2017 12:48:29 GMT

...