Commit Graph

35756 Commits

Author SHA1 Message Date
Andrey Volk 55313696db [Core] Remove unused count variable from switch_core_session_execute_exten() 2023-03-31 22:48:11 +03:00
Andrey Volk d1639199c3
Merge pull request #2014 from signalwire/prototype
[Core] Fix switch_core_sqldb_destroy() function declaration.
2023-03-31 21:00:42 +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
Andrey Volk c540af16ad
Merge pull request #2011 from signalwire/coverity_24032023_mod_pgsql
[mod_pgsql] Coverity CID 1468401 (Resource leak)
2023-03-30 19:59:44 +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
Andrey Volk e479f1b648
Merge pull request #1639 from signalwire/docker
[Documentation] Fix typo in README.md
2023-03-28 17:39:41 +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 245171d812
Merge pull request #1954 from signalwire/session_table_lock
[Core] Fix race condition of session_table hash in switch_core_session_request_uuid()
2023-03-02 18:05:37 +03: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 3307083f8b Bump sofia-sip library requirement to version 1.13.14 2023-02-23 00:57:09 +03:00
Andrey Volk c39034b729
Merge pull request #1972 from signalwire/winlibs
[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 21:03:42 +03: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
Andrey Volk 5007659488
Merge pull request #1967 from signalwire/security-policy
Create SECURITY.md
2023-02-17 23:54:46 +03:00
Chris Rienzo d4291b8113
Create SECURITY.md 2023-02-17 15:24:03 -05:00
Andrey Volk 39958a31c3
Merge pull request #1966 from s3rj1k/dockerfile
[mod_shout] Enable module in Dockerfile example.
2023-02-16 21:12:11 +03:00
s3rj1k 4f76580785 [mod_shout] Enable module in Dockerfile example.
Signed-off-by: s3rj1k <evasive.gyron@gmail.com>
2023-02-16 18:11:28 +02: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 0f15bde800 version bump 2023-02-04 01:21:44 +03:00
Andrey Volk 3cb697c495 swigall 2023-02-03 18:46:31 +00:00
Andrey Volk 06f45d2872 [Build-system] Update libks version requirement to 1.8.2 2023-02-02 19:54:43 +03:00
Andrey Volk e037cd09c6
Merge pull request #1938 from signalwire/ks182
[Build-System] Update libks to 1.8.2 and signalwire-client-c to 1.3.2 on Windows
2023-01-26 00:04:55 +03:00
Andrey Volk b241a82d83 [Build-System] Update libks to 1.8.2 and signalwire-client-c to 1.3.2 on Windows 2023-01-25 18:42:48 +03:00
Adrian Fretwell 3326f4ec57
[mod_python3] Create an event on python_fetch() 2023-01-24 18:14:29 +03:00
Andrey Volk f9a9c48d81
Merge pull request #1936 from signalwire/xml_curl_event
[mod_xml_curl] Fix leaking event in xml_url_fetch()
2023-01-24 18:12:18 +03:00
Andrey Volk 889afccad0 [mod_xml_curl] Fix leaking event in xml_url_fetch() 2023-01-24 14:14:27 +03:00
Len c013a7dc64 [Configuration] Use : not , in rtp_secure_media 2023-01-24 02:04:56 +03:00