35121 Commits

Author SHA1 Message Date
Sebastian Kemper
70d1cbafe4 [gentls_cert] Update message digest
Debian Buster updated /etc/ssl/openssl.cnf to default to

MinProtocol = TLSv1.2
CipherString = DEFAULT@SECLEVEL=2

gentls_cert currently uses SHA1 as message digest. According to OpenSSL
documentation this only offers 80 bit of security. 80 bits is enough for
security level 1, but not 2.

The OpenSSL default MD nowadays is SHA256. This commit updates
gentls_cert to use it.

Issue was reported on the FS mailing list. The certificates created by
gentls_cert caused "md too weak" errors and clients were unable to
connect.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-11-13 20:40:42 +01:00
Andrey Volk
f8dc87bd18 [mod_event_socket] Fix "Listener session is null" problem - regression from previous commit to the mod. 2019-11-13 19:28:25 +04:00
Piotr Gregor
b0f09fcff2 [mod_avmd] Unlock and close session if adding a media bug fails 2019-11-12 21:29:29 +04:00
Dragos Oancea
a2b46bcf10 [core] Do not try to close a file handle if it's not SWITCH_FILE_OPEN, return SWITCH_STATUS_FALSE instead 2019-11-12 03:18:23 +04:00
Andrey Volk
a288c3d969
Merge pull request #117 from lazedo/kazoo-ctx
[mod_kazoo] recurse context runtime vars
2019-11-12 01:25:14 +04:00
Dragos Oancea
60746cc07c [mod_tts_commandline, mod_sndfile] fix crash on file not found 2019-11-11 23:02:21 +04:00
Vallimamod Abdullah
7f63483138 [mod_event_socket] Add null pointer checks on listener session and socket 2019-11-11 22:58:18 +04:00
lazedo
3c6d47c293 [mod_kazoo] recurse context runtime vars 2019-11-11 18:09:26 +00:00
Areski Belaid
647ed310e5 [mod_callcenter] Unreserve callcenter events when config errors loading 2019-11-11 20:23:20 +04:00
Andrey Volk
7861ec937e
Merge pull request #64 from cdosoftei/amqp-reconnect
[mod_amqp] open logging and produced connections from within their threads
2019-11-11 20:11:59 +04:00
Andrey Volk
55afe220d3
Merge pull request #71 from cdosoftei/amqp-queue-properties
[mod_amqp] configurable commands queue properties
2019-11-11 20:11:30 +04:00
Andrey Volk
00cbf0ea37
Merge pull request #112 from lazedo/kazoo-cfw
[mod_kazoo] add kz-endpoint-runtime-context
2019-11-08 18:10:32 +04:00
lazedo
998e322f46 [mod_kazoo] add kz-endpoint-runtime-context 2019-11-07 22:42:28 +00:00
Andrey Volk
aa2df4f3f8
Merge pull request #90 from lazedo/k-header
[mod_sofia] add K- to prefixes that create a sip_h_ variable
2019-10-31 20:50:05 +04:00
Andrey Volk
5705290f8d
Merge pull request #89 from lazedo/sofia-auth-query
[mod_sofia] add existing variables when locating user
2019-10-31 20:33:55 +04:00
Andrey Volk
2ace196aa6
Merge pull request #86 from lazedo/kazoo-updates
[mod_kazoo] several fixes & code cleanup
2019-10-31 20:30:39 +04:00
lazedo
506bcd280d [core] allow event-channel debugging & single delivery 2019-10-31 12:41:47 +00:00
lazedo
b4373c6666 [mod_sofia] add K- to prefixes that create a sip_h_ variable
used by sip tracing tools and not to confuse with application (X-) or (P-)
2019-10-31 12:27:21 +00:00
lazedo
f77484b96d [mod_sofia] add existing variables when locating user 2019-10-31 12:20:33 +00:00
lazedo
8d2174d707 [mod_kazoo] several fixes & code cleanup 2019-10-31 11:06:16 +00:00
Andrey Volk
c76a8c5458 swigall 2019-10-30 17:25:47 +00:00
Chris Rienzo
1442186cee [core] Update switch_ivr_bridge_bleg to skip audio bridge during transfer 2019-10-30 21:08:03 +04:00
Seven Du
8aafff281b [Core] Make switch_ivr_orig_and_bridge function return status and a cause. 2019-10-30 21:07:54 +04:00
Dragos Oancea
45219aef6f [mod_sndfile] don't force channels and sample rate with .raw extension 2019-10-29 21:47:22 +04:00
Andrey Volk
31d6676706
Merge pull request #72 from andywolk/verto
[mod_verto] Ignore not just zero but negative frame size as well.
2019-10-25 02:10:27 +04:00
Andrey Volk
0e3d8c00ba
Merge pull request #73 from signalwire/osx-catalina-build
[build] fix libvpx osx build detection on newer compilers and osx versions so we use sse extensions on newer versions
2019-10-24 00:37:07 +04:00
Mike Jerris
07c6ad5e1a [build] fix libvpx osx build detection on newer compilers and osx versions so we use sse extensions on newer versions 2019-10-23 13:54:09 -06:00
Andrey Volk
311a20af63 [mod_verto] Ignore not just zero but negative frame size as well. 2019-10-23 23:03:18 +04:00
Andrey Volk
284d67738a
Merge pull request #70 from signalwire/osx-catalina-build
[build] OSX Catalina configure does not support --extra-cflags and fix broken compiler option test for -Wno-extended-offsetof that was used to fix older osx clang issue
2019-10-23 03:18:54 +04:00
cdosoftei
5244a64d4e
[mod_amqp] configurable commands queue properties 2019-10-22 15:22:00 -04:00
Mike Jerris
6a900a90a3 [build] OSX Catalina configure does not support --extra-cflags and fix broken compiler option test for -Wno-extended-offsetof that was used to fix older osx clang issue 2019-10-22 10:24:14 -06:00
Sebastian Kemper
167294ea26 [mod-sofia] Fix reINVITE after T38 is rejected
From FS-11833.

