Commit Graph
15967 Commits
Author SHA1 Message Date
Andrey Volk 4b4dee8fd2 [mod_dptools] Move tts format from mod_ssml. 2024-12-31 01:03:46 +03:00
Anthony Minessale II 2a2554db99 [mod_ssml] Push done when its flag multi 2024-12-31 00:41:34 +03:00
Patrice Fournier ec25d5df77 [mod_sofia] Added missing %s in one form of contact string
Added missing %s in contact header format string when formatting with
rfc_5626, extension number and IPv6.
2024-12-19 00:23:50 +03:00
Christian Marangi 12b47fe7f9 [mod_verto] Fix memory leak by correctly freeing regex
For mod_verto regex was never freed and was actually leaking memory.
Correctly free the compiled regex to fix the memory leak.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-12-11 16:02:45 +03:00
Andrey Volk 8e694fe10b [Build-System] Upgrade legacy Windows SDK to 10.0 in Visual Studio projects. 2024-12-03 22:59:02 +03:00
Andrey Volk 1a7090fc66 swigall 2024-11-05 17:40:30 +00:00
s3rj1k 07283ac104 [GHA] Add tests. 2024-10-11 20:16:39 +02:00
Jakub Karolczyk b4ebd0936c [core, mod_sofia] Fix codec set deadlock 2024-10-11 16:16:02 +03:00
Andrey Volk 6e8f30ea8b swigall 2024-08-02 19:39:59 +00:00
Andrey Volk 251da2f905 [mod_mariadb] mariadb_send_query: Coverity 1518917 Calling risky function 2024-07-31 16:04:38 +03:00
Andrey Volk 844cce8595 [mod_mariadb] Coverity 1546237 COPY_INSTEAD_OF_MOVE 2024-07-30 19:16:51 +03:00
Andrey Volk 3c47eadd28 [mod_v8] SayPhrase: Coverity 1546153 COPY_INSTEAD_OF_MOVE 2024-07-30 18:24:16 +03:00
Andrey Volk 6fbb49d66c [mod_mariadb] mariadb_dsn: Coverity 1546237 COPY_INSTEAD_OF_MOVE 2024-07-30 17:36:14 +03:00
Andrey Volk 74f386bf94 swigall 2024-06-11 14:44:07 +02:00
Andrey Volk 0c8b5987f0 [mod_fsv] Fix use of 2gb of memory. Fix compiler warnings preventing builds on Bookworm. 2024-06-07 23:03:24 +03:00
Andrey Volk 3b65e27116 [mod_av] Fix use of switch_size_t in fs_rtp_parse_h263_rfc2190(). 2024-06-07 18:19:52 +03:00
Andrey Volk 5b1c2688da [Core, mod_sofia] Add switch_uint31_t type. Fix CSeq bigger than 2^31-1. 2024-05-09 22:20:14 +03:00
Andrey Volk 31cf32d91f Merge pull request #2449 from signalwire/fix_scan_build_mod_amrwb
[mod_amrwb] Fix scan-build 14
2024-04-26 16:37:10 +03:00
Andrey Volk f3ace249f5 Merge pull request #2448 from signalwire/fix_scan_build_mod_avmd
[mod_avmd] Fix scan-build 14
2024-04-26 16:35:53 +03:00
Jakub Karolczyk 84ab90895a [mod_amrwb] Fix scan-build 14 2024-04-26 13:11:54 +00:00
Jakub Karolczyk 597ee613de [mod_avmd] Fix scan-build 14 2024-04-26 12:58:44 +00:00
Jakub Karolczyk ef32d90e91 [mod_av] Fix scan-build 14 2024-04-26 12:41:07 +00:00
Hadžem Hadžić d5ad504723 [mod_vlc] Resolve double mutex lock 2024-04-18 12:06:40 +03:00
Andrey Volk d7d38c7d03 Merge pull request #2381 from signalwire/opus_noop
[mod_opus] Fix status returned by switch_opus_decode(). Should be SWITCH_STATUS_FALSE instead of SWITCH_STATUS_NOOP. Add a unit-test.
2024-02-23 18:36:11 +03:00
Andrey Volk 5ce9057a12 Merge pull request #2392 from signalwire/kazoo
[Core] Remove mod_kazoo from tree
2024-02-22 22:06:32 +03:00
Jakub Karolczyk 49029c8575 [mod_sofia] Set missing CF_3PCC flag 2024-02-22 19:23:40 +03:00
Andrey Volk 70d76bcc0e [Core] Remove mod_kazoo from tree 2024-02-21 21:27:35 +03:00
Andrey Volk 647035c323 [mod_opus] Fix status returned by switch_opus_decode(). Should be SWITCH_STATUS_FALSE instead of SWITCH_STATUS_NOOP. Add a unit-test. 2024-02-06 00:36:35 +03:00
Anton Olofsson 9df3076f29 [mod_event_socket] Check if listener is running before pushing more logs or events to its queue
This fixes a possibility for MAX_MISSED to be exceeded if more logs are
attempted to be pushed to the listener's queue after running kill_listener but
before the listener thread gets CPU time and removes itself.

On a heavily loaded system with a lot of logs in the event dispatch queue
these excessive logs may prove fatal since socket_logger itself will produce
logs about the full queue, resulting in a circular situation of never-ending logs.

The same logic was applied to event_handler after finding the same behaviour
mentioned in signalwire/freeswitch#2143.
2024-01-29 19:05:45 +03:00
Dragos Oancea 8b7a8c4aea [core] SDP: replace SIP lingo in SDP offer/answer. 2024-01-26 21:01:32 +03:00
d148a3e412 [mod_amr, mod_amrwb] Fix input data corruption
* Fix input data corruption in AMR and AMRWB codecs

