21902 Commits

Author SHA1 Message Date
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