1157 Commits

Author SHA1 Message Date
lazedo
43e0d21534
[mod_kazoo] add kz_contact api 2020-09-16 02:11:09 +01:00
Ciprian
5ce4855a1e
[core] Enable MSRP over IPv6
* [core] Enable MSRP over IPv6
* [core] SWITCH_SO_IPV6_V6ONLY socket option
2020-09-15 13:42:22 +04:00
Ciprian
9c01bd4c78
[mod_rayo] Enable -fno-common compilation 2020-09-01 20:13:28 +04:00
Mike Jerris
cdb4810f8a [Build-System] Remove mod_freetdm from spec file, fix compile errors on CentOS 2020-08-14 18:49:39 +04:00
Andrey Volk
0275ea1eb4 [Build-System] Use $(DefaultPlatformToolset) so it's easier to build using newer Microsoft Visual Studio versions. 2020-05-25 14:18:25 +04:00
Mike Jerris
838f62a743 [mod_event_socket] Fix hangup race with listener_thread of socket application in async mode 2020-05-15 15:18:41 -06:00
VCC Live/Core
2d6e2e2fa3 [mod_erlang_event] Fix segfault in destroy_listener() 2020-05-07 03:14:18 +04:00
lazedo
343f031915 [mod_kazoo] add event stream connected time 2020-03-24 10:54:16 +00:00
lazedo
3a0ee19f5b
[mod_kazoo] maintenance
* [mod_kazoo] add configured sleep time between each io fault

* [mod_kazoo] add configured delay  before fetching initial configuration

* [mod_kazoo] add explicit handling of http_cache for kz_moh
2020-03-13 20:19:21 +04:00
lazedo
1f268e0292
[mod_kazoo] maintenance
* [mod_kazoo] add kz_eval api

* [mod_kazoo] use session if available in first-of

* [mod_kazoo] handle bridge variables

* [mod_kazoo] allow time for erlang node to initialize

* [mod_kazoo] add kz_moh

* tries to start moh from previous unhold
2020-03-13 01:44:19 +04:00
Andrey Volk
d1ab723582
Merge pull request #479 from dragos-oancea/mod_erlang_event-uninitialized-value
[mod_erlang_event] scan-build: Function call argument is an uninitialized value
2020-03-12 20:24:29 +04:00
lazedo
592689c253
[mod_kazoo] add checks, fixes & defaults
* [mod_kazoo] set default on expand headers

* [mod_kazoo] use simple var reference in default config

* [mod_kazoo] fix kz_expand

* [mod_kazoo] check if profile for agent is valid

* [mod_kazoo] reorder code in kazoo endpoint
2020-03-06 17:56:07 +04:00
Dragos Oancea
731d8f027e [mod_erlang_event] scan-build: Function call argument is an uninitialized value 2020-03-06 11:47:16 +00:00
Andrey Volk
bd3982d607
Merge pull request #462 from dragos-oancea/mod_amqp-nullptrs
[mod_amqp] scan-build: Multiple dereference of null pointer (loaded from variable 'active')
2020-03-06 00:52:54 +04:00
Andrey Volk
59551f0fd0
[mod_kazoo] some fixes & enhancements
* [mod_kazoo] address scan-build warnings

* [mod_kazoo] don't use switch_core_session_force_locate

* [mod_kazoo] add loglevel support per event

* [mod_kazoo] add option to serialize as array

* [mod_kazoo] handle verbose fields

* [mod_kazoo] handle _body header field

* [mod_kazoo] ensure raw json is valid

* [mod_kazoo] encode json number

encodes double as unsigned long long if possible

note: file was formatted

* [mod_kazoo] fix tweaks configuration

* [mod_kazoo] move headers to proper place

* to use Target-Node in filtering
  we need to add and then remove it
  since the next node uses the same event
  to build the message

* [mod_kazoo] handle cleanup in new_event_stream

* [mod_kazoo] do not decode _json_ headers

