This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use List::Permutor; | |
use XML::Simple; | |
use Data::Dumper; | |
use strict; | |
use warnings; | |
use GD::Barcode::QRcode; | |
use File::Temp qw/ :mktemp /; | |
use Barcode::ZBar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BUILD_DIR := gen | |
# pandoc is a handy tool for converting between numerous text formats: | |
# http://johnmacfarlane.net/pandoc/installing.html | |
PANDOC := pandoc | |
# pandoc options | |
# Liberation fonts: http://en.wikipedia.org/wiki/Liberation_fonts | |
PANDOC_PDF_OPTS := --toc --chapters --base-header-level=1 --number-sections --template=virsto_doc.tex --variable mainfont="Liberation Serif" --variable sansfont="Liberation Sans" --variable monofont="Liberation Mono" --variable fontsize=12pt --variable documentclass=book | |
PANDOC_EBOOK_OPTS := --toc --epub-stylesheet=epub.css --epub-cover-image=cover.jpg --base-header-level=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/mod/applications/mod_cv/mod_cv.cpp b/src/mod/applications/mod_cv/mod_cv.cpp | |
index faee56f..f12ad00 100644 | |
--- a/src/mod/applications/mod_cv/mod_cv.cpp | |
+++ b/src/mod/applications/mod_cv/mod_cv.cpp | |
@@ -96,7 +96,7 @@ typedef struct cv_context_s { | |
struct detect_stats nestDetected; | |
int detect_event; | |
int nest_detect_event; | |
- switch_png_t *png; | |
+ switch_image_t *png; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# | |
# Diffusion youtube avec ffmpeg | |
# Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée. | |
VBR="2500k" # Bitrate de la vidéo en sortie | |
FPS="30" # FPS de la vidéo en sortie | |
QUAL="medium" # Preset de qualité FFMPEG | |
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/switch_core_codec.c b/src/switch_core_codec.c | |
index 8ba521d..e681768 100644 | |
--- a/src/switch_core_codec.c | |
+++ b/src/switch_core_codec.c | |
@@ -812,9 +812,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_codec_encode_video(switch_codec_t *c | |
if (frame->datalen) { | |
frame->packetlen = frame->datalen + 12; | |
- frame->flags |= SFF_SAME_IMAGE; | |
+ // frame->flags |= SFF_SAME_IMAGE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/mod/codecs/mod_vpx/mod_vpx.c b/src/mod/codecs/mod_vpx/mod_vpx.c | |
index ee7f7f6..0e91e7e 100644 | |
--- a/src/mod/codecs/mod_vpx/mod_vpx.c | |
+++ b/src/mod/codecs/mod_vpx/mod_vpx.c | |
@@ -409,6 +409,7 @@ static switch_status_t switch_vpx_encode(switch_codec_t *codec, switch_frame_t * | |
context->encoder.err, context->encoder.err_detail); | |
frame->datalen = 0; | |
+ frame->m = 1; | |
return SWITCH_STATUS_FALSE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <esl.h> | |
static void bridge_callback(esl_socket_t server_sock, esl_socket_t client_sock, struct sockaddr_in *addr, void *user_data) | |
{ | |
esl_handle_t handle = {{0}}; | |
esl_status_t status = ESL_SUCCESS; | |
const char *cid_name, *cid_number; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{application, psqlcp, [ | |
{description, "Postgresql connection pool with poolboy"}, | |
{vsn, "0.1"}, | |
{applications, [kernel, stdlib]}, | |
{modules, [psqlcp, psqlcp_worker]}, | |
{registered, [psqlcp]}, | |
{mod, {psqlcp, []}}, | |
{env, [ | |
{pools, [ | |
{fk, [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application | |
* Copyright (C) 2005/2012, Anthony Minessale II <anthm@freeswitch.org> | |
* | |
* Version: MPL 1.1 | |
* | |
* The contents of this file are subject to the Mozilla Public License Version | |
* 1.1 (the "License"); you may not use this file except in compliance with | |
* the License. You may obtain a copy of the License at | |
* http://www.mozilla.org/MPL/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
<extension name="400xx"> | |
<condition field="destination_number" expression="^400xx$"> | |
<action application="set" data="my_callback=xx"/> | |
<action application="park"/> | |
</condition> | |
</extension> | |
<extension name="ask_number"> | |
<condition field="destination_number" expression="^ask_number$"> |