Skip to content

Add rt cstats - #137

Merged
nicotyze merged 12 commits into
mainfrom
Add_RTCstats
Oct 16, 2026
Merged

nicotyze merged 12 commits into
mainfrom
Add_RTCstats

Conversation

@daimoc

@daimoc daimoc commented Oct 15, 2026

Copy link
Copy Markdown
Member

Add RTCSTATS_ENABLED an environment variable to load RTCstats library as Chrome extension at Chrome startups to capture all WebRTC starts and send it to a specified rtcStats server defined in env variable RTCSTATS_SERVER_URL.

This PR also provide 2 simple bash command to start a light local SIPMediaGW test environment for linux dev host in test/environnement/local folder.

daimoc and others added 12 commits October 12, 2026 15:28
…ugh CDP

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
setSinkId tracing is optional: no rtcstats release exports it yet.
The close function is defined before any wrap so a frame whose
setup fails halfway can still close its socket.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y tab

The CDP script only applied to the first tab: BBB ESR and Webinaire run
the meeting in a tab they open, which got no trace. An unpacked
extension (MAIN world, document_start, all frames) covers every tab and
frame; the trace is closed in every tab at call end.

A server URL without ws:// or wss:// is refused, and a tracing error
inside the page no longer reaches the meeting's WebRTC calls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kamailio, TURN, MySQL and one gateway on the host, with v4l2loopback
devices from /dev/video10 (webcams keep video0..), HOST_IP from the
default route instead of docker0, and the branch image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
127.0.0.1 inside gw0 is the container itself, so the gateway could not
register with Kamailio (Connection refused).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The desktop's DISPLAY reached the gateway, which then skipped its web
display and looked for the host X server: Chrome exited at session start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Same as SIPMediaGW.sh --loop: a docker events watcher recreates gw0 when
it exits; stop.sh kills the watcher first so stopping does not restart it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… address

With the gw_net gateway as HOST_IP, a softphone on the host sent its RTP
from 192.168.92.1 while advertising its default-route address, so coturn
had no permission for it and dropped all media towards the gateway.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A softphone on the host signed sip:bob@HOST_IP, which Kamailio takes for
a local subscriber: its INVITE was challenged with 407.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nicotyze
nicotyze merged commit e8b5e38 into main Oct 16, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants