15619 Commits

Author SHA1 Message Date
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
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
311a20af63 [mod_verto] Ignore not just zero but negative frame size as well. 2019-10-23 23:03:18 +04:00
cdosoftei
5244a64d4e
[mod_amqp] configurable commands queue properties 2019-10-22 15:22:00 -04: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
cdosoftei
7e91927278
[mod_amqp] Properly parse out heartbeat parameter 2019-10-15 12:37:47 -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
db64a08b02
Merge pull request #45 from micmac1/master-memleak-multicast
[mod_event_multicast] Fix memory leak
2019-10-13 00:45:59 +04: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
Chris Rienzo
9d4f480335 [mod_sofia] Fix some incorrect word contractions. 2019-10-10 09:41:53 -04:00
Andrey Volk
34075172eb
Merge pull request #27 from andywolk/mod_av_crash
[mod_av] Fix crash on `av show codecs` and `av show formats`.
2019-10-01 19:37:12 +04:00
David VILLAUME
9de281133a [mod_say_fr] Fix "10" not playing in French. 2019-10-01 17:07:29 +02:00
Andrey Volk
65c4ca072d [mod_av] Fix crash on av show codecs and av show formats. 2019-10-01 13:02:39 +04:00
Andrey Volk
15ad4c23e2 Merge pull request #1803 in FS/freeswitch from bugfix/FS-12025-freeswitch-crashes-on-reloadxml-when-spandsp-tone-detection-is-running to master
* commit 'd45e9df88349a26a18426fd98409845316d131fb':
  FS-12025: [mod_spandsp] FreeSWITCH crashes on reloadxml when spandsp tone detection is running.
2019-09-17 11:03:50 -05:00
Sergey Safarov
6704d3aabe
FS-11917: [mod_event_socket] Added error logging if cannot parse IP address 2019-09-17 07:40:45 +03:00
Andrey Volk
fc925a273b Merge pull request #1809 in FS/freeswitch from sofia-leak to master
* commit '20a893fd0683de64353ee2c111aa9c61a867886d':
  FS-12038: [mod_sofia, core] Fix potential leak and race in chat_hash, add switch_core_hash_insert_auto_free().
2019-09-06 11:28:31 -05:00
Andrey Volk
20a893fd06 FS-12038: [mod_sofia, core] Fix potential leak and race in chat_hash, add switch_core_hash_insert_auto_free(). 2019-09-06 20:22:20 +04:00
Andrey Volk
7ee53a6ec1 FS-12040: [mod_sofia] Fix potential leak if realloc fails. 2019-09-06 18:01:55 +04:00
Andrey Volk
d0c6b30c15 Merge pull request #1244 in FS/freeswitch from ~DRAGOS_OANCEA_NX/freeswitch-dragos-nx:fix/FS-10191/disable_video_floor_event_for_audio to master
* commit '4d4afbeb5d9a6aa2d8fced093aeba9b27c1e5623':
  FS-10191: don't send "video-floor-change" event for audio-only conference
2019-09-05 12:24:23 -05:00
Andrey Volk
d45e9df883 FS-12025: [mod_spandsp] FreeSWITCH crashes on reloadxml when spandsp tone detection is running. 2019-08-30 02:20:18 +04:00
Dragos Oancea
4d4afbeb5d FS-10191: don't send "video-floor-change" event for audio-only conference 2019-08-28 17:54:24 +01:00
Andrey Volk
eee07bd95f Merge pull request #1802 in FS/freeswitch from ~ITALOROSSI/freeswitch:feature/FS-12022 to master
* commit '759783532dc7c34b4f8ab27e63438a350bfbc256':
  FS-12022: [mod_event_socket] Add Job-Owner-UUID with session uuid when using bgapi inside outbound socket
2019-08-27 12:30:43 -05:00
Andrey Volk
1583740133 Merge pull request #1805 in FS/freeswitch from bugfix/FS-11995-err-mod_fifo.c-4398-odbc-is-not-available to master
* commit 'fd2f12cf94c4445843a299ef8b87ce2d15d77072':
  FS-11995: [mod_fifo, mod_directory] Fix database availability check.
2019-08-27 10:06:12 -05:00
Christopher Rienzo
6a6b8ac350 Merge pull request #1804 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-12026 to master
* commit 'aaacaa19deb6ef764acdfabefb625f3ddc4e2324':
  FS-12026 [mod_http_cache] fix multichannel file download and play
  FS-12026 [mod_httapi] fix multichannel file download and play