After FS sends a reINVITE to T38 which gets rejected by peer it is no
longer in a state where it can properly answer a reINVITE which requests
a change of the media setup.

1. FS sends INVITE (destination is a fax machine)
2. Call connects with "8 101"
3. FS sends reINVITE to T38
4. T38 rejected (488)
5. FS receives INVITE to "8"
6. FS replies with 200 OK without SDP
7. Call fails

The bug is related to TFLAG_SDP. This flag is set when a media session
is established. And when there's a reINVITE sofia_glue_do_invite() from
sofia_glue.c is called and clears the flag again:

sofia_clear_flag_locked(tech_pvt, TFLAG_SDP);

So when FS sends a reINVITE to T38 the flag gets cleared. But when the
reINVITE is rejected with 488 the flag is not set again. It stays
cleared. So the call continues with the previously negotiated media, fax
passthrough (8 101 in this case), but TFLAG_SDP is not set.

So when FS receives a reINVITE at this point it doesn't see the need to
renegotiate anything, even though it realizes that 2833 DTMF is now off:

2019-04-30 16:42:12.478025 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2019-04-30 16:42:12.478025 [DEBUG] switch_core_media.c:5533 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2019-04-30 16:42:12.478025 [DEBUG] switch_core_media.c:5802 No 2833 in SDP. Disable 2833 dtmf and switch to INFO

When FS doesn't send a reINVITE (fax_enable_t38_request=false) and the
reINVITE to "8" is received, TFLAG_SDP is still set and then FS
understands that it needs to renegotiate and replies with a 200 OK that
includes SDP:

2019-04-30 16:41:19.358028 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2019-04-30 16:41:19.358028 [DEBUG] switch_core_media.c:5533 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2019-04-30 16:41:19.358028 [DEBUG] switch_core_media.c:5802 No 2833 in SDP. Disable 2833 dtmf and switch to INFO
2019-04-30 16:41:19.358028 [DEBUG] sofia.c:8237 skemper was here in line 8232
2019-04-30 16:41:19.358028 [DEBUG] switch_core_media.c:8390 skemper was here in line 8390.
2019-04-30 16:41:19.358028 [DEBUG] switch_core_media.c:8496 Audio params are unchanged for sofia/external/+called_number.
2019-04-30 16:41:19.358028 [DEBUG] sofia.c:8243 Processing updated SDP

