...
Запрос | Ответ |
---|
>> Code Block |
---|
| POST /rest-api/call/startup HTTP/1.1
HOST: 192.168.1.59:9091
content-length: 417
content-type: application/json
{
"callId":"123456711",
"callee":"10000",
"rtmpUrl":"rtmp://localhost:1935/live",
"rtmpStream":"stream1",
"hasAudio":"true",
"hasVideo":"true",
"sipLogin":"10009",
"sipAuthenticationName":"10009",
"sipPassword":"1234",
"sipDomain":"226.226.225.226",
"sipOutboundProxy":"226.226.225.226",
"sipPort":"5060",
"appKey":"defaultApp",
"sipRegisterRequired":"false"
} |
| << Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Mon, 27 Mar 2017 03:23:54 GMT |
|
...
Запрос | Ответ |
---|
>> Code Block |
---|
| POST /rest-api/call/find HTTP/1.1
Host: 192.168.1.101:9091
Content-Length: 70
Content-Type: application/json
{
"status" : "ESTABLISHED",
"rtmpUrl" : "rtmp://localhost:1935/live"
}
|
| << Code Block |
---|
| 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 "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 |
---|
| POST /rest-api/call/terminate HTTP/1.1
Host: 192.168.1.101:9091
Content-Length: 53
Content-Type: application/json
{
"callId" : "becee2c0-13b4-11e7-b817-c1649197cae8"
} |
| << Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Tue, 28 Mar 2017 12:48:29 GMT |
|
...
Запрос | Ответ |
---|
Code Block |
---|
| POST /rest-api/pull/terminate HTTP/1.1
HOST: 192.168.1.101:9091
content-type: application/json
content-length: 31
{
"uri": "wss://demo.flashphoner.com:8443"
} |
|
Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 24 Nov 2017 14:55:35 GMT |
|
{ "callId":"123456711", "callee":"10000", "rtmpUrl":"rtmp://localhost:1935/live", "rtmpStream":"stream1", "hasAudio":"true", "hasVideo":"true", "sipLogin":"10009", "sipAuthenticationName":"10009", "sipPassword":"1234", "sipDomain":"226.226.225.226", "sipOutboundProxy":"226.226.225.226", "sipPort":"5060", "appKey":"defaultApp", "sipRegisterRequired":"false"}