Jakub Karolczyk
0e9954467f
[mod_imagick] Coverity CID 1500258 (Resource leak)
2023-04-06 18:23:33 +01:00
Jakub Karolczyk
b02fbc702d
[mod_java] Coverity CID 1320753 (Resource leak)
2023-04-06 18:21:40 +01:00
Jakub Karolczyk
80d5790274
[mod_xml_scgi] Coverity CID 1468595 (Resource leak)
2023-04-06 18:20:07 +01:00
Dragos Oancea
73ea37c5ab
[Core] Coverity fixes
...
* [core] coverity CID 1320751 (Dereference before null check)
* [core] coverity CID 1294546 (Unchecked return value)
* [core] coverity CID 1227661 (Logically dead code)
* [core] coverity CID 1227656 (Logically dead code)
* [core] coverity CID 1060948 (Explicit null dereferenced)
* [core] coverity CID 1346465 (Unchecked return value)
* [core] coverity CID 1364953 (Logically dead code)
* [core] coverity CID 1468210 (Dereference before null check)
* [core] coverity CID 1468546 (Dereference before null check)
* [core] coverity CID 1468342 (Dereference before null check)
2023-04-05 18:54:11 +03: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
55313696db
[Core] Remove unused count variable from switch_core_session_execute_exten()
2023-03-31 22:48:11 +03:00
Andrey Volk
9940623bce
[Core] Fix switch_core_sqldb_destroy() function declaration.
2023-03-31 20:47:56 +03:00
Jakub Karolczyk
9494148b10
[mod_sofia] Coverity fixes
...
* [mod_sofia] Coverity CID 1468634 (Resource leak)
* [mod_sofia] Coverity CID 1294467 (Resource leak)
---------
Co-authored-by: Andrey Volk <andywolk@gmail.com>
2023-03-30 22:00:40 +03:00
Jakub Karolczyk
65b24c65db
[mod_pgsql] Coverity CID 1468401 (Resource leak)
2023-03-29 23:26:35 +01:00
Andrey Volk
f5f7f76cd4
Merge pull request #2006 from dragos-oancea/mod_amr-cov
...
[mod_amr] coverity CID 1395603 (Unsigned compared against 0)
2023-03-29 19:19:47 +03:00
Dragos Oancea
3d547647b2
[mod_verto] Coverity fixes
...
* [mod_verto] coverity CID (Logically dead code)
* [mod_verto] coverity CID 1468609 (Logically dead code)
2023-03-29 19:14:54 +03:00
Andrey Volk
16884775b9
Merge pull request #2005 from dragos-oancea/mod_opus-cov
...
[mod_opus] coverity CID 1320733 (Result is not floating-point)
2023-03-29 19:12:19 +03:00
Dragos Oancea
48b8b0c4d7
[Core] Coverity fixes
...
* [core] coverity CID 1395504 (Logically dead code)
* [core] coverity CID 1395581 (Dereference before null check)
* [core] coverity CID 1346451 (Improper use of negative value)
* [core] coverity CID 1395497 (Dereference before null check)
* [core] coverity CID 1468458 (Dereference before null check)
2023-03-29 19:08:18 +03:00
Andrey Volk
8e5dc5a087
[mod_opusfile] Fix missing rdlock unlock in switch_opusfile_open()
2023-03-29 19:05:18 +03:00
Dragos Oancea
3c1824a685
[mod_amr] coverity CID 1395603 (Unsigned compared against 0)
2023-03-29 17:20:04 +03:00
Dragos Oancea
3c4695ea31
[mod_opus] coverity CID 1320733 (Result is not floating-point)
2023-03-29 17:18:57 +03:00
Tomasz Ostrowski
afc8d78a18
[mod_enum] Fix use-after-free if creating resolver from file failed
2023-03-28 17:36:01 +03:00
Andrey Volk
6c97e3b0f4
[Core] Fix missing mutex unlock in switch_ivr_dmachine_ping()
2023-03-28 17:10:25 +03:00
Andrey Volk
02c25a24a4
Merge pull request #1765 from greenbea/patch-14
...
[mod_say_en] change epoch to 64 bit int
2023-03-28 17:06:58 +03:00
Andrey Volk
ef9268ec0c
Merge pull request #1900 from jyelloz/master
...
[mod_ladspa] Added activate/deactivate support.
2023-03-28 17:00:28 +03:00
Henrique
bb2fa44071
[mod_conference] handle personal canvas with vmuted member
2023-03-28 16:53:16 +03:00
yois615
6d65f8e08c
[mod_callcenter] Fix stale agents and UUID broadcasts
...
* [call_center] Stop uuid_broadcast on answer
* [mod_callcenter] Fix stale members in database
When a channel is originated to an agent but the
member fails to bridge to that agent, the database is
not updated with the member status and a stale entry
of 'Answered' persists until mod_callcenter is restarted.
Additionally, cc_agent_found is set before the bridge,
therefore ending the while loop on the member channel.
If there is a problem with the agent bridge, the call is
terminated prematurely.
In this commit, we:
* Move the SQL update of the member
to the 'Answered' state to the agent thread instead of
the member's thread, so that correct data is populated.
* Reset the members state accordingly to Abandoned or
Waiting if the channels fail to bridge.
* Use cc_agent_bridged to end the member loop,
so that a member is put back on queue if the agent
channel fails to bridge.
2023-03-28 14:53:16 +03:00
yois615
965e88a6b0
[core, mod_cidlookup] Free memory allocated via strdup
...
In mod_cidlookup and several other modules, config parameters
are read from external XML files using the SWITCH_CONFIG_ITEM_STRING_STRDUP
method. These items do not have string_options, and are not freed
with switch_xml_config_cleanup. We therefore need to call switch_safe_free
for config without string_options. We also add switch_xml_config_cleanup
to mod_cidlookup. There are other modules that may be affected but this
commit makes no attempt at fixing those.
Fixes #1752
2023-03-28 01:47:23 +03:00
Andrey Volk
f680a29405
Merge pull request #1413 from yois615/master
...
[mod_sofia] Randomize OPTIONS Ping interval
2023-03-28 01:43:35 +03:00
Tomasz Ostrowski
8e604e8a94
[mod_event_multicast] Few fixes
...
* [mod_event_multicast] Fix crash / invalid pointer dereference
* [mod_event_multicast] Check current number of addresses before zeroing memory on init
* [mod_event_multicast] Fix condition checking number of addresses on init
* [mod_event_multicast] Fix addresses zeroing on init
* [mod_event_multicast] Reorder memset and assert after malloc
2023-03-27 20:23:07 +03:00
Andrey Volk
2c36dcdd50
Merge pull request #1843 from greenbea/patch-17
...
[mod_commands] Fix and improve coalesce function
2023-03-27 20:03:40 +03:00
Andrey Volk
49eb8a77ee
Merge pull request #1996 from greenbea/amqp_subclass_support
...
[mod_amqp] Event subclass support
2023-03-27 19:55:46 +03:00
Дилян Палаузов
99ca7436d8
[mod_commands] add completions for fsctl api_expansion and sync_clock_when_idle
2023-03-27 19:50:51 +03:00
Andrey Volk
be1b1c8085
Merge pull request #1976 from greenbea/patch-19
...
[core] switch_ivr_originate set originate endpoint used
2023-03-27 19:41:32 +03:00
Tomasz Ostrowski
01d3b3c0e3
[Core] ICE: fix wrong buffer size being passed and unitialized buffer
2023-03-23 21:15:41 +03:00
agree
8cf90dae41
[mod_commands] Fix and improve coalesece function
...
* fixed memory leak
* added custom delimeter support
2023-03-21 12:23:19 -04:00
agree
6eb685d353
[mod_amqp] Events subclass support
2023-03-21 12:16:01 -04:00
Andrey Volk
23e6569fb0
[Core] Fix race condition of session_table hash in switch_core_session_request_uuid()
2023-03-02 12:53:00 +03:00
agree
81046e943a
[core] switch_ivr_originate set originate endpoint used
...
This commit introduces a new channel variable that sets the channel endpoint used by the originate. This is particulary useful when using `execute_on_originate` that will execute multiple times when using fake endpoints as `user/` or `group/`. With this variable, a user can determine which endpoint is being used by the originate, and whether they want to process it.
2023-02-26 21:50:51 -05:00
Andrey Volk
83e4ccf802
[Build-System] Windows: Update OpenSSL to 1.1.1t, libpq to 10.23, curl to 7.88.0, rabbitmq-c to 0.13.0. Allow using build numbers and bump libks version requirement to 1.8.2_1 and signalwire-c to 1.3.2_1 compiled with openssl 1.1.1t
2023-02-22 16:14:09 +03:00
demonspork
1a2033b915
[mod_sofia] Ignore user agent for display update when channel variable update_ignore_ua is true
2023-02-10 21:16:57 +03:00
Andrey Volk
3cb697c495
swigall
2023-02-03 18:46:31 +00:00
Adrian Fretwell
3326f4ec57
[mod_python3] Create an event on python_fetch()
2023-01-24 18:14:29 +03:00
Andrey Volk
889afccad0
[mod_xml_curl] Fix leaking event in xml_url_fetch()
2023-01-24 14:14:27 +03:00
Jordan Yelloz
9fd214fcbb
[mod_ladspa] Add activate/deactivate support.
...
Without these -- especially activate() -- stateful plugins will not be
set up correctly.
For example, the low-pass filter "lpf" in the CMT library may produce
a pop when starting since its state is not zeroed out.
2023-01-18 12:02:16 -07:00
Andrey Volk
4b350962d3
[mod_verto] Limit websocket payload size to 1000000.
2023-01-17 00:36:44 +03:00
Andrey Volk
5cc2a4fc2e
Merge pull request #1910 from signalwire/osx
...
[Unit-tests] mod_sofia: avoid duplicate symbols on macos.
2023-01-17 00:26:05 +03:00
Minh
c69c399dd2
[mod_sofia] New chanvars for inbound multiple header identity
2023-01-09 16:00:49 +03:00
Andrey Volk
84cb1bdf84
[Unit-tests] mod_sofia: avoid duplicate symbols on macos.
2022-12-31 02:41:55 +03:00
Andrey Volk
a739e197a5
[Core] Fix false-positive illegal memory access detection in switch_console_complete()
2022-12-26 16:36:04 +03:00
Andrey Volk
f71a56022a
[Core] switch_mprintf: Increase the size of loop variables in the printf() implementation. Add unit-tests disabled by default.
2022-12-09 23:11:25 +03:00
morwin1
62d3e52cf9
[mod_python3] Fix compiler warnings
2022-12-06 20:07:19 +03:00
Andrey Volk
d2f84c8342
Merge pull request #1881 from signalwire/originatefence
...
[Core] Fix crash in enterprise originate: memory fence the handles.
2022-12-06 01:33:14 +03:00
David Villasmil
13646cc888
[mod_sofia] Parse extra headers on reINVITE
2022-12-01 21:51:17 +03:00
Andrey Volk
ded2a4c1be
[Core] Fix crash in enterprise originate: memory fence the handles.
2022-11-30 23:22:01 +03:00
Anthony Minessale
edd36639c7
[Core] Blind pass at using a rwlock for chat_hash
2022-11-21 13:58:28 +03:00
Joseph Nadiv
7afeceb47e
[mod_sofia] Randomize OPTIONS Ping interval
...
In FS-6400, the attempt was made to randomize OPTIONS
packets to be sent at a random interval. The same random
interval is applied to all endpoints so this doesn't work.
Furthermore, rounding within the code, as well as
reseeding with srand() on each run will ultimately
make the ping times converge over time. Once the
times converge, they will not separate since the reseeding
will cause the same random number to apply to each
registration.
This commmit will apply the random interval only during
initial registration and update of registration.
All subsequent pings will be incremented with the
actual value of ping-mean-interval. (This parameter
name is no longer accurate, and would be better named
ping-max-interval).
srand() has been moved to the start of the worker
thread, and all repeat calls have been removed,
so that each call of rand(), even during the
same second, generates a different random number.
Fixes #1132 , Fixes #1133
2022-11-20 13:51:41 -05: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
00f4bc5ab0
[mod_smpp] Fix use of switch_event_add_header_string with SWITCH_STACK_NODUP.
2022-11-08 00:43:17 +03:00
Royce Mitchell
1213217ccc
[mod_logfile] Continue renaming if a logfile doesn't exist
...
this prevents a scenario where freeswitch.log fails to get rotated and eventually fills up the hard drive causing a crash. See issue #1738
2022-11-01 19:19:15 +03:00
Dragos Oancea
f7c94bc01d
swigall
2022-10-28 20:22:33 +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
2ab600c71a
[mod_http_cache] Fix leaking curl handle in http_get()
2022-10-28 01:00:17 +03:00
Zvonimir Bužanić
92caab3647
[core] Fix wrong reason code for group call
2022-10-26 20:53:01 +03:00
Andrey Volk
5a399a50da
swigall
2022-10-14 18:11:17 +00:00
Dmitry Ukolov
c6452cc8da
[mod_sofia] Add db-spin-up-wait-ms profile parameter.
2022-10-06 12:15:41 +03:00
Clock
c71ed98add
[mod_shout] Replace space with tab in Makefile.am
2022-10-04 20:19:10 +03:00
Jakub Karolczyk
71aa3cb03c
[mod_sofia] Fix handling of late offer
2022-09-09 11:07:19 +01:00
Brian West
c999598a0a
Merge pull request #1584 from greenbea/patch-7
...
[mod_callcenter] Fix SWITCH_EVENT_PRESENCE_PROBE unbind
2022-09-06 10:57:26 -05:00
Andrey Volk
7c18cc08d4
Merge pull request #1777 from greenbea/patch-15
...
[mod_sofia] Fix PRESENCE_PROBE firing on rejection
2022-08-30 02:42:26 +03:00
Andrey Volk
91799e0fc7
[mod_ssml] Add deps rule to the Makefile.am
2022-08-30 00:17:52 +03:00
Andrey Volk
dd3075a203
[Core] Fix Windows build after apr-util removal
2022-08-29 20:17:12 +03:00
Chris Rienzo
85d25e269b
[core] use fspr prefixed symbols instead of apr
2022-08-29 20:17:10 +03:00
Chris Rienzo
3c7e8ff989
[core] remove unimrcp from tree
2022-08-29 20:17:06 +03:00
Chris Rienzo
01c1e74f36
[core] remove libdingaling from tree
2022-08-29 20:17:04 +03:00
Chris Rienzo
9468ff746a
[core] remove apr-util from tree
2022-08-29 20:17:02 +03:00
Andrey Volk
23eeb4ae75
[Unit-tests] Improve stability of some tests.
2022-08-28 13:24:43 +03:00
agree
767b163cbd
[mod_sofia] Fix PRESENCE_PROBE firing on rejection
...
After rejecting the subscription for authentication the function calls goto end. In the end block freeswitch fires PRESENCE_PROBE events and releases the allocated memory
* when rejecting a call for auth PRESENCE_PROBE should not get fired
* This caused all other subscribers to the same entity to get flooded with NOTIFY's because `call_id` only gets set later in the function, so when firing the PRESENCE_PROBE without `call_id` being set all subscriptions will get a notify
* this can be considered a security flaw as any unauthorized user can send
SUBSCRIBES and trigger thousands of NOTIFY's to the SUBSCRIBED endpoints
This was fixed simply my moving down the end label after the code that
sends the PRESENCE_PROBE event
2022-08-26 18:09:34 -04:00
Andrey Volk
060a65601b
[Core] Fix wrong switch_odbc_skip_autocommit_flip function declaration.
2022-08-26 21:47:45 +03:00
Andrey Volk
2b8f59e8ff
Merge pull request #1773 from signalwire/autocommit
...
[Core] ODBC: Add odbc-skip-autocommit-flip switch param.
2022-08-26 20:21:23 +03:00
Andrey Volk
9f5c2a1619
[mod_sofia] Unit-test: Fix strcmp null argument.
2022-08-26 16:21:01 +03:00
Andrey Volk
a1d2f83104
[Core] ODBC: Add odbc-skip-autocommit-flip switch param.
2022-08-25 20:14:47 +03:00
Ruslan
a8dee4b2ff
[mod_conference] file descriptor stays open
...
Solution: don't even start to play file if conference is not running.
Co-authored-by: Ruslan Andronov <randronov@outlook.com>
2022-08-23 18:07:55 +03:00
agree
f538fd3d7b
[mod_say_en] change epoch to 64 bit int
...
handle time after 2038-01-18 22:14:07
2022-08-21 01:16:36 -04:00
Andrey Volk
1e5e3216d8
[mod_conference] Fix dead nested assignments
2022-08-10 00:18:18 +03:00
Andrey Volk
cd86de2f1f
[mod_av] Fix dead nested assignments
2022-08-10 00:17:03 +03:00
Andrey Volk
f3c7c4d445
[Core] scan-build: Fix false-positive bad free by switch_must_realloc() in switch_xml_proc_inst()
2022-08-10 00:15:45 +03:00
Andrey Volk
716a21b0b5
[mod_callcenter] Fix dead nested assignments in cc_config_api_function
2022-08-10 00:14:36 +03:00
Andrey Volk
19a7debc1b
[mod_sofia] Fix dead nested assignments
2022-08-10 00:13:18 +03:00
Andrey Volk
884917cb11
[mod_xml_scgi] Fix dead initialization in mod_xml_scgi_shutdown()
2022-08-10 00:11:58 +03:00
Andrey Volk
1f9305098d
[mod_xml_ldap] Fix potential memory leaks in xml_ldap_search()
2022-08-10 00:10:47 +03:00
Andrey Volk
d38d83339d
[mod_say_hr,hu,pl,sv] Fix dead nested assignments
2022-08-10 00:09:28 +03:00
Andrey Volk
1c83a92b7d
[mod_video_filter] Fix dead nested assignments
2022-08-10 00:07:52 +03:00
Andrey Volk
b6264e264c
[mod_enum] Fix dead nested assignments
2022-08-10 00:03:52 +03:00
Andrey Volk
688984f8b9
[mod_dptools] Fix dead nested assignments.
2022-08-09 23:48:29 +03:00
Andrey Volk
c062f85e16
[mod_commands] Fix dead nested assignments
2022-08-09 23:44:56 +03:00
Andrey Volk
6ef22a6f7d
[mod_v8] Fix dead nested assignments
2022-08-09 23:35:13 +03:00
Andrey Volk
01844013a0
[mod_sofia] Fix potential memory leak in sofia_reg_handle_sip_r_challenge()
2022-08-09 23:33:21 +03:00
Andrey Volk
56b6e954cf
[Core] Fix dead nested assignments
2022-08-09 23:29:31 +03:00
Andrey Volk
c47c16b1dd
Fix dead nested assignments in various modules
2022-08-09 23:20:52 +03:00
Dragos Oancea
c9def5990e
[core, mod_sofia] add some extra checks when creating the digest.
2022-08-08 18:56:09 +03:00
Andrey Volk
d96b6a4a8f
[Core] Fix possible race condition between locking a session and reading it's flags in switch_core_session_read_lock() and switch_core_session_read_lock_hangup().
2022-07-26 01:49:31 +03:00
Andrey Volk
c671ebcb88
[mod_sofia] unit-tests: Give mod_sofia time to spin up profile threads on load. Remove some fst_requires().
2022-07-26 01:47:27 +03:00
Thiadmer
86ad85161b
[mod_say_de] Let de_say_time handle short_date_time type
2022-07-11 10:21:34 +02:00
Dragos Oancea
871cc585b1
[mod_voicemail] fix vm_fsdb_msg_list
2022-07-06 15:26:43 +03:00
Dragos Oancea
beffab1d68
[core] RTP: a media timeout fix + add pcap based-unit tests.
2022-06-29 18:20:27 +03:00
FusionPBX
75e858407f
[mod_sofia] Add Fanvil to vendors allowed to update.
2022-06-16 18:00:09 +03:00
Dragos Oancea
92a336a07d
[core] fix loglevel - switch_ivr_phrase_macro_event()
2022-06-08 13:25:35 +03:00
Andrey Volk
a83e2f6b41
swigall
2022-06-07 19:38:29 +00:00
Ken
3b65b1bedb
[Core] Change values for switch_call_cause_t to avoid SIP causecode collissions
...
Update values for switch_call_cause_t in switch_types.h to avoid
sip cause code collisions that can affect continue_on_fail or
failure_causes channel variables when numeric SIP or ISUP cause codes
are used.
Co-authored-by: Ken Rice <krice@sipnavigator.com>
2022-06-07 21:45:55 +03:00
Ken
04df9c12f7
[mod_sofia] on call term optionally ignore Q.850 Reason
...
Currently SIP termination messages with Q.850 override the SIP
reason. Add chanvar ignore_q850_reason to ignore the Q.850 reason
and keep the SIP Reason Code.
Using the chan var avoids unexpected changes in behavior.
Co-authored-by: Brian West <brian@freeswitch.org>
2022-06-07 19:58:43 +03:00
Andrey Volk
1f055250e1
[mod_av] Remove unused buf variable in av_file_write
2022-05-23 22:34:29 +03:00
Andrey Volk
6b4359f4ae
[mod_av] Avoid using 16384 stack (or heap) bytes in av_file_write(). Remove ff_input_buffer_padding static variable.
2022-05-23 22:00:45 +03:00
Andrey Volk
aa161b9e58
[Core] Allow switch_buffer_write() to fill in a buffer with zeros. Add switch_buffer_zero_fill()
2022-05-23 21:51:26 +03:00
Andrey Volk
663ac586d1
Merge pull request #1510 from signalwire/PG_VERSION_NUM
...
[mod_pgsql] Fix build by using PG_VERSION_NUM provided by libpq instead of using POSTGRESQL_MAJOR_VERSION detected by freeswitch configure.
2022-05-19 23:30:31 +03:00
Andrey Volk
f07a442682
[Core] Avoid using insecure sqlite3_enable_load_extension when SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION is available.
2022-05-18 23:54:01 +03:00
prabhugithubme
4886383e32
[Core] Fix switch_core_media_patch_sdp parsing m=text wrongly
2022-04-07 15:22:25 +03:00
Andrey Volk
70a1761ab5
Merge pull request #1424 from dhruvecosmob/test_tts_change
...
[mod_test] Increase tts_time unit-test's duration window.
2022-04-01 13:27:57 +03:00
Dragos Oancea
30d5d58e6e
[core] fix set rtp flag for rtcp events after flags zeroed out.
2022-03-29 15:07:50 +03:00
Andrey Volk
c17a5dbc59
Merge pull request #1577 from dragos-oancea/mod_local_stream-loc-fix
...
[mod_local_stream] fix path with ".loc" file extension.
2022-03-28 15:45:12 +03:00
Andrey Volk
0eed5046a0
Merge pull request #1595 from azzbcc/fix_memory_leak_in_asr_feed
...
[core] fix memory leak in switch_core_asr_feed
2022-03-26 14:05:25 +03:00
Aron Podrigal
0365becc0d
[mod_sofia] Fix fs_path to keep `<>` so that sofia doesn't put the uri parameters as header parameters. Handle multiple `Record-Route` / `Route` and `Path` headers.
2022-03-25 19:44:25 +03:00
Clarence
3d283a989d
[core] fix memory leak in switch_core_asr_feed
2022-03-23 17:05:50 +08:00
Dragos Oancea
df81021a11
[core] make switch_core_media_prepare_codecs() more unit-test friendly.
2022-03-21 13:59:37 +03:00
agree
415a8a19eb
[mod_callcenter] Fix globals.nodes gets unset
...
`globals` was getting initialized to null after `switch_event_bind_removable` binding causing `globals.nodes` to get set to NULL causing `switch_event_unbind` not to be able to unbind the SWITCH_EVENT_PRESENCE_PROBE event when unloading the module. Besides not being able to unbind the event, this was also causing a segfault upon receiving a PRESENCE_PROBE event when unloading or reloading the module
2022-03-19 22:44:26 -04:00
Andrey Volk
d01c427c0b
[mod_conference] Fix regression made by previous commit when fixing memory consumption.
2022-03-18 01:53:38 +03:00
Dragos Oancea
24355b63ab
[mod_local_stream] fix path with ".loc" file extension.
2022-03-15 18:47:06 +02:00
Dragos Oancea
a40584b465
[mod_verto] fix potential memleaks at init.
2022-03-15 16:49:17 +03:00
Andrey Volk
7e0a7f0f28
[mod_verto] Fix dead nested assignments
2022-03-15 16:49:11 +03:00
Andrey Volk
aabce0c3b8
Merge pull request #1423 from azzbcc/fix_error_array_parameter
...
[core] fix compile error with gcc 11.1
2022-03-09 16:21:50 +03:00
Andrey Volk
19e64a6501
Merge pull request #1540 from zayim/send-events-on-recording-error
...
[core] set completion cause upon failed recording
2022-03-08 02:29:08 +03:00
Andrey Volk
c460588dfe
[mod_conference] Fix memory consumption and Media flow direction issue.
2022-03-08 01:50:07 +03:00
Andrey Volk
4b580a07c4
Merge pull request #1523 from mochouinard/master
...
[core] Add support to phrase play-file to set a volume attribute
2022-02-25 01:26:16 +03:00
Dragos Oancea
7fb158ae6a
[core] RTP: remove unfulfillable conditions involving timer. add missing LF to DEBUG log line.
2022-02-21 22:53:02 +03:00
Dragos Oancea
ae272359f4
[core] Handling RTCP MUX resulting in gaps
...
(fix proposed by Leon de Rooij)
2022-02-21 15:18:45 +02:00
Nadin Zajimovic
90dd5bb88e
[core] set completion cause upon failed recording
2022-02-03 18:15:23 +01:00
Hailin Zhou
d249fb8017
[mod_json_cdr] add timeout param.
2022-01-27 16:28:09 +03:00
Emmanuel Schmidbauer
6113db7bd7
[mod_amqp] add support for ssl connections
2022-01-27 16:25:38 +03:00
Andrey Volk
989097080d
[mod_event_multicast] Fix buffer overflow on module load.
2022-01-26 19:12:28 +03:00
Marc Olivier Chouinard
de487b0ada
[core] Add support to phrase play-file to set a volume attribute
2022-01-25 20:07:39 -05:00
Andrey Volk
b9875d1ac9
[Unit-tests] Replace fst_requires with fst_check in mod_sofia unit tests. Increase timeout.
2022-01-25 19:52:20 +03:00
Andrey Volk
92d2e0b136
[mod_pgsql] Fix build by using PG_VERSION_NUM provided by libpq instead of using POSTGRESQL_MAJOR_VERSION detected by freeswitch configure.
2022-01-11 18:44:36 +03:00
xbipin
f9bb8940c2
[mod_sofia] Caller ID name in contact. Introduce sip_caller_id_name_in_contact channel variable.
2021-12-29 23:30:18 +03:00
Andrey Volk
e37638d526
Merge pull request #1407 from mochouinard/master
...
[mod_sofia] Provide retry time for failed and waiting registration
2021-12-29 13:39:01 +03:00
Andrey Volk
132d3d4f2e
Merge pull request #1421 from signalwire/unicall-array-overflow
...
[mod_unicall] Fix array overflow
2021-12-29 11:44:24 +03:00
Martin Paterson
083a9ab1c3
[mod_voicemail] Fix voicemail ignoring vm-a1-hash
2021-12-28 19:02:02 +03:00
Andrey Volk
de70d9d493
Merge pull request #1420 from signalwire/voicemail-ivr-overflow
...
[mod_voicemail_ivr] Fix array overflow
2021-12-28 17:07:45 +03:00
Andrey Volk
bacb3f9386
Merge pull request #1498 from seven1240/fix-crypto-mem-ctrl
...
[core] fix macOS build when missing CRYPTO_mem_ctrl
2021-12-28 12:33:06 +03:00
Seven Du
e743e8ab3c
[core] fix macOS build when missing CRYPTO_mem_ctrl
...
https://github.com/signalwire/freeswitch/issues/1461
3493e9c952
2021-12-28 08:15:34 +08:00
Andrey Volk
fb807e40f2
Merge pull request #1462 from udovichenkoAlexander/sofia_completition_improve
...
[mod_sofia] Add autocomplete options to status profile command
2021-12-27 18:37:56 +03:00
wmasilva
a92eee4e93
[mod_voicemail] add option to skip goodbye
2021-12-23 01:55:29 +03:00
ros-tel
cbc610db26
[mod_av] FIX parse config param "profile" and "level"
2021-12-22 17:32:59 +05:00
Andrey Volk
f10d8ef5e8
Merge pull request #1463 from Hello71/no-execinfo
...
[build] skip checking unused execinfo.h
2021-12-21 23:18:03 +03:00
Michael Jerris
6c87ed4915
[Core] RFC 3264 says once we assign a payload number to a dynamic codec, we are stuck with it.
...
8.3.1 Modifying Address, Port or Transport
The port number for a stream MAY be changed. To do this, the offerer
creates a new media description, with the port number in the m line
different from the corresponding stream in the previous SDP. If only
the port number is to be changed, the rest of the media stream
description SHOULD remain unchanged. The offerer MUST be prepared to
receive media on both the old and new ports as soon as the offer is
sent. The offerer SHOULD NOT cease listening for media on the old
port until the answer is received and media arrives on the new port.
Doing so could result in loss of media during the transition.
Co-authored-by: Anthony Minessale <anthm@signalwire.com>
2021-12-17 23:56:43 +03:00
Dragos Oancea
77481b327c
[core] extend count of acl entries (per SOFIA_MAX_ACL).
2021-12-09 11:36:39 +02:00
Clarence
e632759ae8
[mod_amqp] Fix memory leaks on command queue name and parsing configure file
2021-12-05 12:55:51 +03:00
Andrey Volk
ee1dc921fe
Merge pull request #1436 from seven1240/fix-vmd
...
[mod_vmd] fix shutdown function not being called
2021-12-04 01:29:14 +03:00
Minh
f3604557e5
[mod_distributor] Reload message should be same as others (+OK instead of +ok)
2021-12-01 20:48:29 +03:00
Andrey Volk
99d9c3bd65
Merge pull request #1259 from bmlkc/mod-opusfile-drain-before-closing-write
...
[mod_opusfile] add opc_encoder_drain before destroying handle
2021-12-01 12:38:21 +03:00
Alex Xu (Hello71)
6ece47e17f
[build] skip checking unused execinfo.h
...
since 380fd060ef
, execinfo.h is not used
anymore, so there is no need to check for it.
2021-11-26 11:50:48 -05:00
Alexander Udovichenko
1bab462f19
[mod_sofia] Add autocomplete options to status profile command
2021-11-26 15:18:23 +03:00
Jakub Karolczyk
4f123c4682
[mod_conference] Set conference vars from core/channel variables
2021-11-23 20:24:23 +03:00
Jakub Karolczyk
4c781e2b5f
[mod_conference] Add APIs to set/get conference variables
2021-11-23 20:22:43 +03:00
Dragos Oancea
5b8e1dd88a
[mod_event_socket] fix strcmp crash
2021-11-19 16:17:03 +02:00
Andrey Volk
e428be3f1a
Merge pull request #1444 from signalwire/opensipit02
...
[mod_sofia] fail set up of STIR/SHAKEN verification service if configured CA directory fails to load
2021-11-17 22:23:28 +03:00
Andrey Volk
594e42544b
[mod_sofia] Put more comments into the code explaining that we include switch_ssl.h into sofia_reg.c because of SHA-512-256 (RFC-8760)
2021-11-17 18:18:52 +03:00
Chris Rienzo
d7c985afc7
[mod_sofia] fail set up of STIR/SHAKEN verification service if configured CA directory fails to load
2021-11-16 18:10:59 -05:00
Chris Rienzo
51904df21a
[core] Fix jitter buffer- it is not truncating frames properly. It is also overflowing the node packet body and is copying the packet body twice. Remove magic numbers and replace with constant.
2021-11-16 16:21:11 +02:00
Chris Rienzo
c9fba5cf39
[mod_sofia] Fix regression in RFC-8760. SHA-512/256 was not offered because OPENSSL_VERSION_NUMBER was not defined in sofia_reg.c
2021-11-15 13:18:29 -05:00
Andrey Volk
7b1cfea705
Merge pull request #1432 from signalwire/fix-whitespace
...
[mod_avmd] fix formatting to match coding standards
2021-11-11 18:24:44 +03:00
Andrey Volk
fbf2da44d9
[Core] Fix use of private headers.
2021-11-10 21:46:29 +03:00
Seven Du
89cb571af9
[mod_vmd] fix shutdown function not being called
2021-11-09 16:26:59 +08:00
Chris Rienzo
c4bc0bfbb4
[mod_avmd] fix formatting to match coding standards
2021-11-06 00:11:32 +00:00
Ken
f2a7891f14
[mod_dptools] Implement disable_system_app_commands global variable to make system and bgsystem dialplan apps disabled at run time.
...
adds a check on startup for global variable disable_system_app_commands. if the
global variable is set to true, the system and bgsystem dialplan apps will not
have their app_interface loaded via SWITCH_ADD_APP() leaving them effectively
disabled at run time.
2021-11-05 17:46:07 +03:00
Andrey Volk
2663872953
[Build-System] Add better error reporting to configure when libks or signalwire-client are missing and mod_verto or mod_signalwire enabled.
2021-11-03 22:48:44 +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
dhruvecosmob
0c8ff2fbcf
[mod_test] Increasing the precision time of fst_check_duration in the tts_time function of the unit-test.
2021-11-02 10:59:56 +05:30
Clarence
b4a7cf4059
[core] fix compile error with gcc 11.1
2021-11-02 11:33:29 +08:00
Andrey Volk
3c6ffc146f
Merge pull request #1419 from micmac1/disable-libyuv
...
[core] fix "--disable-libyuv"
2021-11-01 21:35:06 +03:00
Sebastian Kemper
a2ce46c6fd
[core] fix "--disable-libyuv"
...
Recent changes made it impossible to compile freeswitch without libyuv
support.
src/switch_core_video.c: In function 'switch_img_read_from_file':
src/switch_core_video.c:3139:4: error: implicit declaration of function 'RAWToI420' [-Werror=implicit-function-declaration]
RAWToI420(data, width * 3,
^
src/switch_core_video.c:3148:4: error: implicit declaration of function 'ABGRToARGB' [-Werror=implicit-function-declaration]
ABGRToARGB(data, width * 4, img->planes[SWITCH_PLANE_PACKED], img->stride[SWITCH_PLANE_PACKED], width, height);
^
Fix this my adding/moving the checks for "SWITCH_HAVE_YUV".
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-11-01 19:35:53 +03:00
Andrey Volk
f96f83ee3b
Merge pull request #1417 from rts-cn/fix-lua-json
...
[mod_lua] fix json encoding of lua number string
2021-11-01 19:00:35 +03:00
Chris Rienzo
62dcdff8d9
[mod_unicall] Fix array overflow
2021-11-01 14:00:52 +00:00
Chris Rienzo
5cd8a53ae8
[mod_voicemail_ivr] Fix array overflow
2021-11-01 13:50:26 +00:00
Sebastian Kemper
3128afeae7
[mod_opusfile] fix type errors
...
Since the last round of changes it fails to compile:
mod_opusfile.c: In function 'decode_stream_cb':
mod_opusfile.c:933:143: error: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'switch_thread_id_t' {aka 'struct __pthread *'} [-Werror=format=]
933 | switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "[OGG/OPUS Stream Decode] decode_stream_cb(): switch_thread_self(): %lx\n", switch_thread_self());
| ~~^ ~~~~~~~~~~~~~~~~~~~~
| | |
| | switch_thread_id_t {aka struct __pthread *}
| long unsigned int
Address this by applying the same casts that are also used in
src/mod/formats/mod_sndfile/test/test_sndfile.c already.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-11-01 09:51:26 +01:00
Seven Du
fe296e4fa3
[mod_lua] fix json encoding of lua number string
2021-11-01 16:16:01 +08:00
Marc Olivier Chouinard
d13ee25735
[mod_sofia] Provide retry time for failed and waiting registration
2021-10-27 12:41:31 -04:00
shaunjstokes
9f26a15220
[mod_pgsql] Add support for postgresql 14
2021-10-26 19:25:14 +03:00
Andrey Volk
3decbb830c
Merge pull request #1403 from dragos-oancea/_big_endian_rtcp
...
[core] fix build SWITCH_BYTE_ORDER == __BIG_ENDIAN
2021-10-26 19:20:57 +03:00
Dragos Oancea
cfb4c3ca80
[mod_http_cache][unit-tests] remove timestamp unit-test
2021-10-26 14:27:14 +00:00
Dragos Oancea
68039d344d
[core] fix build SWITCH_BYTE_ORDER == __BIG_ENDIAN
2021-10-26 08:42:58 +00:00
Seven Du
f9994c00f9
[mod_verto] Fix leak in http_run.
2021-10-24 15:39:56 +03:00
Seven Du
408480bae0
[Unit-tests] Fix mac build
...
* [core] fix build err on Mac
* [mod_av] fix build on macOS
2021-10-24 15:36:52 +03:00
Andrey Volk
fb0cad4c56
swigall
2021-10-23 19:14:38 +00:00
Chris Rienzo
256ac7c2dd
[mod_spandsp] Fix t.38 fax initialization not to add it to the timer thread until after configuration has completed.
2021-10-23 22:01:15 +03:00
Brian West
8478a523a9
[mod_valet_parking] Do not crash when exit key is not defined
2021-10-23 22:01:15 +03:00
Dragos Oancea
b3e53bdb6c
[core] fix log format string.
2021-10-23 22:01:14 +03:00
Seven Du
7b86eff6d2
[mod_av] fix some leaks in error cases
2021-10-23 22:01:13 +03:00
Andrey Volk
a5365eb080
[mod_sofia] Fix build on older sofia-sip when NUTAG_CALL_TLS_ORQ_CONNECT_TIMEOUT tag is undefined.
2021-10-23 22:01:12 +03:00
Andrey Volk
a6178e88fb
[mod_sofia] Fix use of NUTAG_CALL_TLS_ORQ_CONNECT_TIMEOUT when sip_call_tls_orq_connect_timeout channel variable is undefined.
2021-10-23 22:01:12 +03:00
Chris Rienzo
cada5c37dc
[core] Fix regression in play_and_collect_input and play_and_detect_speech - read_frame_callback and user_data from input args was not preserved.
2021-10-23 22:01:11 +03:00
Chris Rienzo
a617d5857c
[mod_conference] fix crash when using conference heartbeat
2021-10-23 22:01:10 +03:00
Dragos Oancea
fe34509bc5
[mod_conference] scan-build: Value stored to 'status' is never read - conference_loop_input()
2021-10-23 22:01:09 +03:00
Chris Rienzo
f31c73a11d
[core] Add type checking for SWITCH_CHANNEL_SESSION_LOG and SWITCH_CHANNEL_UUID_LOG macros.
2021-10-23 22:01:08 +03:00
Len
3c85fd34d7
[mod_valet_parking] Fix typo in valet_parking_orbit_dialplan channel variable.
2021-10-23 22:01:08 +03:00
Dhruv Gupta
35c2af75ce
[Unit-tests] Fix-up usage of sipp in the register_403 unit-test of mod_sofia
2021-10-23 22:01:07 +03:00
Andrey Volk
b7f908e890
[mod_sofia] Destroy nua handles to avoid memory pool swell when system is unavailable (busy, paused or reached internal limits)
2021-10-23 22:01:07 +03:00
Andrey Volk
7ed2a99eb5
[mod_sofia] Implement maximum receiving requests per second max-recv-requests-per-second profile parameter. (Warning: Behaviour change. New default is 1000 requests per second)
2021-10-23 22:01:06 +03:00
Anthony Minessale
a3c6e70f56
[mod_verto] print json debug compact
2021-10-23 22:01:06 +03:00
Anthony Minessale
756d62137a
[mod_verto] add some more log lines
2021-10-23 22:01:06 +03:00
Anthony Minessale
6c4bc433b4
[mod_verto] add exptime to ping and pong and log any hangups as a result of auth expiring
2021-10-23 22:01:05 +03:00
Anthony Minessale
d5f9155f90
[mod_verto] more perms checks
2021-10-23 22:01:05 +03:00
Anthony Minessale
8c9d0ecd9e
[mod_verto] add a way to broadcast an event to one session
2021-10-23 22:01:05 +03:00
Michael Jerris
0fcdeffb0d
[mod_verto] allow re-auth via verto.login
2021-10-23 22:01:04 +03:00
Michael Jerris
65ad502caf
[mod_verto] add verto_skip_set_user var to skip set_user in mod_verto
2021-10-23 22:01:04 +03:00
Anthony Minessale
79110fc719
[mod_verto] auth-expires
2021-10-23 22:01:03 +03:00
Michael Jerris
6a893d4990
[mod_verto] put vars frorm user lookup into user_vars and protect user_vars
2021-10-23 22:01:03 +03:00
Anthony Minessale
3eddfc66a1
[mod_verto] pass in audio flags
2021-10-23 22:01:03 +03:00
Anthony Minessale
39b3caacb5
[core, mod_commands, mod_verto] small tweaks to cache stuff to allow clear from verto and allow no domain to imply the default domain
2021-10-23 22:01:02 +03:00
Anthony Minessale
f540bbbbe3
[mod_verto] check permissions on the more specific event channel for guest users to allow them to subscribe to global events but still get send/don't send permission control on specific conferences
2021-10-23 22:01:02 +03:00
Anthony Minessale
7ad249974e
[core] don't double set caller-id
2021-10-23 22:01:01 +03:00
Anthony Minessale
6789eedd5b
[mod_verto] regression from fix for guest seeing non-public rooms
2021-10-23 22:01:01 +03:00
Anthony Minessale
4e84b34d30
[core, mod_verto] add visibility filter to verto
2021-10-23 22:01:01 +03:00
Anthony Minessale
46903fb13e
[mod_verto] add chop-domain undocumented feature to allow FS to ignore @ in username
2021-10-23 22:01:00 +03:00
Anthony Minessale
8c351a4667
[core, mod_verto] double udp buffer for audio, add verto command for video refresh
2021-10-23 22:01:00 +03:00
Anthony Minessale
cf15e7ddd9
[mod_verto] add some data about the identity of the requestor to json_api requests
2021-10-23 22:00:59 +03:00
Anthony Minessale
651d80afa1
[mod_verto] add reattach flag on reconnect to trigger mcu key frame
2021-10-23 22:00:59 +03:00
Anthony Minessale
0dc234e1d4
[mod_verto] gen keyframe both ways on re-invite
2021-10-23 22:00:59 +03:00
Anthony Minessale
db765890b6
[mod_verto] smaller jb
2021-10-23 22:00:58 +03:00
Anthony Minessale
4c8e7d86e3
[core, mod_verto] check for camera change and trigger new constraints
2021-10-23 22:00:58 +03:00
Andrey Volk
f0e42fe8db
[Core] Implement NDLB_line_flash_16 channel variable. Set to true to enable deprecated 0-16 back (rfc4733)
2021-10-23 22:00:57 +03:00
Dragos Oancea
013894ac33
[core] RTP: remove redundant condition when checking payload type of incoming packets.
2021-10-23 22:00:57 +03:00
Dragos Oancea
a5a1fb9dd8
[mod_sofia] fix memleak (presence)
2021-10-23 22:00:56 +03:00
Dragos Oancea
ce9905cdf4
[core] don't hangup call on SRTP errors (new default behaviour)
2021-10-23 22:00:55 +03:00
Chris Rienzo
8e17dca00d
[core] Save position of XML opening tag '>' and XML closing tag '<' in switch_xml_parse_str().
2021-10-23 22:00:55 +03:00
dhruvecosmob
047c3c7217
[Core] Add Unit test script for Check RTP/SAVP transport protocol with crypto attribute.
2021-10-23 22:00:54 +03:00
Andrey Volk
8a2ad233d6
[Core] Do not generate SDP media Descriptions with RTP/SAVP transport protocol when no crypto attribute.
2021-10-23 22:00:54 +03:00
dhruvecosmob
d178632748
[mod_sofia] Add a unit-test for the 3pcc telephone event.
2021-10-23 22:00:54 +03:00
Andrey Volk
f2bb1aba66
[Core] Fix duplicates in SDP
2021-10-23 22:00:53 +03:00
Andrey Volk
f283b1227e
[Core] switch_core_media: copy telephony event over on 3rd party response.
2021-10-23 22:00:53 +03:00
Brian West
01d805d5a0
[mod_sofia] Map 607 to CAUSE_UNWANTED and add 608 to CALL_REJECTED
2021-10-23 22:00:52 +03:00
Andrey Volk
fcaaf20c7d
[Core] switch_ivr: Restrict the misuse of uuid_hold API. Add switch_hold unit-test.
2021-10-23 22:00:52 +03:00
Anthony Minessale
6040f3bf48
[Core] Fix ICE and media delay.
2021-10-23 22:00:52 +03:00
Andrey Volk
76e8c5cc57
[mod_sofia] Fix possible nua handle leak in sofia_handle_sip_i_refer()
2021-10-23 22:00:51 +03:00
Andrey Volk
a065460e5f
[Core] Fix possible deadlock of an rtp_session in handle_ice()
2021-10-23 22:00:51 +03:00
Dragos Oancea
8eaf6911dc
[mod_sofia] unit-tests fix - don't run shaken tests if lib not installed.
2021-10-23 22:00:50 +03:00
Dragos Oancea
31970d51fd
[core] MSRP: fix memleak (ssl)
2021-10-23 22:00:50 +03:00
Brian West
da15a518f7
[mod_conference] Skip dtmf dist to members with skip-dtmf
2021-10-23 22:00:50 +03:00
Andrey Volk
94f437aefc
[Core] Deprecate RFC 2833 Line flash event code 16 according to RFC 4733
2021-10-23 22:00:49 +03:00
Dragos Oancea
392bc26a43
[mod_sofia] fix memleak with invalid hostname as gw/proxy
2021-10-23 22:00:49 +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
Andrey Volk
331e50a77b
[Core] Fix MSRP relaying.
2021-10-23 22:00:47 +03:00
Andrey Volk
729992d5ae
[mod_httapi] Avoid using CURLOPT_WRITEFUNCTION for headers
2021-10-23 22:00:47 +03:00
Chris Rienzo
326edd6b6c
[mod_ssml] replace strncpy() with snprintf() to fix errors reported by newer compilers.
2021-10-23 22:00:47 +03:00
Dragos Oancea
3764871c1a
[mod_conference] json: MFLAG_DIST_DTMF
2021-10-23 22:00:46 +03:00