Skip to content

Instantly share code, notes, and snippets.

View alfredh's full-sized avatar

Alfred E. Heggestad alfredh

View GitHub Profile
CC /Users/alfredh/git/baresip-ios/build/aarch64/libre/sip/addr.o
CC /Users/alfredh/git/baresip-ios/build/aarch64/libre/sip/auth.o
CC /Users/alfredh/git/baresip-ios/build/aarch64/libre/sip/contact.o
CC /Users/alfredh/git/baresip-ios/build/aarch64/libre/sip/cseq.o
CC /Users/alfredh/git/baresip-ios/build/aarch64/libre/sip/ctrans.o
CC /Users/alfredh/git/baresip-ios/build/aarch64/libre/sip/dialog.o
CC /Users/alfredh/git/baresip-ios/build/aarch64/libre/sip/keepalive.o
CC /Users/alfredh/git/baresip-ios/build/aarch64/libre/sip/keepalive_udp.o
CC /Users/alfredh/git/baresip-ios/build/aarch64/libre/sip/msg.o
CC /Users/alfredh/git/baresip-ios/build/aarch64/libre/sip/reply.o
diff --git a/modules/x11/x11.c b/modules/x11/x11.c
index a11148a..c101816 100644
--- a/modules/x11/x11.c
+++ b/modules/x11/x11.c
@@ -160,6 +160,7 @@ static int x11_reset(struct vidisp_st *st, const struct vidsz *sz)
XGCValues gcv;
size_t bufsz, pixsz;
int err = 0;
+ bool try_shm;
/**
* @file mediadev.c Media device
*
* Copyright (C) 2010 - 2018 Creytiv.com
*/
#include <re.h>
#include <baresip.h>
static void destructor(void *data)
diff --git a/src/ua.c b/src/ua.c
index ef24b9b..bef9479 100644
--- a/src/ua.c
+++ b/src/ua.c
@@ -30,6 +30,8 @@ struct ua {
int af_media; /**< Preferred Address Family for media */
enum presence_status my_status; /**< Presence Status */
bool catchall; /**< Catch all inbound requests */
+ struct list hdr_filter; /**< Filter for incoming headers */
+ struct list *custom_hdrs; /**< List of outgoing headers */
diff --git a/src/sip/transp.c b/src/sip/transp.c
index dd3b7c4..bb9f6d6 100644
--- a/src/sip/transp.c
+++ b/src/sip/transp.c
@@ -459,6 +459,14 @@ static void tcp_estab_handler(void *arg)
struct le *le;
int err;
+ {
+ struct sa laddr;
diff --git a/include/baresip.h b/include/baresip.h
index f6d636e..2dd15f5 100644
--- a/include/baresip.h
+++ b/include/baresip.h
@@ -620,6 +620,8 @@ enum ua_event {
UA_EVENT_CALL_DTMF_END,
UA_EVENT_CALL_RTCP,
UA_EVENT_CALL_MENC,
+ UA_EVENT_VU_TX,
+ UA_EVENT_VU_RX,
@alfredh
alfredh / test-perc.c
Created March 16, 2018 11:44
Simple test program for SRTP Double Encryption
/*
* Simple test program for SRTP Double Encryption
*
* https://tools.ietf.org/html/draft-ietf-perc-double-08
*
*
* To build and run the program, fetch libre from github
* and put this file as test.c
*
* git clone https://github.com/creytiv/re.git
@alfredh
alfredh / baresip.diff
Created January 8, 2018 10:46
SR branches
diff --git a/.travis.yml b/.travis.yml
index 093f30f..1074af5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,7 +19,7 @@ addons:
libssl-dev
install:
- - git clone https://github.com/creytiv/re.git
+ - git clone -b sr https://github.com/creytiv/re.git
From 49834b7afd0fe31660108271ef7657a34caa6a6d Mon Sep 17 00:00:00 2001
From: "Alfred E. Heggestad" <[email protected]>
Date: Sat, 7 Oct 2017 15:49:44 +0200
Subject: [PATCH] main: keep fd handlers in list
Experimental code in order to try to solve
sockets for Windows. On windows the "int fd" is actually
of type "SOCKET fd" and the range goes from 0 to very large.
ref #61
@alfredh
alfredh / v4l2.txt
Created July 22, 2017 14:45
v4l2 dump Logitech C920
$ v4l2-ctl -D --list-formats
Driver Info (not using libv4l2):
Driver name : uvcvideo
Card type : HD Pro Webcam C920
Bus info : usb-0000:00:14.0-4
Driver version: 4.9.30
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format