Commit Graph

666 Commits

Author SHA1 Message Date
Andrey Volk 4658192547
[Core] switch_channel_clear_state_handler(), switch_channel_get_state_handler(): Coverity 1546120 Data race condition
* [Core] switch_channel_clear_state_handler: Coverity 1546120 Data race condition

* [Core] Fix race in switch_channel_get_state_handler()
2024-11-13 22:56:15 +03:00
Andrey Volk 6b67970bbb [Core] Add new switch_channel_get_variable_strdup() and switch_channel_get_variable_buf() APIs that avoid allocating channel variables in a session's memory pool. 2023-07-28 22:29:22 +03:00
Giacomo Vacca 9c63f03b45 [Core] Add new cause REJECT_ALL 2023-06-22 22:39:46 +03:00
Dragos Oancea 8e59603d98 [core][mod_sofia] remove ZRTP (deemed obsolete).
[unit-tests][build-system][docs] remove references to ZRTP.
2022-10-28 20:19:42 +03:00
Andrey Volk ea74d2a5d6 [Core] Don't flip CID on recover if that's done already. 2021-10-23 22:00:48 +03:00
Chris Rienzo 60faf1a1b1 [core] Update switch_ivr_record_session_event() to check event vars for RECORD_STEREO, etc 2021-10-23 22:00:39 +03:00
Anthony Minessale f8004e1d66 [core] fix possible looping recover 2021-10-23 22:00:29 +03:00
Anthony Minessale 0d463a2b42 [core] expand vars on execute_on and api_on 2021-10-23 22:00:27 +03:00
Chris Rienzo c2e240d6dc [core] Add switch_core_session_set_external_id() which lets you define an additional identifier that you can use in switch_core_session_locate(). 2021-10-23 22:00:26 +03:00
Anthony Minessale 2c7f97a606 [mod_verto] allow vars from dp to pass to verto dialog 2021-10-23 21:59:59 +03:00
Andrey Volk b9fdf00f6f [Core] Fix a false-positive memory leak detected by scan-build in switch_channel_set_variable_strip_quotes_var_check() 2021-10-19 20:45:08 +03:00
Andrey Volk c58b659f3f [Core] Add new switch_channel_set_variable_strip_quotes API, cleanup mod_sofia. 2021-10-19 20:45:07 +03:00
Chris Rienzo deecaae870
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>
2021-04-27 13:54:32 -06:00
Andrey Volk e6e227d1f4 [Core] Fix leaking stream in switch_channel_expand_variables_check() 2021-03-17 19:39:17 +03:00
Brian West dab7d83e94 FS-10634: [core] Fix switch_channel_wait_for_app_flag from previous commit 2019-07-18 00:33:02 +04:00
Brian West d355a57264 FS-10634 [mod_spandsp]: txfax failing with 488 Not Acceptable Here race 2019-07-18 00:32:53 +04:00
Chris Rienzo 8aa07b677d FS-11807 [mod_commands] uuid_recv_dtmf changed to report OK when well formed request is consumed by dmachine or dtmf hook 2019-07-17 23:00:44 +04:00
Chris Rienzo 239bf913f4 FS-11785 [core] fix scan-build issues 2019-07-17 21:51:06 +04:00
Chris Rienzo 641300893f FS-11824 [core] add NOT_ACCEPTABLE string to cause mapping 2019-06-06 11:52:01 -04:00
Chris Rienzo 0a6d87edfe FS-11824 [sofia-sip,mod_sofia,core] Added cause codes that map to SIP 600,603,604,606,607 2019-06-06 11:51:51 -04:00
Mike Jerris ba4b2dc5b7 Merge pull request #1515 in FS/freeswitch from ~LAZEDO/freeswitch:feature/FS-11135 to master
* commit '7fd7ea9a5d70a4795f780c0d89057370e7a92856':
  FS-11135 [mod_loopback] runtime behaviour controlled by configuration
2019-03-26 15:36:05 -05:00
Chris Rienzo 7e6206325a FS-11693 [core] speed up switch_channel_get_log_tags() for the case when none are set 2019-03-09 15:22:03 -05:00
Chris Rienzo e4c0abf286 FS-11693 [core] Added switch_channel_set_log_tag() and switch_channel_get_log_tags() This allows you to add log tags to an active call channel. If using SWITCH_CHANNEL_SESSION_LOG, with switch_log_printf(), the tags will be added to the the log node so a logging module can send additional contextual data to a log aggregator. 2019-03-09 15:21:46 -05:00
lazedo 7fd7ea9a5d FS-11135 [mod_loopback] runtime behaviour controlled by configuration 2019-03-06 03:59:17 +00:00
Hunyadvári Péter 069da397f5 Improve recording transfer
Use the same method everywhere
Move the bug without stopping and starting the recording over
It was broken in some circumstances and also some settings were lost

