Jakub Karolczyk
bb9afcb388
[core] Coverity fixes
...
* [core] Coverity 1518099, 1518097, 1518098 (Unchecked return value from library)
* [core] Coverity 1468551 Unchecked return value
* [core] Coverity 1468293 Unchecked return value
* [core] Coverity 1468274 Explicit null dereferenced
* [core] Coverity 1395588 Unchecked return value
* [core] Coverity 1395515 Logically dead code
* [core] Coverity 1364984 Result is not floating-point
* [core] Coverity 1395554, 1468440 Dereference before null check
* [core] Coverity 1024487 Dereference after null check
* [core] Coverity 1024872 Unchecked return value
* [core] Coverity 1025822 Unchecked return value
* [core] Coverity 1025823 Unchecked return value
* [core] Coverity 1087637, 1346467, 1087638 Unchecked return value
* [core] Coverity 1107607 Unchecked return value
* [core] Coverity 1210777 Unchecked return value
* [core] Coverity 1227670 Dereference before null check
* [core] Coverity 1024551 Logically dead code
* [core] Coverity 1024560 Logically dead code
* [core] Coverity 1024664 Operands don't affect result
* [core] Coverity 1364957 Dereference after null check
* [core] Coverity 1395572 Logically dead code
* [core] Coverity 1412459 Unchecked return value
* [core] Coverity 1412490 Unchecked return value
* [core] Coverity 1395515/2 Logically dead code
* [core] Coverity cleanup
2023-09-08 20:17:57 +03:00
Jakub Karolczyk
55f2dc4759
[core] Coverity fixes
...
* [core] Coverity CID 1024233 (Dereference before null check)
* [core] Coverity CID 1024239 (Dereference before null check)
* [core] Coverity CID 1024242 (Dereference before null check)
* [core] Coverity CID 1024243 (Dereference before null check)
* [core] Coverity CID 1024453 (Dereference before null check)
* [core] Coverity CID 1024554 (Logically dead code)
* [core] Coverity CID 1024868 (unchecked return value from library)
* [core] Coverity CID 1024869 (unchecked return value from library)
* [core] Coverity CID 1468281 (Dereference before null check)
* [core] Coverity CID 1024238 (Dereference before null check)
* [core] Coverity CID 1468621 (Copy into fixed size buffer)
* [core] Coverity CID 1024871 (Unchecked return value)
2023-07-21 13:49:40 +03:00
Jakub Karolczyk
5656972bfe
[core,miniupnpc,modules] Fix not used variables
2023-07-04 10:18:16 +01:00
Jakub Karolczyk
49c1c35982
[core] Coverity fixes
...
* [core] Coverity CID 1468218 (Resource leak)
* [core] Coverity CID 1468214 (Resource leak)
* [core] Coverity CID 1294472 (Resource leak)
* [core] Coverity CID 1294470 (Resource leak)
* [core] Coverity CID 1500361 (Resource leak)
* [core] Coverity CID 1500308 (Resource leak)
* [core] Coverity CID 1500278 (Resource leak)
---------
Co-authored-by: Andrey Volk <andywolk@gmail.com>
2023-04-01 00:07:59 +03:00
Andrey Volk
17453e0079
[Core] Remove deprecated SWITCH_STACK_NODUP flag. Change switch_event_add_header_string() behavior to always dup.
2022-11-08 01:48:25 +03:00
Andrey Volk
ffa2207926
[Core] SWITCH_STACK_NODUP flag is deprecated and will be soon removed. Introduce switch_event_add_header_string_nodup() API.
2022-11-08 01:17:08 +03:00
Andrey Volk
56b6e954cf
[Core] Fix dead nested assignments
2022-08-09 23:29:31 +03:00
Andrey Volk
0fdd5b6727
[Core] Fix switch_event_base_add_header leaking memory when headers are with indexes. Add a unit-test.
...
* [Unit-tests] Add a test provoking switch_event_add_header to memory leak.
* [Core] Fix switch_event_base_add_header leaking memory when headers are with indexes.
2021-11-03 17:01:05 +03:00
Anthony Minessale
4e84b34d30
[core, mod_verto] add visibility filter to verto
2021-10-23 22:01:01 +03:00
Noah Mehl
d24280c700
[core] Add SEND_RTCP_MESSAGE
...
We utilize: https://github.com/sipcapture/hepipe.js to monitor RTCP for our calls. As such, it's super helpful to get the sent RTCP data along with the received RTCP data. The new: SEND_RTCP_MESSAGE basically mirrors the existing RECV_RTCP_MESSAGE.
2021-10-01 13:46:34 +00: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
c3ee0c17cb
[Core] Fix various dead assignments.
2020-02-16 00:59:37 +04:00
Andrey Volk
8dd27183f8
[Core] Fix possible leak of the subclass variable in CUSTOM_HASH'es switch_event_reserve_subclass_detailed().
2020-02-16 00:29:38 +04:00
Dragos Oancea
39cc48904d
[core] scan-build: Null pointer passed as an argument to a 'nonnull' parameter - switch_event_base_add_header()
2020-02-14 15:53:16 +00:00
Andrey Volk
c84d1da934
Merge pull request #277 from dragos-oancea/switch_event_base_add_header-null
...
[core] scan-build: Null pointer passed as an argument to a 'nonnull' parameter - switch_event_base_add_header()
2020-02-12 00:05:51 +04:00
Visytel
78eb8f61b3
[core] Reduce log level to DEBUG for binding to events and certain clock messages
2020-02-11 23:58:33 +04:00
Dragos Oancea
b1dbb99f5c
[core] scan-build: Null pointer passed as an argument to a 'nonnull' parameter - switch_event_base_add_header()
2020-02-02 16:54:04 +00:00
Chris Rienzo
562079376a
[core] Add SHUTDOWN_REQUESTED event. Bind to this event to know when ASAP or elegant shutdown has been requested.
2019-12-31 03:11:12 +04:00
Seven Du
5df8bfcd84
[core] log status code when queue event failure
2019-12-31 02:34:26 +04:00
Andrey Volk
52949efc28
[Core] Wait for all EVENT_DISPATCH_QUEUE_THREADS before killing the logging which leaks otherwise.
2019-12-17 21:03:20 +04:00
lazedo
506bcd280d
[core] allow event-channel debugging & single delivery
2019-10-31 12:41:47 +00:00
lazedo
a84daf95bb
FS-11860 [core] allow configurable separator in event_channel and
...
process all parts of key
2019-07-25 21:51:50 +04:00
Luis Azedo
302b409815
FS-11848 [core] add user_data to event_channel_bind
...
* also adds a convenience switch_event_channel_deliver for already in thread
2019-07-17 16:02:12 -04:00
Andrey Volk
4d932281e9
FS-11813: [Build-System] Remove libtpl dependency from FreeSWITCH
2019-07-17 23:09:50 +04:00
Andrey Volk
863390ebba
FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_event.c
2019-07-15 23:41:56 +04:00
Andrey Volk
73d616a318
FS-10989: [core] Fix CUSTOM_HASH hash table race in switch_event logic causing crashes during bind to events.
2018-07-24 07:21:42 +00:00
Roman Sukhov
c6e2ce18a6
FS-10672 [core] Fix event url-encoding buffer size
2017-09-14 18:05:59 +03:00
Anthony Minessale
fd3b25d282
add some params to control rate and channels
2017-08-11 13:23:15 -05:00
Mike Jerris
503b9d3753
FS-10577: [core] start additional event dispatch threads based on event system queue size
2017-08-10 10:25:12 -05: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
Anthony Minessale
c409499cd9
FS-9576 #resolve [Add Realtime Text]
2016-09-27 16:40:43 -05:00
Michael Jerris
9030e13589
FS-9401: [core,mod_amqp] fix leak in usage of hash itterator
2016-08-03 18:41:18 -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
Michael Jerris
b3dc9154d4
FS-8397: fix race condition inrementing event seq number
2015-10-29 10:28:21 -05:00
Anthony Minessale
f8b19b7485
FS-8190 #resolve [When using nixevent, freeswitch stops sending us certain custom event that were NOT part of the nixevent command]
2015-09-21 18:00:32 -05:00
Michael Giagnocavo
17241c8bcd
FS-7894: Event header ARRAY:: data -- use strcmp to ensure data begins with ARRAY:: instead of substring search
2015-07-26 19:56:32 -06:00
Michael Jerris
6b68cf4beb
FS-7866: fix crash when running incorrect var api expansion syntax "eval ${${external_sip_ip}:4}"
2015-07-21 12:23:21 -05:00
Michael Jerris
58d02f98a6
quiet down some verbose debug logging
2015-05-28 12:47:27 -05:00
Anthony Minessale
5a96512345
FS-7305 #resolve
2015-03-06 16:44:53 -06:00
Dušan Dragić
1c16d5d8b0
FS-7121 change switch_events_match() to use strcmp
...
Use strcmp() in place of strstr() so switch_events_match() matches
only full event subclass name.
2015-01-03 22:56:19 +01:00
Anthony Minessale
a03963fb92
fold livetables into verto obj and expose moderator mode
2014-07-12 03:27:08 +05:00
Anthony Minessale
ffa09cd1e7
various verto cleanups and fix a race in double event delivery thread creation
2014-06-20 19:21:56 +05:00
Anthony Minessale
7151d6acea
FS-6402 part 2
2014-04-02 03:21:37 +05:00
Anthony Minessale
5c0cff70b3
FS-6402 --resolve
2014-04-02 01:20:19 +05:00
Anthony Minessale
804ef7709d
change from sqlite hash to newly added one
2014-03-09 00:37:17 +05:00
Ken Rice
6e7d5d0897
update copyright header for 2014
2014-02-12 12:08:56 -06:00
Anthony Minessale
87751f9eaf
FS-5036 --resolve
2013-12-13 23:13:56 +05:00
Anthony Minessale
4a8e9d634d
add ref counter to la
2013-11-01 02:22:11 +05:00