Skip to content

Instantly share code, notes, and snippets.

View willbarrett's full-sized avatar
💭
🚀

Will Barrett willbarrett

💭
🚀
View GitHub Profile
[1903031909] There's a message for JANUS AudioBridge plugin
2015/07/16 16:08:52 janus event: janus.Event{Janus:"event", PluginData:(*janus.PluginData)(0xc2101ef100), Sender:1903031909, SessionId:1, Jsep:(*webrtc.Jsep)(nil), Transaction:"", Error:(*janus.Error)(nil)}
[1903031909] There's a message for JANUS AudioBridge plugin
[1903031909] Creating ICE agent (ICE Full mode, controlled)
[1903031909] ICE send thread started...
[1903031909] Done! Ready to setup remote candidates and send connectivity checks...
2015/07/16 16:08:52 janus event: janus.Event{Janus:"event", PluginData:(*janus.PluginData)(0xc2101e91e0), Sender:1903031909, SessionId:1, Jsep:(*webrtc.Jsep)(0xc2101e9280), Transaction:"", Error:(*janus.Error)(nil)}
2015/07/16 16:08:52 handling answer: &webrtc.Jsep{Sdp:"v=0\r\no=- 3889168297633 3889168297633 IN IP4 127.0.0.1\r\ns=Room 2437932623\r\nt=0 0\r\na=group:BUNDLE audio\r\na=msid-semantic: WMS janus\r\nm=audio 1 RTP/SAVPF 111\r\nc=IN IP4 52.6.135.102\r\na=mid:audio\r\na=sendrecv\r\na=rtcp-mux\na=ice-
[936655459] There's a message for JANUS AudioBridge plugin
[936655459] Creating ICE agent (ICE Full mode, controlled)
[936655459] ICE send thread started...
[936655459] Done! Ready to setup remote candidates and send connectivity checks...
[936655459] The DTLS handshake has been completed
WebRTC media is now available
Cleaning up handle 1249876361...
[1249876361] WebRTC resources freed
[1249876361] Handle and related resources freed
No more remote candidates for handle 936655459!
@willbarrett
willbarrett / gist:c6f415bbcb684eafa3be
Created July 16, 2015 16:12
Janus error with line numbers
No WebRTC media anymore
=================================================================
[1903031909] ICE send thread leaving...
==23107== ERROR: AddressSanitizer: heap-use-after-free on address 0x6006005557f0 at pc 0x7f4d6d0e702b bp 0x7f4d1c0e94b0 sp 0x7f4d1c0e94a8
READ of size 8 at 0x6006005557f0 thread T964 (ice thread)
#0 0x7f4d6d0e702a in janus_audiobridge_hangup_media /home/ubuntu/janus-gateway/plugins/janus_audiobridge.c:1558
#1 0x41cac3 in janus_dtls_callback.part.0 /home/ubuntu/janus-gateway/dtls.c:573
#2 0x7f4d8262147e (/lib/x86_64-linux-gnu/libssl.so.1.0.0+0x3247e)
#3 0x7f4d8260e1d3 (/lib/x86_64-linux-gnu/libssl.so.1.0.0+0x1f1d3)
#4 0x420a7e in janus_dtls_srtp_incoming_msg /home/ubuntu/janus-gateway/dtls.c:314
==19230== Memcheck, a memory error detector
==19230== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==19230== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
==19230== Command: /opt/janus/bin/janus --config=/opt/janus/etc/janus/janus.cfg --configs-folder=/opt/janus/etc/janus --port=8088 --no-websockets --admin-port=7088 --debug-level=4 --rtp-port-range=
==19230== Parent PID: 19224
==19230==
==19230==
==19230== HEAP SUMMARY:
==19230== in use at exit: 635,962 bytes in 4,374 blocks
==19230== total heap usage: 7,134 allocs, 2,760 frees, 2,326,311 bytes allocated
@willbarrett
willbarrett / gist:3e15e17cd24c52d4c6a7
Created July 14, 2015 18:02
Janus crash on audioroom destroy
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `--config /opt/janus/etc/janus/janus.cfg --configs-folder=/opt/janus/etc/janus -'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000000000043cda5 in janus_push_event (handle=0x9c090090026f80,
plugin=0x7fa49059f320 <janus_audiobridge_plugin>, transaction=0x0,
message=0x7fa48c176160 "{\n \"audiobridge\": \"destroyed\",\n \"room\": 1471505503\n}",
sdp_type=0x0, sdp=0x0) at janus.c:3499
3499 if(!handle || handle->stopped)
(gdb) bt
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `--config /opt/janus/etc/janus/janus.cfg --configs-folder=/opt/janus/etc/janus -'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f087820bd28 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) bt
#0 0x00007f087820bd28 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1 0x00007f0862764349 in janus_audiobridge_hangup_media (handle=handle@entry=0x1cdedd0)
at plugins/janus_audiobridge.c:1499
#2 0x00007f0862764b45 in janus_audiobridge_destroy_session (handle=0x1cdedd0,
@willbarrett
willbarrett / gist:30ee2c0d83f7e1037d26
Created November 19, 2014 18:21
Track all intervals
window.originalSetInterval = window.setInterval;
window.activeIntervals = 0;
window.activeIntervalList = {};
window.setInterval = function(func, delay, identifier) {
var interval = window.originalSetInterval(func, delay);
window.activeIntervalList[interval] = {ident: identifier, func: func, delay: delay};
return interval;
};
window.originalClearInterval = window.clearInterval;
{
"action": "Joined",
"payload": {
"handle_id": 2570490266,
"id": 494,
"janus_room_id": 2895897935,
"session_id": 1,
"session_port": 8089,
"users": [
{
@willbarrett
willbarrett / gist:44dea0951f5e67251a4b
Created July 15, 2014 14:21
Debug output from Janus
Got a HTTP POST request on /janus/1/77213617...
... parsing request...
Session: 1
Handle: 77213617
Processing POST data (application/json)...
-- Uploaded data (153 bytes)
-- Data we have now (153 bytes)
Got a HTTP POST request on /janus/1/77213617...
... parsing request...
Session: 1
@willbarrett
willbarrett / gist:40ecda4af714d9a65c38
Created July 2, 2014 15:53
Sample STP from Janus
"v=0\r\no=- 7052933919468865461 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE audio video\r\na=msid-semantic: WMS HAp5tz34SpsUmg8YKJQ2j7X2BhroAA7DiAhE\r\nm=audio 1 RTP/SAVPF 111 103 104 0 8 126\r\nc=IN IP4 0.0.0.0\r\na=rtcp:1 IN IP4 0.0.0.0\r\na=ice-ufrag:IlXRDrISPbIX7NIY\r\na=ice-pwd:R93GsYxSsrh9E3QFwoAl9yFa\r\na=ice-options:google-ice\r\na=fingerprint:sha-256 FC:38:40:3D:C2:DC:CF:59:73:89:AF:10:53:95:C2:2B:FA:3B:C7:D3:06:F6:DD:30:CC:DB:94:D6:50:EF:9C:81\r\na=setup:actpass\r\na=mid:audio\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\na=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=sendrecv\r\na=rtcp-mux\r\na=rtpmap:111 opus/48000/2\r\na=fmtp:111 minptime=10\r\na=rtpmap:103 ISAC/16000\r\na=rtpmap:104 ISAC/32000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:126 telephone-event/8000\r\na=maxptime:60\r\na=ssrc:1457780410 cname:OmS37p2tGAt0xy0X\r\na=ssrc:1457780410 msid:HAp5tz34SpsUmg8YKJQ2j7X2BhroAA7DiAhE 23e7f4e9-3d99-4658-96ec-3d453bc2c4bf\r\na=ssrc