FS-8900 --resolve
2018-03-20 09:20:37 +01:00
Anthony Minessale e78f3f0c04 FS-10387: [core] High memory usage with mod_sofia, osmo-nitb and DTX setting active #resolve 2017-06-22 15:48:20 -05:00
Anthony Minessale ff16279628 FS-10369: [freeswitch-core] Preserve original progress time when getting more than one 2017-06-06 09:08:09 -05:00
Anthony Minessale a59056a69d FS-10240: [freeswitch-core] Use the "Negative Lookahead" in xml dialplan cause memory leak #resolve 2017-06-05 18:15:18 -05:00
Anthony Minessale 3af93449b0 FS-10369: [freeswitch-core] Preserve original progress time when getting more than one #resolve 2017-06-05 14:20:26 -05:00
Armen Babikyan 6ed86abf9f FS-9300: Add support for disabling sofia's 100 Trying via configuration, and sending 100 Trying from dialplan 2017-02-13 14:49:05 -08:00
Sergey Safarov df1ab07ca4 FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
Anthony Minessale 9dba32410f FS-10015: [freeswitch-core] Add variable to allow firing of text events #resolve 2017-02-06 16:37:59 -06:00
Luis Azedo 7c60be14c7 [core] add channel hold/unhold verbosity 2016-11-16 19:30:50 -06:00
Mike Jerris 17444343c0 Merge pull request #914 in FS/freeswitch from feature/FS-9367-log-session-creation to master
* commit '0fd6667fd2e30122ce7facf74a2f26ee7dfb26fc':
  [FS-9367] log session counts at channel state change
2016-11-11 15:48:21 -06:00
Anthony Minessale 9b8a5edd3d FS-9638 2016-11-10 12:09:00 -06:00
nneul at mst.edu 0fd6667fd2 [FS-9367] log session counts at channel state change 2016-07-19 13:03:12 -05:00
Thomas Weber 346e044daf Buffer overflow in switch_channel_expand_variables_check and switch_event_expand_headers_check fixed (FS-8757) 2016-04-19 11:44:35 -05:00
Ken Rice e18c12b609 FS-8953 [core] white space clean up. 2016-03-17 08:55:00 -05:00
Anthony Minessale 2cf9962f61 FS-8914 2016-03-09 00:02:59 -06:00
Artur Zaprzała e24c393979 FS-8812 Respect in_thread_only parameter in switch_channel_check_signal() 2016-02-08 15:04:02 +01:00
Anthony Minessale c01a8849a0 FS-8720 #resolve [Segmentation Fault when switch_channel_str2cause is called] 2016-01-12 16:29:44 -06:00
Anthony Minessale 0da5d8a350 FS-8716 #resolve [recording offset is delayed few seconds for rtmp stream] 2016-01-07 16:39:06 -06:00
Anthony Minessale 56a68e3ad9 FS-8677 #resolve [Crash (possible memory corruption) after codec change] 2016-01-06 10:10:14 -06:00
Michael Jerris 9f52ebf257 FS-8658: [mod_verto] windows fixes for mod_verto 2015-12-14 16:37:09 -06:00
Anthony Minessale 85f8bca628 FS-8642 #resolve [CF_VIDEO_READY set on non-video calls] 2015-12-09 19:02:23 -06:00
Anthony Minessale 6a08424fa7 FS-8566 #resolve [Call fails when put on hold in bypass media mode with inbound late neg set to false] 2015-11-25 13:53:14 -06:00
Mark Lipscombe 6288af5ef1 FS-8413: Segfault calling session:getVariable(nil) in lua script
script calling session:getVariable() with a null variable
name will cause FreeSWITCH to segfault.

This change checks whether varname parameter to
switch_channel_get_variable_dup is non-NULL.
2015-11-04 17:33:11 +11:00
Corey Burke 3a9e7f08b4 FS-8286: Minor debug log level tweaks
Adjust some DEBUG and INFO log lines, reducing log verbosity at the INFO level while increasing call debugging info.
2015-10-02 08:41:41 -07:00
Anthony Minessale 43ef01fbbe correct version of proposed patch 2015-09-23 11:58:57 -05:00
Artur Zaprzała 8ea99bfccf FS-7344: Fix race condition for INVITE right after ACK in 3PCC mode. 2015-09-03 22:32:32 +02:00