Commit Graph

20845 Commits

Author SHA1 Message Date
Andrey Volk b337e77258 [Unit-tests] Fix leaks in mod_test and in switch_core_codec, switch_vpx, switch_xml, switch_ivr_play_say tests. 2019-11-27 21:38:19 +04:00
Andrey Volk 4c434aef1f
[Unit-tests] Fix test framework by telling sqldb to manage handles so they don't leak and are destroyed on shutdown. 2019-11-26 22:54:17 +04:00
Andrey Volk 2865603ad2 [Unit-tests] Fix xml error not finding freeswitch.xml on FST_MINCORE_BEGIN 2019-11-26 01:54:43 +04:00
Ítalo Rossi 3de3ec3b1a [mod_callcenter] Adding SAF_SUPPORT_NOMEDIA to callcenter_track since we don't need media up for it. Also, a small fix to make it compile on OSX. 2019-11-26 01:33:12 +04:00
Andrey Volk 5836b9652b [Unit-tests] Fix test framework leaking on successful checks under setup or teardown mode. Failed checks in these modes are noted and then freed, but not when passed. 2019-11-26 01:05:03 +04:00
Andrey Volk a4f0b2f2a0 [mod_test] Fix OSX build 2019-11-22 00:09:14 +04:00
Seven Du 254fda292a [core] fix shutdown crash when core running with MINIMAL flag 2019-11-21 22:05:43 +04:00
Andrey Volk 66aa064588
Merge pull request #91 from lazedo/event-channel-debug
[core] allow event-channel debugging & single delivery
2019-11-15 23:37:36 +04: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
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
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 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
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
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
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 70831a7140 FS-12041: [Core] Fix memory leak on msrp shutdown 2019-09-07 03:10:20 +04: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
Christopher Rienzo 8880c4f469 Merge pull request #1811 in FS/freeswitch from bugfix/FS-12040-mod_sofia-fix-potential-leak-if-realloc-fails to master
* commit '7ee53a6ec1753204d5f17e1f7d2b9429b8ab1342':
  FS-12040: [mod_sofia] Fix potential leak if realloc fails.
2019-09-06 09:37:37 -05:00
Andrey Volk 7ee53a6ec1 FS-12040: [mod_sofia] Fix potential leak if realloc fails. 2019-09-06 18:01:55 +04:00
Andrey Volk f00d285b5e FS-12039: [Core] Fix memory leak on ssl shutdown. 2019-09-06 17:50:16 +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
Seven Du b6b3d78567 FS-12007 fix leak 2019-08-19 23:09:47 +04:00
Mike Jerris cf0826406b Merge pull request #1798 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-12008 to master
* commit '797216fcc04efd05c0d45b33a4269bd1d8e118ff':
  FS-12008: special case G722 - fix rate passed to switch_core_codec_init()
2019-08-19 13:37:47 -05:00
Dragos Oancea 797216fcc0 FS-12008: special case G722 - fix rate passed to switch_core_codec_init() 2019-08-19 18:31:10 +00:00
Andrey Volk 48b8fa5864 FS-11981: [Core] Fix FreeSWITCH crash when timerfd is initialized with an error. 2019-08-19 21:35:23 +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
Andrey Volk 822c0b07ba FS-11998: [Core] Fix improper json_api module unload 2019-08-12 21:00:20 +04:00
Andrey Volk 9520f8e111 FS-11991: [Core] Fix bug in the database module interface preventing tables from being created when no drop_sql 2019-08-10 20:40:52 +04:00
Andrey Volk f74036cd1c FS-11989: [Core] Fix database module interface not returning statuses of some operations. 2019-08-10 03:05:41 +04: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
Chris Rienzo c55b989220 FS-11979 [test] Fix error message log in fst_xcheck() 2019-08-02 11:47:03 -04: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
Mike Jerris 7c773b28d9 Merge pull request #1779 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-11967-rate to master
* commit '6fb039607686c1f2cf9265b6ae9b01a29037eb9c':
  FS-11967: add mod_opus to unit test XML
  FS-11967: add unit test for switch_core_codec_copy()
  FS-11967: [core] fix rate of recording for Opus
2019-08-01 11:13:37 -05:00
Christopher Rienzo 538021a6b9 Merge pull request #1781 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-11919-log to master
* commit '6cfceb6e62b4461cedd712b7486c29bf6cd12fe6':
  FS-11919: change back loglevel to DEBUG1