* [mod_kazoo] add kz_cdr event

* fires the event in report state
* adds json serialized parts
  that can be included
  in event message
* moves history funcs from
  kazoo_commands to kazoo_cdr

* [mod_kazoo] format default configuration

* [mod_kazoo] validate bracket creation

* [mod_kazoo] use single fd for kz_http_put

* [mod_kazoo] add uuid to kz_expand
2020-03-05 20:48:40 +04:00
Dragos Oancea
746d5c3919 [mod_amqp] scan-build: Multiple dereferences of null pointer (loaded from variable 'active') 2020-02-28 13:45:28 +00:00
Andrey Volk
baeb11c208
Merge pull request #437 from dragos-oancea/mod_amqp-nullptr-deref
[mod_amqp] scan-build: Dereference of null pointer (loaded from variable 'active') - mod_amqp_connection_open()
2020-02-27 00:01:26 +04:00
Andrey Volk
996daffb40
Merge pull request #429 from dragos-oancea/mod_erlang_event-nullptr-deref
[mod_erlang_event] scan-build: Access to field 'rwlock' results in a dereference of a null pointer (loaded from variable 'listener')
2020-02-26 23:47:56 +04:00
Andrey Volk
4bb96f4bcd
Merge pull request #426 from signalwire/mod_json_cdr
[mod_json_cdr] scan-build: Fix dead assignments.
2020-02-26 23:43:37 +04:00
Dragos Oancea
89555c2151 [mod_amqp] scan-build: Dereference of null pointer (loaded from variable 'active') - mod_amqp_connection_open() 2020-02-25 22:09:33 +00:00
Dragos Oancea
1ccd75c94b [mod_erlang_event] scan-build: Access to field 'rwlock' results in a dereference of a null pointer (loaded from variable 'listener') 2020-02-25 21:30:10 +00:00
Andrey Volk
05a7914b8e [mod_json_cdr] scan-build: Fix dead assignments. 2020-02-26 01:18:45 +04:00
Andrey Volk
39453fbcdc [mod_odbc_cdr] scan-build: Fix dereference of null pointer and a dead assignment. 2020-02-26 00:58:51 +04:00
lazedo
30f5fdd1da [mod_kazoo] : simplify kz_att_xfer 2020-01-24 16:40:53 +00:00
lazedo
be9888d74c [mod_kazoo] add configuration for queue timeouts
* implements ei_queue_pop that calls
  switch_queue_trypop or switch_queue_pop_timeout
  depending on timeout value

* default for sender_timeout is set to 0
  to bring back previous behaviour of
  using switch_queue_trypop when fetching
  messages to be sent to erlang node
