Skip to content

Instantly share code, notes, and snippets.

View asticode's full-sized avatar

Quentin Renard asticode

View GitHub Profile
@asticode
asticode / main.go
Created March 21, 2020 10:17
astilectron demo for development purposes
package main
import (
"encoding/json"
"flag"
"fmt"
"log"
"os"
"time"
@asticode
asticode / main.go
Last active January 12, 2020 17:04
astibob worker #3
package main
import (
"flag"
"fmt"
"log"
"github.com/asticode/go-astibob"
"github.com/asticode/go-astibob/abilities/audio_input"
"github.com/asticode/go-astibob/abilities/speech_to_text"
@asticode
asticode / main.go
Last active January 12, 2020 17:04
astibob worker #2
package main
import (
"flag"
"fmt"
"log"
"github.com/asticode/go-astibob"
"github.com/asticode/go-astibob/abilities/audio_input"
"github.com/asticode/go-astibob/abilities/audio_input/portaudio"
@asticode
asticode / main.go
Last active January 12, 2020 17:03
astibob worker #1
package main
import (
"flag"
"fmt"
"log"
"sync"
"github.com/asticode/go-astibob"
"github.com/asticode/go-astibob/abilities/text_to_speech"
@asticode
asticode / main.go
Last active January 12, 2020 17:03
astibob index
package main
import (
"flag"
"fmt"
"log"
"github.com/asticode/go-astibob"
"github.com/asticode/go-astibob/index"
)
[general]
configs_folder = /opt/janus/etc/janus
plugins_folder = /opt/janus/lib/janus/plugins
transports_folder = /opt/janus/lib/janus/transports
events_folder = /opt/janus/lib/janus/events
debug_level = 7
[media]
rtp_port_range = 10000-10200
(gdb) bt
#0 0x00007f34bec5acee in priv_conn_keepalive_tick_unlocked (agent=agent@entry=0x562338179040) at conncheck.c:1303
#1 0x00007f34bec5b3d7 in priv_update_selected_pair (agent=agent@entry=0x562338179040, component=component@entry=0x56233817cca0, pair=pair@entry=0x5623381a0e40) at conncheck.c:1749
#2 0x00007f34bec5ff40 in priv_map_reply_to_conn_check_request (resp=0x7f34bf1e1be0, remote_candidate=0x562338177ea0, local_candidate=0x562338177ab0, from=0x7f34bf1e2660, sockptr=0x562338174de0, component=0x56233817cca0, stream=0x56233817c640, agent=<optimized out>) at conncheck.c:3252
#3 0x00007f34bec5ff40 in conn_check_handle_inbound_stun (agent=agent@entry=0x562338179040, stream=stream@entry=0x56233817c640, component=component@entry=0x56233817cca0, nicesock=0x562338174de0, from=0x7f34bf1e2660, buf=buf@entry=0x562338193440 "\001\001", len=64) at conncheck.c:4246
#4 0x00007f34bec56daa in agent_recv_message_unlocked (agent=agent@entry=0x562338179040, stream=stream@entry=0x56233817c640, component=component@en
New connection on REST API: ::ffff:10.0.0.6
[transports/janus_http.c:janus_http_handler:1166] Got a HTTP POST request on /janus...
[transports/janus_http.c:janus_http_handler:1167] ... Just parsing headers for now...
[transports/janus_http.c:janus_http_headers:1777] X-Real-IP: 10.255.0.2
[transports/janus_http.c:janus_http_headers:1777] X-Forwarded-For: 10.255.0.2
[transports/janus_http.c:janus_http_headers:1777] Host: event-janus.livemix.local
[transports/janus_http.c:janus_http_headers:1777] Connection: close
[transports/janus_http.c:janus_http_headers:1777] Content-Length: 46
[transports/janus_http.c:janus_http_headers:1777] origin: https://bo.livemix.local
[transports/janus_http.c:janus_http_headers:1777] user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/71.0.3578.98 Chrome/71.0.3578.98 Safari/537.36
Janus commit: f7b02e767debae86f1cea9880e3e29162bb79d30
Compiled on: Mon Feb 25 21:11:56 UTC 2019
Failed to load /opt/janus/etc/janus/janus.jcfg, trying the INI instead...
[ERR] [config.c:janus_config_parse:191] -- Error reading configuration file 'janus.jcfg'... error 2 (No such file or directory)
---------------------------------------------------
Starting Meetecho Janus (WebRTC Server) v0.6.1
---------------------------------------------------
Checking command line arguments...
(gdb) bt
#0 0x00007fe615e2796b in priv_conn_keepalive_tick_unlocked (agent=agent@entry=0x564d22c940a0) at conncheck.c:835
#1 0x00007fe615e28074 in priv_update_selected_pair (agent=agent@entry=0x564d22c940a0, component=component@entry=0x564d22c96b20, pair=0x564d22caa880) at conncheck.c:1433
#2 0x00007fe615e2bac8 in priv_map_reply_to_conn_check_request (resp=0x7fe6163abbf0, remote_candidate=0x564d22c91f30, local_candidate=0x564d22c91b40, from=0x7fe6163ac660, sockptr=0x564d22c9e750, component=0x564d22c96b20, stream=0x564d22c966a0, agent=<optimized out>) at conncheck.c:2752
#3 0x00007fe615e2bac8 in conn_check_handle_inbound_stun (agent=agent@entry=0x564d22c940a0, stream=stream@entry=0x564d22c966a0, component=component@entry=0x564d22c96b20, nicesock=0x564d22c9e750, from=0x7fe6163ac660, buf=buf@entry=0x564d22c8c480 "\001\001", len=64) at conncheck.c:3681
#4 0x00007fe615e2403a in agent_recv_message_unlocked (agent=agent@entry=0x564d22c940a0, stream=stream@entry=0x564d22c966a0, component=component@entry=0x564d22