21081 Commits

Author SHA1 Message Date
Andrey Volk
e94d8cfdfc
Merge pull request #261 from lazedo/kazoo-queues
[mod_kazoo] queue timeout configuration
2020-01-27 13:49:33 +04:00
Andrey Volk
9d9541e350 [Core] Remove dead assignment and dead increment in text_bridge_thread(). 2020-01-26 18:07:15 +04:00
Dragos Oancea
0ec6ec10ae [mod_opusfile] fix play sample rate (don't use original rate, always use 48k), fix EOF, add unit-test. 2020-01-25 20:42:07 +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
Andrey Volk
c39a2b11ce [Core] Fix regression in switch_utils after implementing unit-tests parallel. 2020-01-23 18:08:08 +00:00
Andrey Volk
fb14a03924
Merge pull request #258 from signalwire/parallel
[Unit-test] Run tests in parallel
2020-01-23 18:49:22 +04:00
Andrey Volk
893a3cdc1f [Unit-test] Run tests in parallel 2020-01-23 02:29:57 +04:00
Andrey Volk
5657965039
Merge pull request #254 from dragos-oancea/amr_no_native_file
[mod_amr], [mod_amrwb]:  mark AMR and AMRWB as VBR, don't let mod_native_file load them for playback/recording)
2020-01-22 23:14:34 +04:00
Dragos Oancea
d68a7e2490 FS-10642: [mod_amr], [mod_amrwb]: mark AMR and AMRWB as VBR (don't let mod_native_file load them for playback/recording) 2020-01-22 12:48:30 +00:00
Dragos Oancea
08317fc5c3 [mod_sndfile] fix playing "raw" and other formats ("r8", "r16", "r24", "r32"), add unit-test
[mod_sndfile] add stereo to mono support for file formats that need it (eg: gsm, vox), add unit test for stereo

[mod_sndfile] mono to stereo and stereo to mono unit tests.

[unit-tests] mod_sndfile: don't wait for recording file to be flushed to disk by the core, use switch_ivr_stop_record_session()

[mod_sndfile] fix format "wve" (Psion Series 3)

[mod_sndfile] fix format "htk" (Hidden Markov Model Tool Kit)

[mod_sndfile] fix file format "iff" (AIFF)

[mod_sndfile] fix file format "xi" (FastTracker 2)

[mod_sndfile] fix file format "sds" (Midi Sample Dump Standard)

[uni-tests] add more audio file extensions to sndfile unit tests.

[mod_sndfile] add config file support (with one param currently: "allowed-extensions")

[mod_sndfile] add sample file sndfile.conf.xml to 'testing' and 'vanilla' cfg trees.

[mod_sndfile] free() cfg xml

[unit-tests] mod_sndfile: unload module test.

[unit-tests] mod_sndfile: add conf file unit-test (param that allows only certain file extensions)

[unit-tests] adjusts Makefile.am for new CI (tests)

[unit-tests] adjust path to sound file.

[unit-tests] [mod_sndfile] remove Makefile.am from test/

[unit-tests] [mod_sndfile] fix build (Andrey)
2020-01-21 22:12:08 +00:00
Andrey Volk
1927367cbc [Unit-tests] Fix leaks mod_av and mod_conference tests, fix fonts and paths. 2020-01-21 21:50:08 +04:00
Andrey Volk
4dd86960ba [mod_lua] Fix leaks. 2020-01-21 13:27:06 +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
7effdf0565
Merge pull request #232 from signalwire/modtestmake
[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 14:24:11 +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
Dragos Oancea
c2e80ea1e3 [core] avoid overflow when channel muxing 2020-01-18 00:58:57 +04:00
Seven Du
a28436deb7 [mod_loopback] add pre_answer and null_auto_answer support to null channel 2020-01-17 20:50:08 +04:00
joshebosh
41000cfbba [mod_loopback] add channel var loopback_no_pre_answer 2020-01-17 20:47:38 +04:00
Mike Jerris
5e83ef7e7b [Build-System] Add print_tests make target to output the list of tests being built including in modules 2020-01-14 22:08:16 +04:00
Andrey Volk
a074814b3f [mod_sofia] Add abort-on-empty-external-ip global param disabled by default. 2020-01-11 01:18:14 +04:00
Mike Jerris
4ed2af733d [mod_vmd] deprecate abandoned module that is replaced by mod_avmd 2020-01-10 14:03:34 -07:00
mangshe0
975e6a6032 [mod_av] Fix mod_av not having audio when using avresample 2020-01-10 22:38:38 +04:00
rucc
e90db0d768 [core] fix: don't terminate file before max_samples returned
if file buffer is considerably bigger than max_samples than keeping track of samples read instead of samples returned might result in a significantly shorter play
2020-01-09 15:54:42 +01:00
Andrey Volk
d6094643bb [Core] Fix RTP unit-test by adding switch_rtp_get_core_session(). 2020-01-09 13:06:08 +04:00
Andrey Volk
44ba7eb753 [Unit-tests] Do not initiate sqldb by default unless requested. 2020-01-07 21:17:52 +04:00
Andrey Volk
ebeada67d1 Revert "[mod_opusfile] fix play sample rate (don't use original rate, always use 48k), fix eof."
This reverts commit 937c4a03eb032b4b3d1a8a8ad08c777de7a08314.
2020-01-06 22:47:49 +04:00
Andrey Volk
78aa7ea37f
Merge pull request #202 from dragos-oancea/opusfile_fixes
[mod_opusfile] fix play sample rate (don't use original rate, always use 48k), fix eof.
2020-01-06 22:38:38 +04:00
Andrey Volk
8797a0f480
Merge pull request #180 from signalwire/CF_AUDIO
[mod_portaudio] CF_AUDIO flag is not set
2020-01-06 22:35:03 +04:00
mangshe0
e0d3668e72 [Core] switch_loadable_module wrongly logs that modules.conf loading fails while it's pre_load_modules.conf
fix print log error
2020-01-06 22:30:51 +04:00
Dragos Oancea
937c4a03eb [mod_opusfile] fix play sample rate (don't use original rate, always use 48k), fix eof. 2020-01-03 19:00:26 +00:00
Sebastian Kemper
28d39be261 [core] Fix copy/paste mistake in switch_xml.h
Commit 7907994 introduced a copy/paste mistake that may result in
compile failure:

In file included from ../../../../src/include/switch.h:134,
                 from mod_xml_ldap.c:34:
mod_xml_ldap.c: In function 'xml_ldap_search':
../../../../src/include/switch_xml.h:236:68: error: implicit declaration of function 'switch_xml_toxml_buf'; did you mean 'switch_xml_toxml_buf_ex'? [-Werror=implicit-function-declaration]
 #define switch_xml_toxml_buf(xml, buf, buflen, offset, prn_header) switch_xml_toxml_buf(xml, buf, buflen, offset, prn_header, USE_UTF_8_ENCODING);
                                                                    ^~~~~~~~~~~~~~~~~~~~
mod_xml_ldap.c:764:9: note: in expansion of macro 'switch_xml_toxml_buf'
         switch_xml_toxml_buf(xml, buf, 0, 0, 1);
         ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[7]: *** [Makefile:710: mod_xml_ldap_la-mod_xml_ldap.lo] Error 1

This commit fixes the mistake.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-01-01 15:29:28 +01:00
Andrey Volk
4c1a47d5d1 swigall 2019-12-30 23:39:35 +00:00
Chris Rienzo
9c3f9a9a50 [core] Add SMBF_FIRST flag which forces media bug to front of the list. Add 'f' flag to switch_ivr_displace_session to add displace as first operation on the media stream. (#76) 2019-12-31 03:14:31 +04:00
Andrey Volk
6f0ad146d2 [mod_sofia] Fix crash from double profile unlock on outgoing channel from a gateway on a paused profile 2019-12-31 03:13:03 +04:00
Chris Rienzo
562079376a [core] Add SHUTDOWN_REQUESTED event. Bind to this event to know when ASAP or elegant shutdown has been requested. 2019-12-31 03:11:12 +04:00
Seven Du
13dc7629d6 [mod_sofia] add sip_refer_status_code channel variable to track refer status 2019-12-31 03:08:58 +04:00
Seven Du
2aec6035dd [mod_loopback] add refer mock to null endpoint 2019-12-31 03:07:49 +04:00
Seven Du
c7480bc3fe [mod_loopback] remember dtmf in channel var null_channel_dtmf_queued 2019-12-31 03:05:25 +04:00
Seven Du
79079942de [core] add option to toggle ampersand entities on/off when serialize xml string 2019-12-31 03:03:41 +04:00
Seven Du
917d850b04 [core] remember if a tag is parsed from CDATA 2019-12-31 03:03:04 +04:00
Seven Du
5df8bfcd84 [core] log status code when queue event failure 2019-12-31 02:34:26 +04:00
Mike Jerris
c65cb486d6 [core] change No audio stun for a long time error to warning 2019-12-31 02:32:47 +04:00
Andrey Volk
1486e84aa2 [Core] Fix dereference of null pointer in switch_ivr_originate and switch_ivr_enterprise_originate causing crashes, add unit test. 2019-12-31 02:31:26 +04:00
Andrey Volk
cd5d72ac74 [Core] Database interface: fix potential crash in switch_cache_db_database_interface_flush_handles, code cleanup. 2019-12-31 02:29:12 +04:00
Andrey Volk
cbc8d698a0 FS-11827: [Core] Fix regression in mod_managed due to the type name switch_core_db_handle conflicting with the switch_core_db_handle macro 2019-12-31 02:28:34 +04:00
Andrey Volk
20295c53ef FS-11827: [Core] Add feature allowing FreeSWITCH to store CORE DB (SQLite) fully in memory (core-db-dsn). 2019-12-31 02:28:20 +04:00