]>
git.ipfire.org Git - thirdparty/freeswitch.git/log
Andrey Volk [Mon, 17 May 2021 13:54:06 +0000 (16:54 +0300)]
Merge pull request #1199 from signalwire/fix-compile-error
[core] Fix read of uninitialized buffer in switch_simple_email().
Chris Rienzo [Sun, 16 May 2021 23:12:28 +0000 (23:12 +0000)]
[core] Fix read of uninitialized buffer in switch_simple_email().
Dragos Oancea [Fri, 14 May 2021 15:36:30 +0000 (18:36 +0300)]
[mod_opus] add cfg setting to overwrite the fmtp stereo param coming from remote. Eg: incoming SDP has stereo=1 but we want a mono call so we answer with stereo=0.
* [mod_opus] add cfg setting to overwrite the fmtp stereo param coming from remote. Eg: incoming SDP has stereo=1 but we want a mono call so we answer with stereo=0.
sprop-stereo will be set to 0 too.
* [core] opus: use switch_core_max_audio_channels() with remote fmtp stereo=1 to allow disabling of stereo.
Andrey Volk [Fri, 14 May 2021 15:34:17 +0000 (18:34 +0300)]
Merge pull request #1190 from dragos-oancea/amrwb-cfg-mode-set
[mod_amrwb] add cfg setting mode-set-overwrite (it will answer with just one mode-set value) - fixes audio quality issues in mod_conference with some UEs.
Andrey Volk [Mon, 10 May 2021 22:54:24 +0000 (01:54 +0300)]
Merge pull request #1192 from signalwire/curl_cert
[mod_curl] look for cacert in certs dir
Anthony Minessale [Sat, 11 Apr 2020 22:37:04 +0000 (22:37 +0000)]
[mod_curl] look for cacert in certs dir
Aron Podrigal [Mon, 10 May 2021 19:32:48 +0000 (14:32 -0500)]
[mod_curl] Added PATCH method, add insecure and secure options to verify SSL certs, add proxy option.
* mod_curl: hanlde PATCH method
* mod_curl: verify ssl with an option `insecure` to not verify
* mod_curl: added option to use proxy
* mod_curl: use assert(options)
* [mod_curl] default certificate validation secure/insecure controlled by `validate-certs` config option.
* [mod_curl] Added option secure to force https certs validation
Andrey Volk [Mon, 10 May 2021 19:29:46 +0000 (22:29 +0300)]
Merge pull request #1178 from azzbcc/mod_sofia_nat_mapping
[mod_sofia] release nat mapping when nua create failed
Andrey Volk [Fri, 7 May 2021 16:03:37 +0000 (19:03 +0300)]
Merge pull request #1099 from dragos-oancea/mod_tts_commandline_fix_system
[mod_tts_commandline] check return of switch_system() against 127 too
Dragos Oancea [Fri, 7 May 2021 14:17:15 +0000 (14:17 +0000)]
[mod_amrwb] add cfg setting mode-set-overwrite (it will answer with just one mode-set value) - fixes audio quality issues in mod_conference with some UEs.
sergey-safarov [Thu, 6 May 2021 17:51:54 +0000 (20:51 +0300)]
[Build-System] Rename package format-mod-opusfile to format-opusfile on CentOS
Clarence [Wed, 28 Apr 2021 11:59:52 +0000 (19:59 +0800)]
[mod_sofia] release nat mapping when nua create failed
Chris Rienzo [Tue, 27 Apr 2021 19:54:32 +0000 (15:54 -0400)]
STIR/SHAKEN (#1160)
* [core] Add SWITCH_CAUSEs for STIR/SHAKEN.
[mod_sofia] Add sofia_verify_identity dialplan APP as a STIR/SHAKEN verification service. Set sip_hangup_on_verify_identity_fail=true to end calls that fail verification, otherwise check sip_verstat and sip_verstat_detailed channel variables for verification result.
* [mod_sofia] Fix stir shaken implementation issues on fail.
* fix build
* Fix given comments
* stir_shaken_passport_get_grant return does not require to be freed.
* reworked things
* [core] add switch_rfc822_datetime_to_epoch()
* [mod_sofia] fix test return code
* [mod_sofia] Add Date header when signing Identity
* [mod_sofia] Check Date - WIP doesn't work
* [mod_sofia] STIR/SHAKEN check SIP Date header
* Try to give time for sofia to clean up calls
Co-authored-by: Andrey Volk <andywolk@gmail.com>
sergey-safarov [Mon, 26 Apr 2021 14:46:26 +0000 (17:46 +0300)]
[Build-System] Use a fresher gcc on RHEL based dists
Norm Brandinger [Fri, 16 Apr 2021 14:24:51 +0000 (10:24 -0400)]
[Core] switch_rtp: fix switch_rtp_set_max_missed_packets logging
Warning message about missed packets is misleading.
Message indicates greater (>) however, the conditional is greater than or equals (>=).
The message prints the value of rtp_sesstion->missed_count twice instead of printing the value of rtp_session->max_missed_packets.
Dragos Oancea [Wed, 31 Mar 2021 13:49:59 +0000 (13:49 +0000)]
[core] RTP: handle flush for incoming stream with DTX or packet loss.
Dragos Oancea [Tue, 13 Apr 2021 10:30:15 +0000 (10:30 +0000)]
[mod_sofia] rfc8760: reorder hash algorithms by priority (strength), no matter the order provided in the cfg
Andrey Volk [Wed, 10 Mar 2021 17:08:20 +0000 (20:08 +0300)]
[mod_sofia] Add basic INVITE test
Dragos Oancea [Fri, 9 Apr 2021 15:45:17 +0000 (15:45 +0000)]
[mod_sofia] Add RFC8760 (sha-256, sha-512)
enable on the sip profile, eg:
<param name="rfc8760-auth-algorithms" value="sha-256,md5"/>
Andrey Volk [Thu, 8 Apr 2021 21:55:52 +0000 (00:55 +0300)]
[Core] Add switch_digest(), switch_digest_string() APIs. Add unit-tests.
figaro2015 [Fri, 2 Apr 2021 19:18:16 +0000 (12:18 -0700)]
[Core, mod_conference] Fixed oscillation in conference AGC processing. Especially during volume reduction processing (#1064)
* Fixed oscillation in conference AGC processing. Especially during volume reduction processing
* Re-scaled granular volume to +/- 50 dB level change. 10 = double loudness, -10 = half loudness, 0 = no change
Co-authored-by: Chris Rienzo <chris@signalwire.com>
Andrey Volk [Thu, 25 Mar 2021 15:52:56 +0000 (18:52 +0300)]
version bump
Andrey Volk [Wed, 24 Mar 2021 18:08:57 +0000 (21:08 +0300)]
Merge pull request #126 from micmac1/gentlscert-md
[gentls_cert] Update message digest
Christian Glombek [Wed, 24 Mar 2021 16:30:52 +0000 (17:30 +0100)]
[mod_avmd, esl/python] Two build fixups (#611)
Andrey Volk [Tue, 23 Mar 2021 18:10:30 +0000 (21:10 +0300)]
Merge pull request #1134 from signalwire/add-dial-handle-to-enterprise-originate
[core] Update switch_ivr_enterprise_originate() to accept optional switch_dial_handle_list_t instead of dialstring.
Andrey Volk [Tue, 23 Mar 2021 17:33:46 +0000 (17:33 +0000)]
swigall
Chris Rienzo [Thu, 18 Mar 2021 23:28:40 +0000 (02:28 +0300)]
[core] Update switch_ivr_enterprise_originate() to accept optional switch_dial_handle_list_t instead of dialstring.
Andrey Volk [Fri, 12 Mar 2021 14:27:07 +0000 (17:27 +0300)]
[Core] Hangup call instead of crashing system on SSL_CTX_new failure. Improve logging.
Andrey Volk [Wed, 10 Mar 2021 13:10:54 +0000 (16:10 +0300)]
[Core] switch_ivr_set_user_xml: Buffer is wrongly truncated when it's small in get_prefixed_str()
Dragos Oancea [Mon, 1 Mar 2021 17:48:45 +0000 (19:48 +0200)]
[core] rtp: fix #ifdef DEBUG_TS_ROLLOVER (#357)
Dragos Oancea [Sat, 27 Feb 2021 14:01:27 +0000 (14:01 +0000)]
[mod_av] fix memory leak on file playing
Andrey Volk [Fri, 26 Feb 2021 22:04:16 +0000 (01:04 +0300)]
[Core] Add new switch_core_session_try_reset() API to fix a deadlock for the case when two threads want to set session codecs.
Chris Rienzo [Thu, 25 Feb 2021 11:04:27 +0000 (06:04 -0500)]
[core] Remove unused buffers and mutexes in switch_core_session. Remove destruction of resamplers that will already be destroyed by switch_core_session_reset().
Andrey Volk [Fri, 11 Dec 2020 19:32:25 +0000 (22:32 +0300)]
[mod_sofia] Use thread-safe alternatives when destroying nua and nua_handle references. Bump sofia-sip library requirement to version 1.13.3
Andrey Volk [Fri, 19 Mar 2021 20:52:53 +0000 (23:52 +0300)]
Merge pull request #1128 from signalwire/isbr
[mod_conference] Bridged conference did not wait it's last member before destroy and crashed.
Andrey Volk [Fri, 19 Mar 2021 20:31:46 +0000 (23:31 +0300)]
[mod_conference] Bridged conference did not wait it's last member before destroy and crashed.
Andrey Volk [Thu, 18 Mar 2021 22:21:23 +0000 (01:21 +0300)]
Merge pull request #905 from traud/patch-4
[core] Allow other (D)TLS Curves/Groups beside P-256
Aron Podrigal [Thu, 18 Mar 2021 22:13:01 +0000 (17:13 -0500)]
[mod_pgsql] Use PQcmdTuples() to get number of effected rows to support UPDATE and INSERT without RETURNING.
Alexander Traud [Tue, 13 Oct 2020 12:33:19 +0000 (14:33 +0200)]
[core] Allow other (D)TLS Curves/Groups beside P-256
Five years ago, commit
8e1b2ea enabled ECDHE for the DTLS server by hard-coding P-256. Released before that, OpenSSL 1.0.2, allows auto selection of the curve (P-256, P-384, and P-512). OpenSSL 1.1.x has this enabled on default, which adds groups/curves like X25519 and X448 automatically. This change here allows DTLS clients with a demand for Security Level 4 (192 bit) and 5 (256 bit) connecting to the DTLS server.
sergey-safarov [Thu, 18 Mar 2021 21:30:08 +0000 (00:30 +0300)]
[Build-System] freeswitch.spec update
* freeswitch.spec: mod_shout - build always enabled
* Removed not nessary erlang spec file
* freeswitch.spec: Added cache direcory to http_cache module
* freeswitch.spec: added zrtp feature in packaging
* freeswitch.spec: added dependency for gumbo-parser-devel on fedora dist (HTML parser for MSRP)
* remove autoload_configs dir dublication
Andrey Volk [Wed, 17 Mar 2021 21:53:38 +0000 (00:53 +0300)]
[mod_sofia] Gateways DOWN state introduced a regression: REG gateways in DOWN state could not be killed. NOREG gateways could change state in some conditions. Register and Unregister commands will now error if a gateway is NOREG.
Chris Rienzo [Sat, 20 Feb 2021 19:17:50 +0000 (19:17 +0000)]
[test] Fix fst_session_park() to wait for CF_PARK instead of CS_PARK. CF_PARK will be set when the channel has actually parked.
Andrey Volk [Sat, 20 Feb 2021 18:14:15 +0000 (21:14 +0300)]
[Core] Fix race between switch_ivr_park_session() and the state machine. switch_core_session_run() wants to clear the CF_TRANSFER flag on state change while parking sets the flag.
Andrey Volk [Thu, 18 Feb 2021 16:02:03 +0000 (19:02 +0300)]
[Core] Fix leaking codec, timer and abuf in switch_ivr_play_file() in the case of failing switch_ivr_phrase_macro() or switch_ivr_speak_text()
Andrey Volk [Thu, 28 Jan 2021 00:13:13 +0000 (03:13 +0300)]
[Core] Fix leaking stream in switch_channel_expand_variables_check()
Andrey Volk [Tue, 26 Jan 2021 17:24:38 +0000 (20:24 +0300)]
[mod_callcenter] Fix use of uninitialized res variable in cc_agent_update()
Andrey Volk [Tue, 26 Jan 2021 17:23:52 +0000 (20:23 +0300)]
[mod_sofia] Fix use of uninitialized network_ip in sofia_handle_sip_r_invite()
Andrey Volk [Tue, 26 Jan 2021 17:26:14 +0000 (20:26 +0300)]
[mod_http_cache] Handle error cases to avoid using uninitialized variables in aws logic.
Andrey Volk [Wed, 20 Jan 2021 15:48:01 +0000 (18:48 +0300)]
[mod_sofia] scan-build in sofia_glue_do_invite(): Null pointer passed as an argument to a 'nonnull' parameter
Andrey Volk [Fri, 22 Jan 2021 18:57:24 +0000 (21:57 +0300)]
[Core] Fix possible memory leak of switch_core_session_message_t in switch_core_session_queue_indication()
Andrey Volk [Fri, 22 Jan 2021 18:45:37 +0000 (21:45 +0300)]
[mod_snom, mod_snmp] Replace strncpy with snprintf
Andrey Volk [Thu, 21 Jan 2021 19:32:12 +0000 (22:32 +0300)]
[Core] Fix leak of switch_event_header_t in switch_event_base_add_header(). Code cleanup.
Andrey Volk [Thu, 21 Jan 2021 16:38:37 +0000 (19:38 +0300)]
[Core] Fix leaking stream in switch_event_expand_headers_check()
Andrey Volk [Thu, 21 Jan 2021 15:43:02 +0000 (18:43 +0300)]
[mod_lcr] Fix order_by and sql_stream streams leaking in the case of a DB error in lcr_load_config()
Andrey Volk [Thu, 21 Jan 2021 15:29:44 +0000 (18:29 +0300)]
[mod_pgsql] Fix memory leek in the case of an empty string of err_str in pgsql_handle_exec_base_detailed()
Andrey Volk [Thu, 21 Jan 2021 14:40:29 +0000 (17:40 +0300)]
[mod_httapi] Fix memory leak of dup_creds in httapi_sync()
Andrey Volk [Wed, 20 Jan 2021 21:46:40 +0000 (00:46 +0300)]
[mod_curl] Avoid passing null pointer value via data parameter of do_lookup_url()
Andrey Volk [Wed, 20 Jan 2021 19:31:35 +0000 (22:31 +0300)]
[Unit-Tests] Fix leak of arg in the case of an error in fct_clp__parse()
Andrey Volk [Wed, 20 Jan 2021 15:30:32 +0000 (18:30 +0300)]
[mod_shout] Fix memory leak in do_telecast
Andrey Volk [Sat, 16 Jan 2021 19:53:23 +0000 (22:53 +0300)]
[Core] Fix codec ready checks in switch_core_session_read_frame()
Andrey Volk [Mon, 14 Dec 2020 20:46:08 +0000 (00:46 +0400)]
[mod_loopback] Fix new_session leak in the case of a hangup_cause.
Andrey Volk [Tue, 1 Dec 2020 00:21:57 +0000 (04:21 +0400)]
[mod_sofia] Protect insertion into profile->reg_nh_hash with a mutex.
Andrey Volk [Mon, 30 Nov 2020 18:24:21 +0000 (22:24 +0400)]
[mod_sofia] Properly handle nua events came without nua handles.
Andrey Volk [Thu, 19 Nov 2020 17:18:09 +0000 (21:18 +0400)]
[mod_mongo, mod_redis, mod_voicemail] Fix leaking hash iterators.
Andrey Volk [Wed, 18 Nov 2020 17:50:04 +0000 (21:50 +0400)]
[Core] Fix leaks in switch_ivr_park when initially no rate.
Mike Jerris [Tue, 17 Nov 2020 20:01:03 +0000 (00:01 +0400)]
[Core] ODBC: Fix large column logic and improve error handling.
Mike Jerris [Tue, 17 Nov 2020 00:08:43 +0000 (17:08 -0700)]
[core] improve logging on oversized fields in odbc
Andrey Volk [Fri, 13 Nov 2020 17:23:20 +0000 (21:23 +0400)]
[mod_sofia] Prevent crash in sofia_handle_sip_i_state on switch_channel_set_state() when PFLAG_3PCC_PROXY flag is set.
Andrey Volk [Wed, 28 Oct 2020 20:14:00 +0000 (00:14 +0400)]
[mod_sofia] Keep noreg gateways as NOREG, mark unregistered gateways as DOWN.
Co-authored-by: Mike Jerris <mike@signalwire.com>
Andrey Volk [Tue, 16 Mar 2021 22:58:19 +0000 (01:58 +0300)]
Merge pull request #1121 from signalwire/switch_eavesdrop
[Unit-tests] Fix build issues in switch_eavesdrop.c test file.
Andrey Volk [Tue, 16 Mar 2021 22:15:42 +0000 (01:15 +0300)]
[Unit-tests] Fix build issues in switch_eavesdrop.c test file.
Andrey Volk [Fri, 23 Oct 2020 17:48:53 +0000 (21:48 +0400)]
[Core] Scheduler: Fix race between switch_scheduler_add_task() and task_thread_loop(). Add new switch_scheduler_add_task_ex() method.
Andrey Volk [Wed, 28 Oct 2020 19:49:36 +0000 (23:49 +0400)]
[mod_sofia] Fix memory leaks caused by improper profile destroy. Add a unit-test.
Andrey Volk [Tue, 6 Oct 2020 23:21:16 +0000 (03:21 +0400)]
[mod_sofia] Fix multiple memory leaks in sofia_presence_handle_sip_i_subscribe()
Mike Jerris [Tue, 6 Oct 2020 15:26:42 +0000 (11:26 -0400)]
[core] fix leak in http request parser
Andrey Volk [Sun, 4 Oct 2020 22:49:08 +0000 (02:49 +0400)]
[Core] Fix memory leak of local_var_event in switch_ivr_originate() when caller_channel is not ready.
surendrasignalwire [Tue, 29 Sep 2020 15:10:33 +0000 (20:40 +0530)]
[Core] Reuse caller profile
Dragos Oancea [Fri, 4 Sep 2020 08:57:28 +0000 (08:57 +0000)]
[core] eavesdrop: init L16 codec at right ptime in certain conditions.
[core] eavesdrop: avoid eavesdropping on itself and return error.
[core] eavesdrop: adjust buffer operations for ptime mismatch and for when ptimes are the same.
[core] eavesdrop: add buffering based on LCM (Least Common Multiple) when ptime mismatch,
and have audio write thread enabled when ptime eavesdropee < ptime eavesdropper.
[unit-tests] add unit-tests for eavesdrop.
Dragos Oancea [Wed, 16 Sep 2020 21:20:17 +0000 (00:20 +0300)]
[core] native tap fix (pass the copy of the frame to switch_core_session_write_frame() so it does not get encoded)
surendrasignalwire [Thu, 13 Aug 2020 10:49:47 +0000 (14:49 +0400)]
[mod_sofia] Fix recovery reinvite issue
Andrey Volk [Wed, 12 Aug 2020 17:53:06 +0000 (21:53 +0400)]
[Core] Fix SDP parsing causing segfault.
Andrey Volk [Tue, 4 Aug 2020 19:06:59 +0000 (23:06 +0400)]
[mod_pgsql] Prevent a stall of PQconsumeInput().
Andrey Volk [Mon, 27 Jul 2020 17:41:13 +0000 (21:41 +0400)]
[Core] Make switch_core_media_set_codec() and switch_core_media_set_video_codec() thread-safe so there is no race when a session's codec is initiated by different threads simultaneously.
Andrey Volk [Fri, 24 Jul 2020 18:42:49 +0000 (22:42 +0400)]
[Core] Fix buffer race in switch_ivr_eavesdrop_session()
surendrasignalwire [Wed, 22 Jul 2020 21:30:31 +0000 (03:00 +0530)]
[Core] Fixed issue while setting mode on reinvite or outbound direction
Andrey Volk [Fri, 17 Jul 2020 16:38:15 +0000 (20:38 +0400)]
[mod_sofia] Fix potential leak of uuid in sofia_event_callback().
Andrey Volk [Tue, 7 Jul 2020 14:00:35 +0000 (18:00 +0400)]
[Core] Fix double close of a socket in switch_rtp
surendrasignalwire [Thu, 9 Jul 2020 21:26:42 +0000 (02:56 +0530)]
[Core] Fix crash while writing text_frame in conference
Andrey Volk [Wed, 17 Jun 2020 14:52:20 +0000 (18:52 +0400)]
[mod_pgsql] Fix potential hang when calling PQconsumeInput() while checking if db_is_up().
Seven Du [Fri, 12 Jun 2020 22:53:25 +0000 (06:53 +0800)]
[mod_av] remove extra space
surendrasignalwire [Wed, 10 Jun 2020 16:09:01 +0000 (20:09 +0400)]
[core] Fix ODBC column size performance issue
Andrey Volk [Tue, 19 May 2020 16:29:25 +0000 (20:29 +0400)]
[Core] Fix reference counter lock order when protect/unprotect interface.
Andrey Volk [Tue, 19 May 2020 15:55:36 +0000 (19:55 +0400)]
[Core] Fix wrong switch_assert expressions in switch_core_session_write_frame()
Andrey Volk [Mon, 18 May 2020 22:48:02 +0000 (02:48 +0400)]
[Core] Fix multiple missing session unlocks in switch_core_media.c
Seven Du [Mon, 11 May 2020 17:33:14 +0000 (01:33 +0800)]
[mod_sofia] fix session log
Dragos Oancea [Tue, 28 Apr 2020 16:46:15 +0000 (17:46 +0100)]
[core] eavesdrop: reduce lock contention, fix error condition + enable eavesdrop stereo
Seven Du [Fri, 24 Apr 2020 20:47:45 +0000 (04:47 +0800)]
[mod_sndfile] fix read sndfiles with float data
Seven Du [Wed, 15 Apr 2020 02:36:32 +0000 (10:36 +0800)]
[mod_av] enable resampler when sample rate mismatch (#153)
phonecomwire [Fri, 24 Apr 2020 22:10:41 +0000 (15:10 -0700)]
[Core] Adding fix for switch_ivr_originate to not copy group_confirm variables to the channel
Seven Du [Thu, 12 Mar 2020 14:01:56 +0000 (22:01 +0800)]
[mod_video_filter] Disable waiting video ready which blocks the channel 10 seconds in early media