Redirecting a stream published on server

1. For the test we use:

2. Run the RTMP stream broadcast program. Configure and start broadcasting to your WCS server using the following parameters:
URL of the server: http://demo.flashphoner.com:1935/live/
Stream key: obsStream

3. Open the REST client. Send the /call/startup query to the WCS server, and in the query parameters specify the following:


4. Receive the call in the softphone:

5. From the REST client send the /call/inject_stream query to the WCS server and specify the following parameters:


Make sure the audio track of the broadcast can be heard in the softphone.

6. To terminate the call, click the corresponding button in the softphone.

Injecting stream from file

VOD stream from file can be injected to SIP call. If there is video in file, and hasVideo parameter set for the call, video also will be injected. To do this, file name should be set as strem name:

{
  "callId":"123456711",
  "streamName": "vod://file.mp4"
}

Stopping stream injection

To stop stream injection to SIP call, send the followin REST query

/call/inject_stream/terminate
{
  "callId":"123456711"
}