This fixes the state problem after a rejected T38 reINVITE by setting
TFLAG_SDP.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-18 21:19:41 +02:00
cdosoftei
5f628c0090
[mod_amqp] open logging and produced connections from within their respective threads 2019-10-17 15:38:38 -04:00
Andrey Volk
7fdf8584e4
Merge pull request #61 from cdosoftei/amqp-heartbeat
[mod_amqp] Properly parse out heartbeat parameter
2019-10-15 20:44:53 +04:00
cdosoftei
7e91927278
[mod_amqp] Properly parse out heartbeat parameter 2019-10-15 12:37:47 -04:00
Pelle Mattsson
77cd699000 [Docs] Rename Docker README to README.md, so github recognizes that it as a Markdown file and update the git url in it 2019-10-13 21:46:36 +04:00
Ciprian
696814cb26 [Core] Disable msrp by default, only enable when listen-port or listen-ssl-port config params configured in msrp.conf 2019-10-13 21:27:58 +04:00
Andrey Volk
cec8f3b1ca
Merge pull request #56 from lazedo/patch-1
[mod_kazoo] fix xml leak when event-filter is not available
2019-10-13 20:29:34 +04:00
lazedo
318e5d0d6d
[mod_kazoo] fix xml leak when event-filter is not available 2019-10-13 12:21:22 +01:00
Andrey Volk
f6c10f8622
Merge pull request #28 from signalwire/fixup-stash-url
[build/docs] point all old stash references in docs and makefiles to new github repository
2019-10-13 01:38:02 +04:00
Andrey Volk
93691c60ce
Merge pull request #32 from cdosoftei/php7-esl
ESL adjustments for PHP 7+
2019-10-13 00:51:31 +04:00
Andrey Volk
8a80e3ad0c
Merge pull request #44 from micmac1/master-fs_cli_typo
[fs_cli] Fix typo, resolves garbled screen
2019-10-13 00:49:08 +04:00
Andrey Volk
db64a08b02
Merge pull request #45 from micmac1/master-memleak-multicast
[mod_event_multicast] Fix memory leak
2019-10-13 00:45:59 +04:00
Andrey Volk
c96479bfd6
Merge pull request #50 from bircoph/master
Add support for the Elbrus architecture
2019-10-13 00:41:51 +04:00
Sebastian Kemper
8919d581fe [fs_cli] Fix typo, resolves garbled screen
Related to FS-11309.

Commit bc3e1c9e7de1855eec454bba467fd2586e5e251b introduced a typo that
results in EL_REFRESH never being used, even if available. This can
cause the screen to garble.

This fixes the typo.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-12 21:46:09 +02:00
Sebastian Kemper
fc41980f19 [mod_event_multicast] Fix memory leak
Taken from FS-11193:

In "event_handler()" function, when encrypting data using openssl 1.1.0,
the context ctx is allocated by "EVP_CIPHER_CTX_new()", then data is
encrypted, and at the end, EVP_CIPHER_CTX_cleanup is called. This
function resets the context (the function itself is deprecated, and has
been renamed to "EVP_CIPHER_CTX_reset) so that it can be used again. The
correct call would be to "EVP_CIPHER_CTX_free()", which frees the
memory. The code for openssl 1.0 is OK, since the "ctx" struct is kept
in stack.  The same thing happens during decryption. "ctx" is allocated,
but never freed.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-12 21:43:14 +02:00
Andrey Volk
ea2c31f0c8
Merge pull request #48 from crienzo/fix-grammar-in-mod_sofia
[mod_sofia] Fix some incorrect word contractions.
2019-10-10 20:34:21 +04:00
Chris Rienzo
9d4f480335 [mod_sofia] Fix some incorrect word contractions. 2019-10-10 09:41:53 -04:00
Andrew Savchenko
c4ec06dc23
Add support for the Elbrus architecture
The Elbrus architecture (aka E2K, aka 2000) is LE.

Signed-off-by: Andrew Savchenko <bircoph@altlinux.org>
2019-10-10 16:21:31 +03:00
cdosoftei
d60193c1ae
ESL adjustments for PHP 7+ 2019-10-02 14:05:58 -04:00