freeswitch

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
FS-10939 mod_cdr_mongodb: fix format truncation warnings with gcc 7

gcc 7 complains about possible format truncation:

mod_cdr_mongodb.c: In function 'my_on_reporting':

mod_cdr_mongodb.c:242:45: error: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 4 [-Werror=format-truncation=]

snprintf(idx_buffer, sizeof(idx_buffer), "%d", callflow_idx);

The char * idx_buffer has a size of 4 Bytes, and according to gcc's

calculation it is possible that up to 11 Bytes might be copied into it

via int bson_idx.

This commit adds an extra 8 Bytes to char * idx_buffer, which silences

the warnings.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>

FS-10939 mod_cdr_mongodb: fix format truncation warnings with gcc 7

gcc 7 complains about possible format truncation:

mod_cdr_mongodb.c: In function 'my_on_reporting':

mod_cdr_mongodb.c:242:45: error: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 4 [-Werror=format-truncation=]

snprintf(idx_buffer, sizeof(idx_buffer), "%d", callflow_idx);

The char * idx_buffer has a size of 4 Bytes, and according to gcc's

calculation it is possible that up to 11 Bytes might be copied into it

via int bson_idx.

This commit adds an extra 8 Bytes to char * idx_buffer, which silences

the warnings.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>

FS-10939 mod_cdr_mongodb: fix format truncation warnings with gcc 7

gcc 7 complains about possible format truncation:

mod_cdr_mongodb.c: In function 'my_on_reporting':

mod_cdr_mongodb.c:242:45: error: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 4 [-Werror=format-truncation=]

snprintf(idx_buffer, sizeof(idx_buffer), "%d", callflow_idx);

The char * idx_buffer has a size of 4 Bytes, and according to gcc's

calculation it is possible that up to 11 Bytes might be copied into it

via int bson_idx.

This commit adds an extra 8 Bytes to char * idx_buffer, which silences

the warnings.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>

[mod_blade] disable event/presence/logger and blade log

[mod_blade] blade debug on|off

[libblade] remove unused ip

    • -2
    • +1
    /libs/libblade/src/blade_transport_wss.c
[libblade] and twilio command to testcli

locate freeswitch

twilio {jid: ...}

[mod_blade] [mod_twiml] hook up blade and twiml

FS-10756: [libks] [libblade] Small fix for testcli

FS-10756: [libks] [libblade] More linux build fixes

FS-10756: [libks] [libblade] Another fix for building on linux

FS-10756: [libks] [libblade] Some typedef adjustments to compile on linux

disable faktory consumer to test sb_fs

Merge branch 'v2.0-lab' of https://freeswitch.org/stash/scm/fsp/freeswitch-lab into v2.0-lab

FS-10756: [libks] [libblade] Added sb_fs preliminary code to connect to faktory and blade based on configuration

    • -0
    • +32
    /libs/libblade/switchblade/master.cfg
    • -0
    • +33
    /libs/libblade/switchblade/sb_fs.cfg
    • -17
    • +19
    /libs/libblade/switchblade/switchblade.c
Merge pull request #1469 in FS/freeswitch from ~ARESKI/freeswitch:bugfix/verto_communicator_packagesjson to master

* commit 'be0c10d2e4715a42440665338993e047c960320e':

[fix](verto_communicator) add grunt-cli dependency to packages.json

Merge pull request #1464 in FS/freeswitch from ~BODJI/freeswitch:FS-10299-mod_callcenter-database-blocking to master

* commit 'b185cc6e2471bd83e560f9c75a5828537848418e':

FS-10299: [mod_callcenter] Add an option to disable global database lock on mod_callcenter

FS-6816 [mod_sofia] Set empty callee id if `_undef_`

In some scenarios (e.g. MetaSwitch interop) the `display` field of callee-id should be left empty instead of being overwritten with the number.

As is done in other places, we allow for `_undef_` to mean "leave the field empty".

FS-6816 [mod_sofia] Set empty callee id if `_undef_`

In some scenarios (e.g. MetaSwitch interop) the `display` field of callee-id should be left empty instead of being overwritten with the number.

As is done in other places, we allow for `_undef_` to mean "leave the field empty".

FS-6816 [mod_sofia] Set empty callee id if `_undef_`

In some scenarios (e.g. MetaSwitch interop) the `display` field of callee-id should be left empty instead of being overwritten with the number.

As is done in other places, we allow for `_undef_` to mean "leave the field empty".

FS-10913: [mod_sofia] ignore_early_media=ring_ready not transitioning #resolve

FS-10913: [mod_sofia] ignore_early_media=ring_ready not transitioning #resolve

FS-10913: [mod_sofia] ignore_early_media=ring_ready not transitioning #resolve

FS-10756: [libks] [libblade] Added initial dynamic module unloading to switchblade, will also automatically unload modules and cleanup global memory when ks_shutdown for the library occurs

    • -6
    • +10
    /libs/libblade/switchblade/switchblade.c
    • -16
    • +11
    /libs/libks/src/include/ks_dso.h
FS-10756: [libks] [libblade] Added initial dynamic module loading to switchblade, and an initial sb_fs module that can be loaded by "load sb_fs" after running switchblade, libs are now compiled and included dynamically to ensure libks and libblade among other libraries are shared in switchblade and any modules it loads

    • -248
    • +142
    /libs/libblade/libblade.sln
    • -0
    • +194
    /libs/libblade/switchblade/mod/sb_fs/sb_fs.vcxproj
    • -0
    • +26
    /libs/libblade/switchblade/mod/sb_fs/src/main.c
    • -0
    • +0
    /libs/libblade/switchblade/mod/sb_fs/src/main.h
    • -0
    • +16
    /libs/libblade/switchblade/switchblade.c
FS-10756: [libks] [libblade] Adjusted libconfig project to default build of Debug and Release as DLL's, removed static builds for now

FS-10756: [libks] [libblade] Adjusted PCRE project to default build of Debug and Release as DLL's, with new Debug Static projects for static builds

    • -50
    • +48
    /libs/win32/pcre/libpcre.2015.vcxproj
FS-10756: [libks] [libblade] Adjusted PCRE props for DLL so it works on windows

FS-10756: [libks] [libblade] Adjusted PCRE compiling for DLL so it works on windows

Merge pull request #1470 in FS/freeswitch from ~MOCHOUINARD/freeswitch:bugfix/FS-10496-speedup-javascript-enabling-code to master

* commit '3d9365edbb7bab59a6b047930329e33013d2eb5a':

FS-10496: [mod_v8] Fixing regression from FS-10496 when no settings exist in v8.conf.