"Stopped by session disconnect"

stone

New Member
We are having a issue streaming externally on customer network. We had all firewalls disabled and captured a good working internal scenario and a failed external scenario.

Logs are showing this when failing:

OBJECT:
{
"nodeId" : "mB8C1N1RLLpg0D1KI1xl87rX1RduM7BD@192.168.240.39",
"appKey" : "defaultApp",
"sessionId" : "rtsp://<removed>/live/e1dc747b-5589-4ebe-b856-1c0d4c939023-196fc872-b113-499f-9e5a-f8ad54079e9c",
"mediaSessionId" : "2f2aa4cb-ce59-4fc5-a59f-6b72b992f43c",
"name" : "rtsp://<removed>/live/e1dc747b-5589-4ebe-b856-1c0d4c939023",
"published" : true,
"hasVideo" : true,
"hasAudio" : false,
"status" : "FAILED",
"videoCodec" : "H264",
"info" : "Stopped by session disconnect",

OBJECT:
{
"nodeId" : "mB8C1N1RLLpg0D1KI1xl87rX1RduM7BD@192.168.240.39",
"appKey" : "defaultApp",
"sessionId" : "/24.91.252.32:55980/192.168.240.39:8443-9a85beb9-2e00-4518-8b8a-58bc1a04c87d",
"mediaSessionId" : "84522440-5750-11ee-9580-9f8dd72d25ab",
"name" : "rtsp:/<removed>/live/e1dc747b-5589-4ebe-b856-1c0d4c939023",
"published" : false,
"hasVideo" : true,
"hasAudio" : true,
"status" : "FAILED",
"audioCodec" : "opus",
"info" : "Stream failed",

Attached are the logs. I can gather more logs if needed or enable debug mode.
 

Attachments

Max

Administrator
Staff member
Good day.
Seems like in external-bad.txt the camera closes the connection by some network reason.
Please collect a report as described here, including client debug logs and traffic dump (mandatory):
1. Enable client debug logs
Code:
client_log_level=debug
2. Restart WCS
3. Start a traffic dump collection
Code:
tcpdump -npi any -B 10240 -w log.pcap
4. Reproduce a problem
5. Stop traffic dump collection
6. Collect a report: Getting logs with report.sh script
Send the report archive and traffic dump using this form.
 

Max

Administrator
Staff member
We checked the report.
RTSP stream itself is captured correctly and can be played successfully from traffic dump in the latest WCS build 5.2.1759. But in the server log there is Failed by ICE timeout message for the client session:
1695258251595.png

So you should check media ports availablility (31000-32000/udp according to server settings) from the client PC: Port routing checking
 

Max

Administrator
Staff member
Seems like both ip and ip_local addresses are in local network:
1695282589348.png

In this case, you cannot play anything from external network by WebRTC at all. Please set ip to an external IP address (and set up ports routing) and add the following parameter to the settings:
Code:
rtc_ice_add_local_interface=true
In this case, WebRTC should work both in local and external network.
 
Top