Skip to content

Instantly share code, notes, and snippets.

View mirkobrankovic's full-sized avatar

Mirko Brankovic mirkobrankovic

  • Netherlands, Amstelveen
View GitHub Profile
Length of buffer: 2404
----------------------------------------------------------------------------------------------------------
Total packets: 5
----------------------------------------------------------------------------------------------------------
Packet No: 1
----------------------------------------------------------------------------------------------------------
offset: 0
----------------------------------------------------------------------------------------------------------
bytesToSend: 512
----------------------------------------------------------------------------------------------------------
@mirkobrankovic
mirkobrankovic / client.c
Created October 8, 2019 09:15
client_sender
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
@mirkobrankovic
mirkobrankovic / server.c
Created October 8, 2019 09:14
server listener
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#define PORT 5000
type: offer, sdp: v=0
o=- 1559818684145225 1 IN IP4 89.184.190.20
s=VideoRoom 1892049820
t=0 0
a=group:BUNDLE video
a=msid-semantic: WMS janus
m=video 9 UDP/TLS/RTP/SAVPF 107
c=IN IP4 89.184.190.20
a=sendonly
a=mid:video
@mirkobrankovic
mirkobrankovic / FS-Janus.txt
Last active May 24, 2019 12:46
janus Offer/Answer
[Fri May 24 12:38:02 2019] [655502314824532] There's a message for JANUS AudioBridge plugin
[Fri May 24 12:38:02 2019] [655502314824532] Remote SDP:
v=0
o=FreeSWITCH 1558678541 1558678544 IN IP4 192.168.64.31
s=FreeSWITCH
c=IN IP4 192.168.64.31
t=0 0
a=msid-semantic: WMS TJc5jLmI42v0zekBSo9N5jcZHfbGBSKl
m=audio 22928 RTP/SAVPF 102
a=rtpmap:102 opus/48000/2
@mirkobrankovic
mirkobrankovic / fs_deps_build.txt
Last active November 7, 2018 13:39
Freeswitch dependencies
apt-get install autoconf automake devscripts gawk g++ git-core libjpeg-dev \
libncurses5-dev libtool libtool-bin make python-dev gawk pkg-config libtiff5-dev \
libperl-dev libgdbm-dev libdb-dev gettext libssl-dev libcurl4-openssl-dev \
libpcre3-dev libspeex-dev libspeexdsp-dev libsqlite3-dev libedit-dev bison \
libldns-dev libshout3-dev liblua5.2-dev libmp4v2-dev yasm nasm libhiredis-dev \
libmpg123-dev libpcre3-dev libmp3lame-dev libsndfile-dev zlib1g-dev libopus-dev
# The -j argument spawns multiple threads to speed the build process, but causes trouble on some systems
./bootstrap.sh -j