2019-08-01 08:24:35 -05:00
Dragos Oancea 6cfceb6e62 FS-11919: change back loglevel to DEBUG1 2019-08-01 13:21:28 +00:00
Liyang 5f1ee43cd0 FS-11971: [core] fix 488 when receive invite with SRTP/RTP 2019-08-01 02:15:56 +04:00
Dragos Oancea 3bb9471e31 FS-11967: [core] fix rate of recording for Opus 2019-07-31 14:42:40 +00:00
Chris Rienzo 5801df9333 FS-11970 [core] Check if detection is done in switch_ivr_play_and_detect_speech() final loop. 2019-07-29 23:08:15 -04:00
Dragos Oancea b1ba546139 FS-11788: JB: packet count on vbw too 2019-07-25 23:56:16 +00:00
Mike Jerris 3c06e3c788 Merge pull request #1773 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-11743 to master
* commit '7060d962625970804b9a3d9db4c0f89caf2b67a3':
  FS-11743: don't reset VBW on receiving PLI/FIR
2019-07-25 18:35:30 -05:00
Mike Jerris 304865f580 Merge pull request #1772 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-11965 to master
* commit '4349da32142a66caac8ce38d6a710d056ff56cbb':
  FS-11965: fix build.
2019-07-25 18:34:53 -05:00
Dragos Oancea 7060d96262 FS-11743: don't reset VBW on receiving PLI/FIR 2019-07-25 23:30:16 +00:00
Dragos Oancea 4349da3214 FS-11965: fix build. 2019-07-25 23:21:47 +00:00
Mike Jerris 4abe5905e0 Merge pull request #1771 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-11965 to master
* commit '9e006869e47bf60706da14c54f81c38ccaf790ca':
  FS-11965: RTC: prevent overflow on percent_fraction (patch by Sergey Khripchenko <shripchenko@intermedia.net>)
  FS-11965: NACK log debug when we get a request
  FS-11965: RTCP: fix on rtcp_report_block->fraction - "if X packets were expected and X was lost, we want 0xff to be reported, not 0" (patch by Piotr Gregor <piotr@dataandsignal.com>)
2019-07-25 18:17:11 -05:00
Dragos Oancea 9e006869e4 FS-11965: RTC: prevent overflow on percent_fraction
(patch by Sergey Khripchenko <shripchenko@intermedia.net>)
2019-07-25 23:10:53 +00:00
Dragos Oancea 2e450cd3dc FS-11965: NACK log debug when we get a request 2019-07-25 23:10:53 +00:00
Dragos Oancea 40982338a0 FS-11965: RTCP: fix on rtcp_report_block->fraction - "if X packets were expected and X was lost, we want 0xff to be reported, not 0"
(patch by Piotr Gregor <piotr@dataandsignal.com>)
2019-07-25 23:09:27 +00:00
Mike Jerris af3551f735 Merge pull request #1770 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-11715 to master
* commit '500b4c23b0c4c389195eb59a13b229c640fa2e8c':
  FS-11715: sanitize negative value for pkt_lost
2019-07-25 17:46:16 -05:00
Artem Karukov 500b4c23b0 FS-11715: sanitize negative value for pkt_lost 2019-07-25 22:38:57 +00:00
Dragos Oancea 309135640b FS-11964: add new chan var "rtp_video_nack_disable" 2019-07-25 21:57:37 +00:00
Mike Jerris da9c1618c5 Merge pull request #1768 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-11788 to master
* commit 'f3d21a2d727531c518fbc4ef8b5bd75b8db7e2b4':
  FS-11788: JB: fix packets per video frame count and allow count on vbw
2019-07-25 16:46:15 -05:00
Dragos Oancea f3d21a2d72 FS-11788: JB: fix packets per video frame count and allow count on vbw 2019-07-25 21:43:27 +00:00
Mike Jerris d16575d288 FS-11962: [core] Fix memory leak in switch_core_session_write_video_frame 2019-07-25 14:41:39 -06:00
Sergey Khripchenko 200a76b2ae FS-9264 Add more logging to wait_for_silence, detect_audio and detect_silence api calls 2019-07-26 00:37:15 +04:00