Commit Graph

35732 Commits

Author SHA1 Message Date
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 bb682fc5b4
Merge pull request #1851 from signalwire/nodupremove
[Core] Remove deprecated SWITCH_STACK_NODUP flag. Change switch_event_add_header_string() behavior to always dup.
2022-11-08 02:36:35 +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 9675ef689f
Merge pull request #1856 from signalwire/nodupremovewithflag
[Core] SWITCH_STACK_NODUP flag is deprecated and will be soon removed. Introduce switch_event_add_header_string_nodup() API.
2022-11-08 01:43:14 +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 eb6c2333dd
Merge pull request #1857 from signalwire/smpp
[mod_smpp] Fix use of switch_event_add_header_string with SWITCH_STACK_NODUP.
2022-11-08 01:14:48 +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
Andrey Volk 6184eb5ffd
Merge pull request #1848 from dragos-oancea/nuke-zrtp-
[core][mod_sofia] remove ZRTP (deemed obsolete).
2022-10-28 22:50:14 +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 fee17e1480
Merge pull request #1841 from signalwire/rpmshared
[Packaging] Shared libraries instead of static in freeswitch devel CentOS package.
2022-10-25 20:45:34 +03:00
Andrey Volk d07b8af199 [Packaging] Shared libraries instead of static in freeswitch devel CentOS package. 2022-10-25 19:36:14 +03:00
Andrey Volk 442ebe344b
Merge pull request #1838 from signalwire/static
[Build-System] Disable static build by default on Linux.
2022-10-24 22:44:16 +03:00
Andrey Volk 5bfb9a935f [Build-System] Disable static build by default on Linux. 2022-10-24 21:24:07 +03:00
Andrey Volk 347b7f530d version bump 2022-10-15 01:16:48 +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
Konstantin S. Vishnivetsky 9c7c77e259
[fs_cli] Add: -s key adding log events filter UUID on fs_cli startup
* Add: -s key adding log events filter UUID on fs_cli startup
* Add: long option --set-log-uuid
2022-10-06 12:12:05 +03:00
Clock c71ed98add
[mod_shout] Replace space with tab in Makefile.am 2022-10-04 20:19:10 +03:00
Andrey Volk 98d2e6212c
Merge pull request #1804 from jakubkarolczyk/fix_late_offer
[mod_sofia] Fix handling of late offer
2022-09-09 16:32:35 +03:00
Jakub Karolczyk 71aa3cb03c [mod_sofia] Fix handling of late offer 2022-09-09 11:07:19 +01:00
Andrey Volk 7b18e8c902
Merge pull request #1794 from Len-PGH/patch-3
[Build-System] Add signalwire.conf.xml to the freeswitch.spec
2022-09-06 22:31:20 +03:00
Len 82cec3104e
[Build-System] Add signalwire.conf.xml to the freeswitch.spec 2022-09-06 15:30:35 -04:00
Andrey Volk 4187483878
Merge pull request #1793 from Len-PGH/patch-2
[Configuration] Add vanilla autoload_configs signalwire.conf.xml
2022-09-06 20:54:16 +03: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
Len 741d163284
[Configuration] Add vanilla autoload_configs signalwire.conf.xml 2022-09-06 11:16:20 -04: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 ac3011ff66
Merge pull request #1783 from signalwire/jingle
[Configuration] Remove jingle_profiles
2022-08-30 01:42:31 +03:00
Andrey Volk 6d208d3115 [Configuration] Remove jingle_profiles 2022-08-30 01:41:22 +03:00
Andrey Volk c1ef2e27a1
Merge pull request #1782 from signalwire/mrcp
[Build-System] mrcp: cleanup freeswitch.spec
2022-08-30 01:15:26 +03:00
Andrey Volk 6d73982cf4 [Build-System] mrcp: cleanup freeswitch.spec 2022-08-30 01:11:04 +03:00
Andrey Volk 5ce9308b64
Merge pull request #1781 from signalwire/ssml
[mod_ssml] Add deps rule to the Makefile.am
2022-08-30 00:25:45 +03:00
Andrey Volk 91799e0fc7 [mod_ssml] Add deps rule to the Makefile.am 2022-08-30 00:17:52 +03:00
Andrey Volk 9df85738e1
Merge pull request #1780 from signalwire/remove-apr-utils-and-rename-apr
Remove apr utils and rename apr
2022-08-29 23:31:15 +03:00
Andrey Volk 9311ee7dc2 [Build-System] Remove dingaling.conf.xml 2022-08-29 20:17:13 +03:00
Andrey Volk 193316b244 [Build-System] Remove mod_unimrcp from the Windows build. 2022-08-29 20:17:12 +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 5c2726f413 [core] rename lib apr symbols to fspr 2022-08-29 20:17:08 +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 c1a9e98e83
Merge pull request #1778 from signalwire/testendstab
[Unit-tests] Improve stability of some tests.
2022-08-29 16:36:41 +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