rance
b796f8639a
Merge remote-tracking branch 'GitHub-FS/master'
2021-03-18 21:52:07 +00:00
sergey-safarov
9c589b7750
[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
2021-03-19 00:30:08 +03:00
Andrey Volk
0059f0cc1b
[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.
2021-03-18 03:07:49 +03:00
Chris Rienzo
9e49a4176b
[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.
2021-03-17 19:46:18 +03:00
Andrey Volk
8e2234a205
[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.
2021-03-17 19:45:08 +03:00
Andrey Volk
2ca0d02531
[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()
2021-03-17 19:43:14 +03:00
Andrey Volk
e6e227d1f4
[Core] Fix leaking stream in switch_channel_expand_variables_check()
2021-03-17 19:39:17 +03:00
Andrey Volk
3134c9aa57
[mod_callcenter] Fix use of uninitialized res variable in cc_agent_update()
2021-03-17 19:38:10 +03:00
Andrey Volk
f348ab9d38
[mod_sofia] Fix use of uninitialized network_ip in sofia_handle_sip_r_invite()
2021-03-17 19:37:06 +03:00
Andrey Volk
cfdd1d9be8
[mod_http_cache] Handle error cases to avoid using uninitialized variables in aws logic.
2021-03-17 19:35:37 +03:00
Andrey Volk
4aa1c1736f
[mod_sofia] scan-build in sofia_glue_do_invite(): Null pointer passed as an argument to a 'nonnull' parameter
2021-03-17 19:34:12 +03:00
Andrey Volk
97930570dc
[Core] Fix possible memory leak of switch_core_session_message_t in switch_core_session_queue_indication()
2021-03-17 19:30:39 +03:00
Andrey Volk
d127eeeecc
[mod_snom, mod_snmp] Replace strncpy with snprintf
2021-03-17 19:25:46 +03:00
Andrey Volk
2a8804af97
[Core] Fix leak of switch_event_header_t in switch_event_base_add_header(). Code cleanup.
2021-03-17 19:23:30 +03:00
Andrey Volk
91066f56fa
[Core] Fix leaking stream in switch_event_expand_headers_check()
2021-03-17 19:21:49 +03:00
Andrey Volk
be6b40b024
[mod_lcr] Fix order_by and sql_stream streams leaking in the case of a DB error in lcr_load_config()
2021-03-17 19:20:41 +03:00
Andrey Volk
c282386fdb
[mod_pgsql] Fix memory leek in the case of an empty string of err_str in pgsql_handle_exec_base_detailed()
2021-03-17 19:19:39 +03:00
Andrey Volk
e614f08c93
[mod_httapi] Fix memory leak of dup_creds in httapi_sync()
2021-03-17 19:18:33 +03:00
Andrey Volk
3e7ba04cbe
[mod_curl] Avoid passing null pointer value via data parameter of do_lookup_url()
2021-03-17 18:55:40 +03:00
Andrey Volk
c8e7a57b4c
[Unit-Tests] Fix leak of arg in the case of an error in fct_clp__parse()
2021-03-17 18:54:36 +03:00
Andrey Volk
29b5043904
[mod_shout] Fix memory leak in do_telecast
2021-03-17 18:49:14 +03:00
Andrey Volk
82b6f01b69
[Core] Fix codec ready checks in switch_core_session_read_frame()
2021-03-17 18:46:23 +03:00
Andrey Volk
f6e076507e
[mod_loopback] Fix new_session leak in the case of a hangup_cause.
2021-03-17 18:34:21 +03:00
Andrey Volk
e3e0c7c259
[mod_sofia] Protect insertion into profile->reg_nh_hash with a mutex.
2021-03-17 18:33:12 +03:00
Andrey Volk
b78c9a115e
[mod_sofia] Properly handle nua events came without nua handles.
2021-03-17 18:31:42 +03:00
Andrey Volk
90c35685c3
[mod_mongo, mod_redis, mod_voicemail] Fix leaking hash iterators.
2021-03-17 18:29:20 +03:00
Andrey Volk
9608a56873
[Core] Fix leaks in switch_ivr_park when initially no rate.
2021-03-17 18:27:00 +03:00
Mike Jerris
81aa6fa9d0
[Core] ODBC: Fix large column logic and improve error handling.
2021-03-17 18:25:57 +03:00
Mike Jerris
7539921eca
[core] improve logging on oversized fields in odbc
2021-03-17 18:24:40 +03:00
Andrey Volk
96e139854e
[mod_sofia] Prevent crash in sofia_handle_sip_i_state on switch_channel_set_state() when PFLAG_3PCC_PROXY flag is set.
2021-03-17 18:21:49 +03:00
Andrey Volk
a746d12f6c
[mod_sofia] Keep noreg gateways as NOREG, mark unregistered gateways as DOWN.
...
Co-authored-by: Mike Jerris <mike@signalwire.com>
2021-03-17 18:20:32 +03:00
Andrey Volk
aa91b46d3f
Merge pull request #1121 from signalwire/switch_eavesdrop
...
[Unit-tests] Fix build issues in switch_eavesdrop.c test file.
2021-03-17 01:58:19 +03:00
Andrey Volk
eaf5a70246
[Unit-tests] Fix build issues in switch_eavesdrop.c test file.
2021-03-17 01:15:42 +03:00
Andrey Volk
5ed17dd19c
[Core] Scheduler: Fix race between switch_scheduler_add_task() and task_thread_loop(). Add new switch_scheduler_add_task_ex() method.
2021-03-17 01:01:01 +03:00
Andrey Volk
3065cb9168
[mod_sofia] Fix memory leaks caused by improper profile destroy. Add a unit-test.
2021-03-17 00:58:29 +03:00
Andrey Volk
dcb75a79e3
[mod_sofia] Fix multiple memory leaks in sofia_presence_handle_sip_i_subscribe()
2021-03-17 00:56:19 +03:00
Mike Jerris
8e4b418ee4
[core] fix leak in http request parser
2021-03-17 00:55:08 +03:00
Andrey Volk
22ae5a1ba1
[Core] Fix memory leak of local_var_event in switch_ivr_originate() when caller_channel is not ready.
2021-03-17 00:53:55 +03:00
surendrasignalwire
dbc894d959
[Core] Reuse caller profile
2021-03-17 00:52:36 +03:00
Dragos Oancea
5aabb54f68
[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.
2021-03-17 00:47:27 +03:00
Dragos Oancea
3509ae537e
[core] native tap fix (pass the copy of the frame to switch_core_session_write_frame() so it does not get encoded)
2021-03-17 00:29:17 +03:00
surendrasignalwire
7b8a36c2a9
[mod_sofia] Fix recovery reinvite issue
2021-03-17 00:16:32 +03:00
Andrey Volk
1fee1fc6ad
[Core] Fix SDP parsing causing segfault.
2021-03-17 00:14:48 +03:00
Andrey Volk
785d92a5f5
[mod_pgsql] Prevent a stall of PQconsumeInput().
2021-03-16 23:22:11 +03:00
Andrey Volk
4fe8aecbfb
[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.
2021-03-16 23:15:54 +03:00
Andrey Volk
f09ed875b9
[Core] Fix buffer race in switch_ivr_eavesdrop_session()
2021-03-16 23:14:49 +03:00
surendrasignalwire
b220a05010
[Core] Fixed issue while setting mode on reinvite or outbound direction
2021-03-16 23:13:49 +03:00
Andrey Volk
167ab11006
[mod_sofia] Fix potential leak of uuid in sofia_event_callback().
2021-03-16 22:50:02 +03:00
Andrey Volk
23321373ed
[Core] Fix double close of a socket in switch_rtp
2021-03-16 22:15:33 +03:00
surendrasignalwire
cffc29927b
[Core] Fix crash while writing text_frame in conference
2021-03-16 22:12:33 +03:00