* [amr/amrwb] Check encoded frame size before decoding

* [mod_amr, mod_amrwb] Coding guidelines cleanup.

---------

Co-authored-by: Dmitry Kunilov <dmitry.kunilov@upm.solutions>
Co-authored-by: Andrey Volk <andywolk@gmail.com>
2024-01-24 16:50:08 +03:00
mahald d3c60820d7 [mod_amqp] Adjusting to Appropriate Log Level for Message
* [mod_amqp] Adjusting to Appropriate Log Level for Message

Refined Logging Level for FreeSWITCH's mod_amqp: The logging level for the AMQP module in FreeSWITCH has been updated from 'warning' to 'debug'. This adjustment ensures a more suitable level for the log message and eliminates any potential impact on production environments. Previously, the 'warning' level would lead to unnecessary log entries for each individual message, although there was no actual warning condition. This change improves logging efficiency and appropriateness for mod_amqp's operations within FreeSWITCH.

* [MOD_AMQP] Change LogLevel to DEBUG1 as it is more appropriate for this message
2024-01-10 19:01:26 +03:00
Andrey Volk 6ae8ce604a swigall 2023-12-22 17:12:41 +00:00
Andrey Volk 2e7424169e [mod_conference] Remove static from cJSON vars in conference_jlist 2023-12-19 22:42:54 +03:00
Andrey Volk f7e19e5134 [mod_sofia] BYE Reason header was limited in length. 2023-12-11 22:48:00 +03:00
Arun Raghavan f05b7507aa [mod_conference] Avoid a race in member->read_impl access
The conference output loop accesses the member's read_impl while
resampling. The output loop also spawns off the input loop thread, which
is where the member->read_impl is actually initialised. This results in
an uncommon race where the output loop sometimes gets an uninitialised
member->read_impl and bails with logs something like this:

2023-10-12 18:19:01.436844 [DEBUG] conference_loop.c:1340 Setup timer soft success interval: 20  samples: 960 from codec L16
2023-10-12 18:19:01.436844 [DEBUG] conference_loop.c:1497 Outbound conference channel answered, setting CFLAG_ANSWERED
2023-10-12 18:19:01.436844 [NOTICE] switch_core_media.c:15852 Activating write resampler
2023-10-12 18:19:01.436844 [DEBUG] switch_core_media.c:16097 Engaging Write Buffer at 1920 bytes to accommodate 0->1920
2023-10-12 18:19:01.436844 [ERR] switch_core_media.c:16112 Write Buffer 0 bytes Failed!

As a solution, we initialise the member->read_impl even before we start
up the input loop, so that this race can never happen.
2023-11-07 09:42:27 -05:00
Andrey Volk f5a41d3092 [mod_pgsql] Coverity: 1227660 Logically dead code 2023-10-05 18:05:32 +03:00
Andrey Volk 5c289cc063 swigall 2023-08-13 16:00:05 +00:00
Andrey Volk 113889b14d Merge pull request #1554 from wmasilva/mod_verto-msg_event_add_context_header
[mod_verto] Add context into msg event header
2023-08-11 20:08:31 +03:00
Sergei RozhkovandSergei Rozhkov c5be6262b4 [mod_mariadb] Fix "DeadLock. The retries are over." message.
Co-authored-by: Sergei Rozhkov <git@zserg.ru>
2023-08-11 19:53:32 +03:00
António Silva 558d3a6b11 [mod_verto] Add context into msg event header 2023-08-11 18:36:47 +03:00
Seven Du 9cad385930 [mod_logfile] add logfile open error log and fixes a missing \n 2023-08-11 14:21:59 +03:00
Andrey Volk 1f364254a6 Merge pull request #2181 from signalwire/shout
[mod_shout] Replace deprecated meta functions with shout_set_meta()
2023-07-25 03:27:16 +03:00
Andrey Volk 820e42aa89 Merge pull request #2178 from signalwire/rtmp
[mod_rtmp] Add OpenSSL 3 support.
2023-07-25 03:04:26 +03:00
Andrey Volk 47e18be18d [mod_shout] Replace deprecated meta functions with shout_set_meta() 2023-07-25 02:49:51 +03:00
Andrey Volk f7e5ae793e Merge pull request #2175 from signalwire/curl
[Core, mod_cidlookup, mod_curl, mod_httapi, mod_http_cache, mod_kazoo, mod_shout] Add new switch_curl_mime APIs replacing switch_curl_process_form_post_params() and make code be compatible with libcurl>=7.87.0
2023-07-25 01:28:57 +03:00
Andrey Volk 64f8ff03be [Core, mod_mariadb, mod_ilbc] Fix build on gcc 12. 2023-07-25 00:25:53 +03:00
Andrey Volk 2ef59577a9 [mod_rtmp] Add OpenSSL 3 support. 2023-07-24 23:47:47 +03:00
Andrey Volk 5966077030 [Core, mod_cidlookup, mod_curl, mod_httapi, mod_http_cache, mod_kazoo, mod_shout] Add new switch_curl_mime APIs replacing switch_curl_process_form_post_params() and make code be compatible with libcurl>=7.87.0 2023-07-24 23:40:27 +03:00
Andrey Volk 1b58c8bdd0 [mod_skinny] Fix build on Debian 12: error: array subscript 'skinny_message_t {aka struct skinny_message}[0]' is partly outside array bounds 2023-07-24 21:15:52 +03:00