2020-01-24 16:39:51 +00:00
lazedo
93fdf2d9d7 [mod_kazoo] Fix potential memory leaks
* fixes several potential memory leaks
* formatting
* fixes parameter name
* logs unsupported parameters
* fixes default event profile
* fixes unconfigured bindings
2020-01-20 20:12:05 +04:00
Andrey Volk
f1c1f9085c
Merge pull request #241 from signalwire/mod_rayo_leak
[mod_rayo] Fix leak in the mod and in tests.
2020-01-20 13:44:50 +04:00
Andrey Volk
520de70f4f [mod_rayo] Fix leak in the mod and in tests. 2020-01-20 03:04:48 +04:00
Andrey Volk
852e4a9471 [mod_rayo] Fix heap use after free and a possible buffer overflow. 2020-01-20 00:20:30 +04:00
Andrey Volk
751d5ff55b [Unit-tests] Place module tests into their module's Makefile.am, fix tests, add missing Makefile.am to mod_png, implement recursive make check. 2020-01-18 09:58:42 +00:00
lazedo
ac77de715b [mod_kazoo] use globals hostname to create nodename in create_ei_cnode 2019-12-04 05:58:08 +00:00
lazedo
731b0eb8fd [mod_kazoo] add kz_set_hostname declaration 2019-12-03 23:24:47 +00:00
lazedo
1afad3413b [mod_kazoo] missing call to kz_set_hostname 2019-12-03 21:45:15 +00:00
Andrey Volk
f8dc87bd18 [mod_event_socket] Fix "Listener session is null" problem - regression from previous commit to the mod. 2019-11-13 19:28:25 +04:00
Andrey Volk
a288c3d969
Merge pull request #117 from lazedo/kazoo-ctx
[mod_kazoo] recurse context runtime vars
2019-11-12 01:25:14 +04:00
Vallimamod Abdullah
7f63483138 [mod_event_socket] Add null pointer checks on listener session and socket 2019-11-11 22:58:18 +04:00
lazedo
3c6d47c293 [mod_kazoo] recurse context runtime vars 2019-11-11 18:09:26 +00:00
Andrey Volk
7861ec937e
Merge pull request #64 from cdosoftei/amqp-reconnect
[mod_amqp] open logging and produced connections from within their threads
2019-11-11 20:11:59 +04:00
Andrey Volk
55afe220d3
Merge pull request #71 from cdosoftei/amqp-queue-properties
[mod_amqp] configurable commands queue properties
2019-11-11 20:11:30 +04:00
lazedo
998e322f46 [mod_kazoo] add kz-endpoint-runtime-context 2019-11-07 22:42:28 +00:00
lazedo
8d2174d707 [mod_kazoo] several fixes & code cleanup 2019-10-31 11:06:16 +00:00
cdosoftei
5244a64d4e
[mod_amqp] configurable commands queue properties 2019-10-22 15:22:00 -04:00
cdosoftei
5f628c0090
[mod_amqp] open logging and produced connections from within their respective threads 2019-10-17 15:38:38 -04:00
cdosoftei
7e91927278
[mod_amqp] Properly parse out heartbeat parameter 2019-10-15 12:37:47 -04:00
lazedo
318e5d0d6d
[mod_kazoo] fix xml leak when event-filter is not available 2019-10-13 12:21:22 +01:00
Sebastian Kemper
fc41980f19 [mod_event_multicast] Fix memory leak
Taken from FS-11193:

In "event_handler()" function, when encrypting data using openssl 1.1.0,
the context ctx is allocated by "EVP_CIPHER_CTX_new()", then data is
encrypted, and at the end, EVP_CIPHER_CTX_cleanup is called. This
function resets the context (the function itself is deprecated, and has
been renamed to "EVP_CIPHER_CTX_reset) so that it can be used again. The
correct call would be to "EVP_CIPHER_CTX_free()", which frees the
memory. The code for openssl 1.0 is OK, since the "ctx" struct is kept
in stack.  The same thing happens during decryption. "ctx" is allocated,
but never freed.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-12 21:43:14 +02:00
Sergey Safarov
6704d3aabe
FS-11917: [mod_event_socket] Added error logging if cannot parse IP address 2019-09-17 07:40:45 +03:00
Andrey Volk
eee07bd95f Merge pull request #1802 in FS/freeswitch from ~ITALOROSSI/freeswitch:feature/FS-12022 to master
* commit '759783532dc7c34b4f8ab27e63438a350bfbc256':
  FS-12022: [mod_event_socket] Add Job-Owner-UUID with session uuid when using bgapi inside outbound socket
2019-08-27 12:30:43 -05:00
David Grant
7a4a988dcb FS-11993 [mod_http_cache][mod_smpp] fix gcc errors when building on rpi4 buster (strncpy to snprintf)
FS-11993 [mod_http_cache][mod_smpp] fix gcc errors when building on rpi4 buster (strncpy to snprintf)
2019-08-24 22:48:59 -05:00
Ítalo Rossi
759783532d FS-12022: [mod_event_socket] Add Job-Owner-UUID with session uuid when using bgapi inside outbound socket 2019-08-22 16:35:34 -03:00