Versions Compared

Key

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

...

ЗапросОтвет

>>

Code Block
languagejs
themeRDark
POST /rest-api/call/find_all HTTP/1.1
Host: 192.168.1.101:9091
Content-Length: 0
Content-Type: application/json


<<

Code Block
languagejs
themeRDark
[
   {
      "custom": {{

      },
      "nodeId":null,
      "appKey":null,
      "sessionId":null,
      "callId":"83077OWQzZTRkNzIzNjk1NTI5NmUwZWFlOGU1MWU0NDVkN2U",
      "parentCallId":null,
      "incoming":true,
      "status":"ESTABLISHED",
      "sipStatus":null,
      "rtmpUrl":null,
      "rtmpStream":null,
      "rtmpStreamStatus":null,
      "caller":"005",
      "callee":"001",
      "hasAudio":true,
      "hasVideo":true,
      "sdp":".....",
      "visibleName":"005",
      "inviteParameters":null,
      "mediaProvider":"WebRTC",
      "sipMessageRaw":".....",
      "isMsrp":false,
      "target":null,
      "holdForTransfer":false
   },
   {
      "custom":{

      },
      "nodeId":null,
      "appKey":null,
      "sessionId":null,
      "callId":"e9516680-13af-11e7-af37-05c788b22e35",
      "parentCallId":null,
      "incoming":false,
      "status":"RING",
      "sipStatus":180,
,
      "rtmpUrl":null,
      "rtmpStream":null,
      "rtmpStreamStatus":null,
      "caller":"002",
      "callee":"005",
      "hasAudio":true,
      "hasVideo":false,
      "sdp":null,
      "visibleName":"002",
      "inviteParameters":null,
      "mediaProvider":"WebRTC",
      "sipMessageRaw":null,
      "isMsrp":false,
      "target":null,
      "holdForTransfer":false
   }
]









/call/find 

Запрос

Ответ

>>

Code Block
languagejs
themeRDark
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
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
   }
]


...