Versions Compared

Key

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

...

Запрос

Ответ

>>

Code Block
languagejs
themeRDark
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
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Mon, 27 Mar 2017 03:23:54 GMT


 

/call/find_all

ЗапросОтвет

>>

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
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: application/json;charset=UTF-8 Date: Tue, 28 Mar 2017 12:13:24 GMT
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
   }
]


...