2019-08-27 08:27:05 -05:00
Dragos Oancea
aaacaa19de FS-12026 [mod_http_cache] fix multichannel file download and play 2019-08-27 11:30:05 +00:00
Dragos Oancea
44199e91b5 FS-12026 [mod_httapi] fix multichannel file download and play 2019-08-27 11:28:51 +00:00
Andrey Volk
fd2f12cf94 FS-11995: [mod_fifo, mod_directory] Fix database availability check. 2019-08-27 01:13:10 +04:00
David Grant
7a4a988dcb FS-11993 [mod_http_cache][mod_smpp] fix gcc errors when building on rpi4 buster (strncpy to snprintf)
FS-11993 [mod_http_cache][mod_smpp] fix gcc errors when building on rpi4 buster (strncpy to snprintf)
2019-08-24 22:48:59 -05:00
Ítalo Rossi
759783532d FS-12022: [mod_event_socket] Add Job-Owner-UUID with session uuid when using bgapi inside outbound socket 2019-08-22 16:35:34 -03:00
Mike Jerris
8c1697b9b2 FS-12021: [mod_signalwire] Remove ascii art on mod_signalwire token line 2019-08-22 10:40:55 -06:00
Andrey Volk
71b0ab24b1 FS-12001: [mod_callcenter] Workaround issues with renaming tables and columns in SQLite version prior to 2019-02-07 (3.27.0). 2019-08-20 18:39:01 +04:00
Andrey Volk
f93445a38c FS-12010: [sofia-sip] Fix improper cleanup on su_deinit(). 2019-08-20 03:11:28 +04:00
Andrey Volk
96aac32237 FS-12010: [mod_sofia, mod_valet_parking, mod_enum] Fix memory leaks on FreeSWITCH shutdown. 2019-08-19 23:14:24 +04:00
Fernando S Santos
d3487dcc39 FS-12001: [mod_callcenter] Renamed column name from 'system' to 'instance_id' to make mod_callcenter work with MySQL through mod_mariadb 2019-08-14 16:59:09 -03:00
lazedo
88448ebfba FS-11982 [mod_kazoo] add expand-headers-on-fetch 2019-08-05 15:40:42 +00:00
David Grant
263a83bf7c FS-11977 [mod_signalwire] add configuration param override-context 2019-08-04 02:37:51 -05:00
Andrey Volk
bc5dad27fb FS-11931: [mod_http_cache] Fix zero-length gnu_printf format string 2019-08-02 00:55:02 +04:00
Mike Jerris
0e43313f79 Merge pull request #1782 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-11973 to master
* commit '4f66959ed325ed6dd58c8b48f80d42aaca1902bd':
  FS-11973: [mod_event_multicast] add mutex and checks on hash ptrs on shutdown
2019-08-01 13:32:02 -05:00
Dragos Oancea
4f66959ed3 FS-11973: [mod_event_multicast] add mutex and checks on hash ptrs on shutdown 2019-08-01 18:12:39 +00:00
Sergey Khripchenko
655c8a1a7b FS-11362 Attempt to rearrange verto socket shutdown sequence 2019-07-26 00:31:11 +04:00
Mike Jerris
090e8284b6 FS-11961: [mod_sofia] Handle request vs response in sofia_media_tech_media 2019-07-25 14:26:36 -06:00
Dragos Oancea
dc1e851214 FS-9264: FS-10976: fix detect_audio, detect_silence and wait_for_silence_function dialplan apps
(thanks Sergey KHripchenko and Hervé Déprez for pointing these out)
2019-07-26 00:22:08 +04:00
Anthony Minessale
d4a0040c88 FS-11417: [mod_conference] Unbounded memory growth during screen share #resolve 2019-07-26 00:17:41 +04:00
Andrey Volk
27669eda04 FS-11194: [mod_v8] Implement JavaScript Process Status with Heap statistics. 2019-07-26 00:01:22 +04:00
Seven Du
fc139b7068 FS-11934 add some conference test cases 2019-07-25 23:57:34 +04:00
Mike Jerris
f49279b45e .gitignore 2019-07-25 23:06:38 +04:00
Mike Jerris
8948ba694e .gitignore 2019-07-25 23:06:24 +04:00
Andrey Volk
e863053e92 Merge pull request #1761 in FS/freeswitch from bugfix/FS-11952-fix-memory-leaks to master
* commit '718d2341f7327feea52c840648e42b33eb9c69dd':
  FS-11952: [Core] Fix memory leaks.
2019-07-24 11:49:58 -05:00