Commit Graph

21487 Commits

Author SHA1 Message Date
Seven Du 2a54e08019 [core, mod_loopback] Add test case for group confirm over loopback endpoints 2020-05-08 01:12:17 +04:00
lazedo 7264426386 [mod_loopback] clear confirm properties from a-leg 2020-05-08 01:11:52 +04:00
Seven Du fcda4c6a06 [core] add support to set group confirm on each leg 2020-05-08 01:11:44 +04:00
Mike Jerris bfd02beef8 [core] refactor originate internals (oglobals) 2020-05-08 00:28:57 +04:00
Mike Jerris 598d52d5fb [mod_sofia] remove blank display name that can show up in from uri 2020-05-07 03:18:16 +04:00
Andrey Volk d9d49920cb [mod_httapi] Fix leak of context->url_params 2020-05-07 03:16:58 +04:00
Andrey Volk 1956911e4b [Core] Fix locking and a memory leak in switch_core_session_write_video_frame() and switch_core_session_write_text_frame(). 2020-05-07 03:15:43 +04:00
VCC Live/Core 2d6e2e2fa3 [mod_erlang_event] Fix segfault in destroy_listener() 2020-05-07 03:14:18 +04:00
Andrey Volk b847935ce2 [Core] Fix dereference of null pointer in video_bridge_thread() when codec b is not yet initialized. 2020-05-07 03:12:51 +04:00
Andrey Volk b31c47eab7 [mod_shout] Reduce log level from error to warning for "Error opening %s (invalid rate or channel count)" 2020-05-07 03:10:37 +04:00
Mike Jerris 3089e8e548 [mod_av] reduce some errors to warnings in logs 2020-05-07 03:08:42 +04:00
Andrey Volk 865de72cee [core,mod_verto,mod_xml_rpc] Fix use of deprecated CRYPTO_set_id_callback(). 2020-05-07 03:00:03 +04:00
Chris Rienzo bc9515468e [test] Fix out of bound buffer read in switch_test 2020-05-07 02:58:30 +04:00
Andrey Volk b630dfa79e [Core] switch_rtp: reduce end call due to SRTP failure log level from error to warning. 2020-05-07 02:54:54 +04:00
Andrey Volk 7b46e37318 [Core] switch_rtp: reduce dtls handshake failure level from error to warning. 2020-05-07 02:49:35 +04:00
Andrey Volk 06dfe2e3a4 [mod_sndfile] Reduce error level to warning for "Error Opening File" 2020-05-07 02:48:21 +04:00
Andrey Volk 96c615e353 [mod_av] Reduce error level to warning for "Could not decode frame". 2020-05-07 02:47:19 +04:00
Chris Rienzo 52a17066eb [mod_sofia] Quiet down error when registration credentials are missing 2020-05-07 02:42:01 +04:00
Andrey Volk a198e765fe [mod_conference] Fix memory leaks and a possible deadlock in chat_send(); 2020-05-07 02:40:41 +04:00
Anthony Minessale 55b148f1c3 [mod_verto] Fix packet o death. 2020-05-07 02:36:08 +04:00
Piotr Gregor 7c795ea555 [mod_vlc] Fix segfault. 2020-05-07 02:33:51 +04:00
Andrey Volk 8778cda16d [Core] Wait sql threads to spin up. Fixes module_exists, show_codec commands. 2020-05-07 02:26:22 +04:00
Seven Du 16f782f979 [mod_loopback] Don't block channel too long if already hangup, also add option to hangup immediately with cause 2020-05-07 02:21:38 +04:00
Seven Du e0aef355db [core] use switch_core_session_get_partner in sched_hangup to hangup channel also in signalling bond state 2020-05-07 02:18:56 +04:00
lazedo ce019aa566 [mod_loopback] fix early_set_loopback_id for b leg 2020-05-07 02:10:30 +04:00
surendrasignalwire 12f56e293d [Core] Fix one way audio after executing the uuid_recv_dtmf with dtmf string ending with w or W. 2020-05-07 02:08:49 +04:00
Andrey Volk 53cd06900c [Core] Fix leak in switch_xml_set_attr(). 2020-04-28 21:43:58 +04:00
Jonas Jelten 30cf345b41 [mod_sofia] Fix rtp config ipv4/ipv6 index confusion 2020-04-28 13:13:13 +02:00
Nick Lemberger 4fa0870ef0 [mod_sofia] Fix potential buffer overrun when rewrite_multicasted_fs_path is enabled. 2020-04-01 00:11:24 +04:00
lazedo 343f031915 [mod_kazoo] add event stream connected time 2020-03-24 10:54:16 +00:00
Jourdan Templeton 5805addbeb
[mod_sofia] Add new gateway param 'contact-in-ping' to support for Microsoft Teams Direct Routing 2020-03-23 23:29:53 +04:00
Nathan Neulinger 477086b3e2
[mod_mariadb] Fix reconnect during db failover/restart 2020-03-23 20:55:00 +04:00
Andrey Volk d07e1654a2 [mod_verto] Fix scan-build warnings in swig and enable scan-build on Drone 2020-03-22 14:14:14 +04:00
Andrey Volk d67d09705a [mod_verto] Fix Makefile.am and reswig 2020-03-22 01:35:58 +00:00
Andrew Topp dbea1482e7 [mod_xml_curl] Allow XML_CURL_MAX_BYTES to be configured at runtime per-binding
* Added "response-max-bytes" config param for mod_xml_curl
* XML_CURL_MAX_BYTES still used as default if param omitted
* Added example configuration to module example config.
2020-03-15 14:05:53 +10: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 06f905de9d
Merge pull request #484 from dragos-oancea/mod_amrwb-fixleak-xml
[mod_amrwb] fix memory leak at load time (xml)
2020-03-12 21:06:44 +04:00
Andrey Volk dd9092abe9
Merge pull request #483 from dragos-oancea/mod_amr-fixleak-xml
[mod_amr] fix memory leak at load time (xml)
2020-03-12 21:05:23 +04:00
Andrey Volk da4068e744
Merge pull request #482 from dragos-oancea/mod_portaudio-nullptr
[mod_portaudio] scan-build: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'previous').
2020-03-12 21:03:50 +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
Andrey Volk 51cc971d45
Merge pull request #478 from dragos-oancea/mod_redis-undefined-val
[mod_redis] scan-build: Assigned value is garbage or undefined
2020-03-12 20:22:43 +04:00
Andrey Volk 396d07c1a3
Merge pull request #476 from dragos-oancea/mod_unimrcp-nullptr
[mod_unimrcp] scan-build: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'mod_profile')
2020-03-12 20:21:20 +04:00
Andrey Volk abe3aea117
Merge pull request #475 from dragos-oancea/mod_skinny_vals-never-read
[mod_skinny] scan-build: Dead assignments
2020-03-12 19:28:06 +04:00
Ítalo Rossi 87a64eab18
[mod_verto] Setting transfer_disposition to recv_replace on aleg 2020-03-12 19:23:40 +04:00
Andrey Volk 64da1fd098
Merge pull request #477 from dragos-oancea/mod_verto-cur-val-never-read
[mod_verto] scan-build: Value stored to 'cur' is never read
2020-03-10 22:56:10 +04:00
Anthony Minessale cc10e8e044 [Core] Update switch_image.h after recent libvpx update to v1.8.1. 2020-03-06 21:14:36 +04:00
Dragos Oancea 65fa90894e [core] scan-build: Value stored to 'xcheck_jitter' is never read 2020-03-06 19:38:16 +04:00
Dragos Oancea 165ca28fa1 [core] scan-build: Value stored to 'status' is never read - switch_core_session_write_frame() 2020-03-06 19:36:04 +04:00
Dragos Oancea 60cf5a0a3c [core] scan-build: Value stored to 'ip' is never read - switch_core_media_recover_session() 2020-03-06 19:33:46 +04:00
Dragos Oancea 87ab38d281 [core] scan-build: Value stored to 'pass_fmtp' is never read - switch_core_media_gen_local_sdp() 2020-03-06 19:32:28 +04:00
Dragos Oancea e6c52efe64 [core] scan-build: Value stored to 'timer_name' is never read - switch_core_media_activate_rtp() 2020-03-06 19:29:52 +04:00
Dragos Oancea c7eee4ba76 [core] scan-build: Value stored to 'ptime' is never read 2020-03-06 19:28:09 +04:00
Dragos Oancea e2e6d13cd8 [mod_amrwb] fix memory leak at load time (xml) 2020-03-06 15:08:29 +00:00
Dragos Oancea d0502b405e [mod_amr] fix memory leak at load time (xml) 2020-03-06 15:00:33 +00: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 0b5c7307a7 [mod_portaudio] scan-build: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'previous').
Value stored to 'codec_ms' is never read.
2020-03-06 13:40:03 +00:00
Dragos Oancea 731d8f027e [mod_erlang_event] scan-build: Function call argument is an uninitialized value 2020-03-06 11:47:16 +00:00
Dragos Oancea 389a917998 [mod_redis] scan-build: Assigned value is garbage or undefined 2020-03-06 11:17:03 +00:00
Dragos Oancea 56e82bd9c0 [mod_verto] scan-build: Value stored to 'cur' is never read 2020-03-06 11:09:29 +00:00
Dragos Oancea 480aff54e4 [mod_unimrcp] scan-build: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'mod_profile') 2020-03-06 11:04:01 +00:00
Dragos Oancea e821be1c18 [mod_skinny] scan-build: Dead assignments 2020-03-05 23:54:19 +00:00
Dragos Oancea 3e3445d06c [mod_cv] scan-build: Null pointer passed as an argument to a 'nonnull' parameter.
Access to field 'shape_scale' results in a dereference of a null pointer.
Dead assignments.
2020-03-05 23:42:50 +00:00
Andrey Volk 90a7fc7125
Merge pull request #464 from dragos-oancea/mod_fifo-uninitialized-value
[mod_fifo] scan-build: Function call argument is an uninitialized value, fix dead assignments
2020-03-06 00:58:05 +04:00
Andrey Volk efc9613d2b
Merge pull request #463 from dragos-oancea/mod_vlc-nullptr-deref
[mod_vlc] scan-build: Access to field 'context' results in a dereference of a null pointer (loaded from variable 'tech_pvt');
2020-03-06 00:55:35 +04: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 c66c314f57
Merge pull request #461 from dragos-oancea/mod_portaudio-val-never-read
[mod_portaudio] scan-build: Dead assignments
2020-03-06 00:47:38 +04:00
Andrey Volk 368442f638
Merge pull request #459 from signalwire/mod_xml_cdr
[mod_xml_cdr] scan-build: Fix dead assignments.
2020-03-06 00:46:03 +04:00
Andrey Volk ac328bb2d0
Merge pull request #458 from signalwire/v8
[mod_v8] Fix scan-build warnings.
2020-03-06 00:42:46 +04:00
Andrey Volk 6f24d9b489
Merge pull request #436 from dragos-oancea/mod_redis-potential-memleak
[mod_redis] scan-build: Potential leak of memory pointed to by 'cptr' - cr_morebulk()
2020-03-06 00:40:57 +04:00
Andrey Volk 82b8773f84
Merge pull request #432 from dragos-oancea/mod_rtmp-status--val-never-read
[mod_rtmp] scan-build: Value stored to 'status' is never read - RTMP_INVOKE_FUNCTION(rtmp_i_sendevent)
2020-03-06 00:39:06 +04:00
Andrey Volk 22ed11a49d
Merge pull request #425 from dragos-oancea/mod_rtmp-val-never-read
[mod_rtmp] scan-build: Value stored to 'codec' is never read - rtmp_audio_codec()
2020-03-06 00:36:41 +04:00
Andrey Volk 4dc52cfb4b [Core] Track who calls memory pool destroy. 2020-03-05 23:55:03 +04:00
Chris Rienzo 8e0c0df5b6 [core] Fix switch_vad_process() to properly use result of fvad_process(). Fixes #18 2020-03-05 21:16:33 +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
LarryHemenway 6190fa6242
[Core] switch_rtp: update username to allow size specified in STUN RFC 5389 2020-03-04 02:37:14 +04:00
Dragos Oancea a6d5f46e4a [mod_fifo] scan-build: Function call argument is an uninitialized value, fix dead assignments 2020-02-28 14:55:48 +00:00
Dragos Oancea 3c51052d49 [mod_vlc] scan-build: Access to field 'context' results in a dereference of a null pointer (loaded from variable 'tech_pvt');
Access to field 'pool' results in a dereference of a null pointer (loaded from variable 'acontext')
2020-02-28 14:02:34 +00: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
Dragos Oancea e182ecb58b [mod_portaudio] scan-build: Dead assignments 2020-02-28 13:22:59 +00:00
Andrey Volk 3ebad97489 [mod_xml_cdr] scan-build: Fix dead assignments. 2020-02-28 03:32:46 +04:00
Andrey Volk 7bbec6611c [mod_v8] Fix scan-build warnings. 2020-02-28 03:13:06 +04:00
Dragos Oancea 23ce45fad8 [mod_vlc] scan-build: Value stored to 'vcontext' is never read - av_init_handle() 2020-02-27 20:47:38 +00:00
Andrey Volk 98b263117d
Merge pull request #449 from dragos-oancea/mod_vlc-null-ptr-derefs
[mod_vlc] scan-build: multiple dereferences of a null pointer
2020-02-28 00:41:05 +04:00
Andrey Volk 0f96cae9ac
Merge pull request #450 from dragos-oancea/mod_fifo-val-never-read
[mod_fifo] scan-build: Value stored to 'arg' is never read - xml_callback()
2020-02-28 00:39:39 +04:00
Andrey Volk 04db956c49
Merge pull request #451 from dragos-oancea/mod_java-val-never-read
[mod_java] scan-build: Value stored to 'status' is never read - create_java_vm()
2020-02-28 00:38:38 +04:00
Andrey Volk fdca16a3b0
Merge pull request #452 from dragos-oancea/mod_java-garbage-val
[mod_java] scan-build: Undefined or garbage value returned to caller - run_dtmf_callback()
2020-02-28 00:37:31 +04:00
Andrey Volk 0594177ee0
Merge pull request #454 from dragos-oancea/mod_redis-nullptr-deref
[mod_redis] scan-build: Dereference of null pointer - cr_delete()
2020-02-28 00:35:51 +04:00
Andrey Volk e731517198
Merge pull request #455 from dragos-oancea/mod_voicemail_ivr-previous_msg-val-never-read
[mod_voicemail_ivr] scan-build: Value stored to 'previous_msg' during its initialization is never read - vmivr_menu_navigator()
2020-02-28 00:34:35 +04:00
Dragos Oancea 6b07fa31a4 [mod_skinny] scan-build: Assigned value is garbage or undefined 2020-02-27 14:02:44 +00:00
Dragos Oancea 68e3b52828 [mod_voicemail_ivr] scan-build: Value stored to 'previous_msg' during its initialization is never read - vmivr_menu_navigator() 2020-02-27 13:52:05 +00:00
Dragos Oancea 40745503a1 [mod_redis] scan-build: Dereference of null pointer - cr_delete() 2020-02-27 12:48:35 +00:00
Dragos Oancea c0f315e0a0 [mod_java] scan-build: Undefined or garbage value returned to caller - run_dtmf_callback() 2020-02-27 12:30:30 +00:00
Dragos Oancea 6179166ec6 [mod_java] scan-build: Value stored to 'status' is never read - create_java_vm() 2020-02-27 12:14:55 +00:00
Dragos Oancea 623b9f60e0 [mod_fifo] scan-build: Value stored to 'arg' is never read - xml_callback() 2020-02-27 12:11:16 +00:00
Dragos Oancea e04c8ee92e [mod_vlc] scan-build: multiple dereferences of a null pointer 2020-02-27 11:50:30 +00:00
Dragos Oancea 1a4748a8d0 [mod_rtmp] scan-build: Value stored to 'codec' is never read - rtmp_audio_codec() 2020-02-27 11:01:46 +00:00
Andrey Volk 2d727b7b31
Merge pull request #444 from signalwire/mod_abstraction
[mod_abstraction] scan-build: Fix dead assignment.
2020-02-27 00:09:12 +04:00
Andrey Volk f90c4b411e
Merge pull request #443 from signalwire/mod_callcenter
[mod_callcenter] scan-build: Fix dead initialization.
2020-02-27 00:07:37 +04:00
Andrey Volk 776ae387ae
Merge pull request #442 from signalwire/mod_cidlookup
[mod_cidlookup] Fix dereference of null pointer and optimize use of pool's memory avoiding double-allocations.
2020-02-27 00:06:27 +04:00
Andrey Volk b0d2ffcaec
Merge pull request #440 from signalwire/mod_rss
[mod_rss] scan-build: Fix dead assignments.
2020-02-27 00:05:05 +04:00
Andrey Volk 21577fcdd2
Merge pull request #439 from dragos-oancea/mod_rtmp-profile-nullptr-deref
[mod_rtmp] scan-build: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'profile') - config_profile()
2020-02-27 00:03:23 +04: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 b099d0383d
Merge pull request #441 from signalwire/mod_memcache
[mod_memcache] scan-build: Fix "Uninitialized argument value"
2020-02-26 23:59:24 +04:00
Andrey Volk 0970e392c9
Merge pull request #435 from dragos-oancea/mod_voicemail_ivr-nullptr-arg
[mod_voicemail_ivr] scan-build: Null pointer passed as an argument to a 'nonnull' parameter - SWITCH_STANDARD_APP(voicemail_ivr_function)
2020-02-26 23:57:39 +04:00
Andrey Volk 31c3d10d62
Merge pull request #434 from signalwire/databases
[mod_pgsql,mod_mariadb] Fix scan-build warnings.
2020-02-26 23:55:37 +04:00
Andrey Volk 40251c2cf9
Merge pull request #433 from dragos-oancea/mod_verto-status--val-never-read
[mod_verto] scan-build: Value stored to 'status' is never read - verto_read_text_frame()
2020-02-26 23:53:45 +04:00
Andrey Volk caec8a3054
Merge pull request #431 from dragos-oancea/mod_oreka-linear-frame--val-never-read
[mod_oreka] scan-build: Value stored to 'linear_frame' is never read oreka_audio_callback()
2020-02-26 23:51:50 +04:00
Andrey Volk 1b07e629c5
Merge pull request #430 from dragos-oancea/mod_vlc-vcontext-val-never-read
[mod_vlc] scan-build: Value stored to 'vcontext' is never read - vlc_file_av_open()
2020-02-26 23:49:32 +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 815f26ec15
Merge pull request #428 from dragos-oancea/mod_skinny-val-never-read
[mod_skinny] scan-build: Value stored to 'profile' is never read - channel_outgoing_channel()
2020-02-26 23:46:49 +04:00
Andrey Volk 0359a36a79
Merge pull request #427 from dragos-oancea/mod_verto-nullptr-arg
[mod_verto] scan-build: Null pointer argument in call to string comparison function - http_run()
2020-02-26 23:45:09 +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
Andrey Volk 827c160fb2
Merge pull request #424 from signalwire/mod_odbc_cdr
[mod_odbc_cdr] scan-build: Fix dereference of null pointer and a dead assignment.
2020-02-26 23:42:07 +04:00
Andrey Volk 01985cf5cf
Merge pull request #423 from signalwire/mod_imagick
[mod_imagick] Remove unused variable.
2020-02-26 23:40:50 +04:00
Andrey Volk e3e4326b63
Merge pull request #422 from signalwire/mod_png
[mod_png] Remove unused variable.
2020-02-26 23:39:28 +04:00
Andrey Volk b75a42728d
Merge pull request #421 from signalwire/mod_portaudio_stream
[mod_portaudio_stream] scan-build: Fix dead assignment.
2020-02-26 23:37:54 +04:00
Andrey Volk 462e946320
Merge pull request #419 from dragos-oancea/mod_unimrcp-val-never-read
[mod_unimrcp] scan-build: Value stored to 'lname' is never read - audio_queue_create()
2020-02-26 23:36:18 +04:00
Andrey Volk 22e0beefad
Merge pull request #418 from signalwire/mod_python
[mod_python] scan-build: Fix "Argument with 'nonnull' attribute passed null"
2020-02-26 23:32:20 +04:00
Andrey Volk e475c67b2d
Merge pull request #417 from signalwire/say
[mod_say_xx] Fix multiple dead assignments
2020-02-26 23:28:55 +04:00
Andrey Volk 395afbefaa
Merge pull request #416 from dragos-oancea/mod_amr-nullptr-deref
[mod_amr] scan-build: Array access (from variable 'tocs') results in a null pointer dereference - switch_amr_unpack_oa()
2020-02-26 23:27:25 +04:00
Andrey Volk 2d354257bc
Merge pull request #415 from dragos-oancea/mod_amr-build-val-never-read
[mod_amr] scan-build: Value stored to 'ft' is never read - switch_amr_unpack_be()
2020-02-26 23:19:42 +04:00
Saurabh 26b95eea75
[mod_httapi] Introduction of connect-timeout param 2020-02-26 23:08:21 +04:00
Andrey Volk c6d050d87d [mod_abstraction] scan-build: Fix dead assignment. 2020-02-26 17:02:26 +04:00
Andrey Volk f113efd7ae [mod_callcenter] scan-build: Fix dead initialization. 2020-02-26 16:53:21 +04:00
Andrey Volk 949fcbabe1 [mod_cidlookup] Fix dereference of null pointer and optimize use of pool's memory avoiding double-allocations. 2020-02-26 16:12:32 +04:00
Andrey Volk 69c8b06112 [mod_memcache] scan-build: Fix "Uninitialized argument value" 2020-02-26 15:26:25 +04:00
Andrey Volk 0e8e4fff7d [mod_rss] scan-build: Fix dead assignments. 2020-02-26 14:48:30 +04:00
Dragos Oancea cec9e173d7 [mod_rtmp] scan-build: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'profile') - config_profile() 2020-02-25 23:55:11 +00: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 b53274276f [mod_redis] scan-build: Potential leak of memory pointed to by 'cptr' - cr_morebulk() 2020-02-25 22:04:01 +00:00
Dragos Oancea 8fdda68018 [mod_voicemail_ivr] scan-build: Null pointer passed as an argument to a 'nonnull' parameter - SWITCH_STANDARD_APP(voicemail_ivr_function) 2020-02-25 21:49:09 +00:00
Andrey Volk 456a7fa8cc [mod_pgsql,mod_mariadb] Fix scan-build warnings. 2020-02-26 01:48:40 +04:00
Dragos Oancea ba0221ff09 [mod_verto] scan-build: Value stored to 'status' is never read - verto_read_text_frame() 2020-02-25 21:45:38 +00:00
Dragos Oancea f99eecdd03 [mod_rtmp] scan-build: Value stored to 'status' is never read - RTMP_INVOKE_FUNCTION(rtmp_i_sendevent) 2020-02-25 21:42:20 +00:00
Dragos Oancea d1d42dab71 [mod_oreka] scan-build: Value stored to 'linear_frame' is never read - oreka_audio_callback() 2020-02-25 21:37:57 +00:00
Dragos Oancea fa49e46bb7 [mod_vlc] scan-build: Value stored to 'vcontext' is never read - vlc_file_av_open() 2020-02-25 21:34:16 +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
Dragos Oancea 40c7d62c42 [mod_skinny] scan-build: Value stored to 'profile' is never read - channel_outgoing_channel() 2020-02-25 21:24:36 +00:00
Andrey Volk 05a7914b8e [mod_json_cdr] scan-build: Fix dead assignments. 2020-02-26 01:18:45 +04:00
Dragos Oancea 0ad909aec7 [mod_verto] scan-build: Null pointer argument in call to string comparison function - http_run() 2020-02-25 21:18:44 +00: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
Andrey Volk e8c4de5b48 [mod_imagick] Remove unused variable. 2020-02-26 00:45:19 +04:00
Andrey Volk adef812266 [mod_png] Remove unused variable. 2020-02-26 00:37:39 +04:00
Andrey Volk d767976167 [mod_portaudio_stream] scan-build: Fix dead assignment. 2020-02-26 00:28:05 +04:00
Seven Du 6decc21669 [core] fix sdp parsing on invalid sdp 2020-02-26 00:17:55 +04:00
Dragos Oancea 828605fe4d [mod_unimrcp] scan-build: Value stored to 'lname' is never read - audio_queue_create() 2020-02-25 20:16:16 +00:00
Andrey Volk d331e5947c [mod_python] scan-build: Fix "Argument with 'nonnull' attribute passed null" 2020-02-26 00:15:28 +04:00
Andrey Volk d63676405f [mod_say_xx] Fix multiple dead assignments 2020-02-25 23:53:45 +04:00
Dragos Oancea 0c2873e726 [mod_amr] scan-build: Array access (from variable 'tocs') results in a null pointer dereference - switch_amr_unpack_oa() 2020-02-25 17:51:09 +00:00
Dragos Oancea a07c0447f0 [mod_amr] scan-build: Value stored to 'ft' is never read - switch_amr_unpack_be() 2020-02-25 17:38:15 +00:00
Andrey Volk f9cafeb7a8 [Core] Fix crash when parsing some uncommon SDP attributes 2020-02-25 01:40:52 +04:00
Andrey Volk 5082454c45 [mod_dingaling] scan-build: fix multiple dead assignments and dereference of null pointer. 2020-02-22 00:46:10 +04:00
Dragos Oancea c6f5869474 [core] scan-build: Function call argument is an uninitialized value - switch_xml_set_attr() 2020-02-21 07:00:18 +00:00
Andrey Volk 09b40e052f
Merge pull request #387 from signalwire/mod_dptools_leak
[mod_dptools] scan-build: Fix "Potential leak of memory pointed to by 'head'"
2020-02-19 20:15:15 +04:00
Andrey Volk d9b63859a1 [mod_dptools] scan-build: Fix "Potential leak of memory pointed to by 'head'" 2020-02-19 19:54:29 +04:00
Andrey Volk 1c2aff0feb [mod_hash] scan-build: Fix "Potential leak of memory pointed to by 'item'". 2020-02-19 19:37:09 +04:00
Andrey Volk 10aad69e1b
Merge pull request #347 from dragos-oancea/switch_ivr_async-status-val-never-read
[core] scan-build: Value stored to 'status' is never read - switch_ivr_eavesdrop_session()
2020-02-16 02:07:37 +04:00
Andrey Volk 4594fb9209
Merge pull request #373 from signalwire/switch_loadable_module
[Core] scan-build: Fix possible dereference of null pointer in switch_loadable_module_sort_codecs()
2020-02-16 01:49:39 +04:00
Andrey Volk dea8086cc6
Merge pull request #372 from signalwire/switch_core_video
[Core] scan-build: Fix "Result of operation is garbage or undefined" in switch_color_yuv2rgb()
2020-02-16 01:44:01 +04:00
Andrey Volk 7a3605e984
Merge pull request #371 from signalwire/switch_log
[Core] scan-build: Fix "The result of the '<<' expression is undefined" in switch_log_str2mask().
2020-02-16 01:31:59 +04:00
Andrey Volk 0171e18657 [Core] scan-build: Fix possible dereference of null pointer in switch_loadable_module_sort_codecs() 2020-02-16 01:30:31 +04:00
Andrey Volk 8cee6230e3 [Core] scan-build: Fix "Result of operation is garbage or undefined" in switch_color_yuv2rgb() 2020-02-16 01:23:40 +04:00
Andrey Volk 46ca31314c [Core] scan-build: Fix "The result of the '<<' expression is undefined" in switch_log_str2mask(). 2020-02-16 01:14:44 +04:00
Andrey Volk c3ee0c17cb [Core] Fix various dead assignments. 2020-02-16 00:59:37 +04:00
Andrey Volk 9f2d044ca5
Merge pull request #369 from signalwire/custom_hash_leak
[Core] Fix possible leak of the subclass variable in CUSTOM_HASH'es switch_event_reserve_subclass_detailed().
2020-02-16 00:51:34 +04:00
Andrey Volk 688bdadd58
Merge pull request #368 from signalwire/core_hash
[Core] Fix potential leak of hash table keys.
2020-02-16 00:33:19 +04:00
Andrey Volk 2c6480a99e
Merge pull request #342 from dragos-oancea/switch_ivr_play_say-last-speed-val-never-read
[core] scan-build: Value stored to 'last_speed' is never read - switch_ivr_play_file()
2020-02-16 00:31:55 +04:00
Andrey Volk 8dd27183f8 [Core] Fix possible leak of the subclass variable in CUSTOM_HASH'es switch_event_reserve_subclass_detailed(). 2020-02-16 00:29:38 +04:00
Andrey Volk 36a528f9a7 [Core] Fix potential leak of hash table keys. 2020-02-16 00:07:13 +04:00
Mike Jerris 39ff576097 [mod_verto] fix crash on vhost http server requests without content type 2020-02-15 13:40:00 -05:00
Dragos Oancea c0b833fe74 [core] scan-build: Value stored to 'status' is never read - switch_ivr_eavesdrop_session() 2020-02-15 18:10:26 +00:00
Andrey Volk 0d29633e23
Merge pull request #361 from dragos-oancea/switch_time-tzname-val-never-read
[core] scan-build: Value stored to 'tz_name' is never read - switch_strftime_tz()
2020-02-14 21:04:04 +04:00
Andrey Volk 9c5f2109cb
Merge pull request #343 from dragos-oancea/switch_core_state_machine-val-never-read
[core] scan-build: Value stored to 'midstate' during its initialization is never read - switch_core_session_hangup_state()
2020-02-14 21:02:19 +04:00
Andrey Volk 95fe3cbdc0
Merge pull request #351 from dragos-oancea/switch_xml-lcont-val-never-read
[core] scan-build: Value stored to 'lcount' is never read - switch_xml_toxml_r()
2020-02-14 20:58:41 +04:00
Andrey Volk 0724039b20
Merge pull request #353 from signalwire/mod_hash
[mod_hash] Fix use of remote's hash table after free.
2020-02-14 20:57:11 +04:00
Dragos Oancea b4a591dcd2 [core] scan-build: Value stored to 'tz_name' is never read - switch_strftime_tz() 2020-02-14 16:55:02 +00:00
Andrey Volk 465890fcb9
Merge pull request #356 from dragos-oancea/switch_ivr_async-echo-val-never-read
[core] scan-build: Value stored to 'status' is never read - switch_ivr_session_echo()
2020-02-14 20:50:41 +04:00
Andrey Volk e7651bd90d
Merge pull request #357 from dragos-oancea/switch_ivr_bridge-status-val-never-read
[core] scan-build: Value stored to 'status' is never read - audio_bridge_thread()
2020-02-14 20:49:07 +04:00
Dragos Oancea 39cc48904d [core] scan-build: Null pointer passed as an argument to a 'nonnull' parameter - switch_event_base_add_header() 2020-02-14 15:53:16 +00:00
Andrey Volk 5378eae101
Merge pull request #355 from dragos-oancea/switch_loadable_module-val-never-read-
[core] scan-build: Value stored to 'err' is never read - switch_loadable_module_build_dynamic()
2020-02-14 01:39:15 +04:00
Andrey Volk e4ea0dc230
Merge pull request #354 from dragos-oancea/switch_msrp-val-never-read
[core] scan-build: Value stored to 'q' during its initialization is never read - msrp_parse_headers()
2020-02-14 01:37:34 +04:00
Andrey Volk cb9188c957
Merge pull request #350 from dragos-oancea/switch_vpx-pid-val-never-read
[core] scan-build: Value stored to 'pid' is never read - buffer_vp9_packets()
2020-02-14 00:30:16 +04:00
Andrey Volk b8510c33ca
Merge pull request #346 from dragos-oancea/switch_ivr_originate-myflags-val-never-read
[core] scan-build: Value stored to 'myflags' during its initialization is never read - switch_ivr_originate()
2020-02-14 00:20:23 +04:00
Andrey Volk 21e0bb2394
Merge pull request #345 from dragos-oancea/switch_time-time_sync-val-never-read
[core] scan-build: Value stored to 'time_sync' is never read - softtimer_runtime()
2020-02-14 00:13:18 +04:00
Dragos Oancea 786f6f8a08 [core] scan-build: Value stored to 'last_speed' is never read - switch_ivr_play_file() 2020-02-13 20:10:32 +00:00
Andrey Volk 04717a5fb8 [mod_hash] Fix use of remote's hash table after free. 2020-02-13 23:55:18 +04:00
Dragos Oancea f120c24698 [core] scan-build: Value stored to 'status' is never read - audio_bridge_thread() 2020-02-13 19:11:35 +00:00
Dragos Oancea 4e8c70e33b [core] scan-build: Value stored to 'status' is never read - switch_ivr_session_echo() 2020-02-13 19:08:21 +00:00
Dragos Oancea d9550b6169 [core] scan-build: Value stored to 'err' is never read - switch_loadable_module_build_dynamic() 2020-02-13 19:00:40 +00:00
Dragos Oancea 063c6f9884 [core] scan-build: Value stored to 'q' during its initialization is never read - msrp_parse_headers() 2020-02-13 18:56:07 +00:00
Dragos Oancea f4881c957e [core] scan-build: Value stored to 'pid' is never read - buffer_vp9_packets() 2020-02-13 12:18:54 +00:00
Dragos Oancea fde2f685e7 [core] scan-build: Value stored to 'lcount' is never read - switch_xml_toxml_r() 2020-02-13 12:12:01 +00:00
Dragos Oancea 0e6a15419d [core] scan-build: Value stored to 'myflags' during its initialization is never read - switch_ivr_originate() 2020-02-12 21:49:43 +00:00
Dragos Oancea 7e0ba182cc [core] scan-build: Value stored to 'time_sync' is never read - softtimer_runtime() 2020-02-12 21:44:50 +00:00
Dragos Oancea a02d3d653d [core] scan-build: Value stored to 'status' is never read - switch_ivr_menu_execute() 2020-02-12 21:39:57 +00:00
Dragos Oancea 6878623f4f [core] scan-build: Value stored to 'midstate' during its initialization is never read - switch_core_session_hangup_state() 2020-02-12 21:37:19 +00:00
Andrey Volk c714401935
Merge pull request #292 from iguanae/issue_210
[mod_conference] Fix possible NULL argument.
2020-02-12 23:50:11 +04:00
Piotr Gregor 978171592a
[mod_avmd] Add test of CPU usage 2020-02-12 23:47:51 +04:00
Visytel b997c4fc8b
[core] Turn DTMF logging on or off using sensitive_dtmf var 2020-02-12 23:44:35 +04:00
Andrey Volk 5b725386d4 [mod_conference] Fix possible NULL argument. 2020-02-12 23:31:34 +04:00
Andrey Volk d3752173bf
Merge pull request #216 from rucc/short_play_fix
[core] fix: don't terminate file before max_samples returned
2020-02-12 23:08:15 +04:00
Andrey Volk 718c5f56a5
Merge pull request #339 from dragos-oancea/switch_ivr_async-nullptr
[core] scan-build: Dereference of null pointer (loaded from variable 'result') - switch_ivr_play_and_detect_speech()
2020-02-12 22:54:23 +04:00
Andrey Volk 2d186794b6
Merge pull request #338 from dragos-oancea/switch_time-val-never-read
[core] scan-build: Value stored to 'time_sync' during its initialization is never read
2020-02-12 22:51:45 +04:00
Dragos Oancea b446dc7370 [core] scan-build: Dereference of null pointer (loaded from variable 'result') - switch_ivr_play_and_detect_speech() 2020-02-12 10:23:32 +00:00
Dragos Oancea 1c2788a055 [core] scan-build: Value stored to 'time_sync' during its initialization is never read 2020-02-12 10:19:16 +00:00
Dragos Oancea d23608f0cb [mod_sofia] scan-build: Access to field 'sip_call_info' results in a dereference of a null pointer (loaded from variable 'sip') 2020-02-12 01:53:24 +00:00
Andrey Volk 9ede52517c
Merge pull request #303 from dragos-oancea/switch_core_video-nullptr
[core] scan-build: Dereference of null pointer (loaded from variable 'txt') - switch_img_write_text_img(
2020-02-12 00:57:54 +04:00
Andrey Volk 8151591b7d
Merge pull request #302 from dragos-oancea/switch_log-res-undefined
[core] scan-build: The result of the '<<' expression is undefined - switch_log_str2mask()
2020-02-12 00:55:04 +04:00
Andrey Volk cdcfaaca68
Merge pull request #299 from dragos-oancea/mod_sofia-nullptr
[mod_sofia] scan-build: Access to field 'sip_payload' results in a dereference of a null pointer (loaded from variable 'sip')
2020-02-12 00:45:30 +04:00
Andrey Volk c84d1da934
Merge pull request #277 from dragos-oancea/switch_event_base_add_header-null
[core] scan-build: Null pointer passed as an argument to a 'nonnull' parameter - switch_event_base_add_header()
2020-02-12 00:05:51 +04:00
Andrey Volk a3edbeedda
Merge pull request #274 from dragos-oancea/collect_thread_run_dead_a
[core] scan-build: Value stored to 'file' is never read
2020-02-12 00:02:19 +04:00
Visytel 78eb8f61b3
[core] Reduce log level to DEBUG for binding to events and certain clock messages 2020-02-11 23:58:33 +04:00
Dragos Oancea 2876442317 [mod_opusfile] use SWITCH_SIZE_T_FMT when printing debug logs. 2020-02-07 12:39:17 +00:00
Dragos Oancea b1dbb99f5c [core] scan-build: Null pointer passed as an argument to a 'nonnull' parameter - switch_event_base_add_header() 2020-02-02 16:54:04 +00:00
Dragos Oancea 8247dfc475 [core] scan-build: Dereference of null pointer (loaded from variable 'txt') - switch_img_write_text_img() 2020-01-31 23:43:37 +00:00
Dragos Oancea 8e41116412 [core] scan-build: The result of the '<<' expression is undefined - switch_log_str2mask() 2020-01-31 23:28:25 +00:00
Andrey Volk 8f8e74cae9
Merge pull request #287 from dragos-oancea/switch_ivr_park-val-never-read
[core] scan-build: Value stored to 'timeout' is never read - switch_ivr_park()
2020-02-01 02:36:27 +04:00
Andrey Volk 1428e9a94b
Merge pull request #283 from dragos-oancea/eavesdrop_callback-val-never-read
[core] scan-build: Value stored to 'frame' during its initialization is never read - eavesdrop_callback()
2020-02-01 02:32:44 +04:00
Andrey Volk 24aa732728
Merge pull request #282 from dragos-oancea/switch_ivr_collect_digits_callback-null-deref
[core] scan-build: Called function pointer is null (null dereference) - switch_ivr_collect_digits_callback()
2020-02-01 02:25:03 +04:00
Dragos Oancea 513c441d8e [core] scan-build: Value stored to 'frame' during its initialization is never read - eavesdrop_callback() 2020-01-31 21:56:58 +00:00
Dragos Oancea a05f7b8da0 [mod_sofia] scan-build: Access to field 'sip_payload' results in a dereference of a null pointer (loaded from variable 'sip') 2020-01-31 21:52:47 +00:00
Andrey Volk fc13e7d783
Merge pull request #278 from dragos-oancea/switch_loadable_module_nullptr
[core] scan-build: Access to field 'microseconds_per_packet' results in a dereference of a null pointer
2020-02-01 01:43:11 +04:00
Andrey Volk e7ea81530f
Merge pull request #280 from dragos-oancea/switch_ivr_val-never-read
[core] scan-build: Value stored to 'first_timeout' is never read - switch_ivr_collect_digits_count()
2020-01-31 22:50:52 +04:00
Dragos Oancea 87f78e2974 [core] scan-build: Access to field 'microseconds_per_packet' results in a dereference of a null pointer 2020-01-31 18:49:33 +00:00
Dragos Oancea 94f0a9dd79 [core] scan-build: Value stored to 'timeout' is never read - switch_ivr_park() 2020-01-31 15:07:02 +00:00
Dragos Oancea 015045d5a4 [core] scan-build: Called function pointer is null (null dereference) - switch_ivr_collect_digits_callback() 2020-01-30 23:20:38 +00:00
Dragos Oancea 3fadf95090 [core] scan-build: Value stored to 'first_timeout' is never read - switch_ivr_collect_digits_count() 2020-01-30 22:31:04 +00:00
Dragos Oancea 309cd1a974 [core] scan-build: Value stored to 'master' is never read - switch_ivr_broadcast() 2020-01-30 22:25:43 +00:00
Andrey Volk b067a7ccbd
Merge pull request #266 from dragos-oancea/conf_passthrough_fix
[mod_conference] fix overflow (video mode == passthrough)
2020-01-30 23:31:00 +04:00
Andrey Volk 42473043f9
Merge pull request #275 from dragos-oancea/memleak_playback_err
[core] fix memory leak on playback, in certain error conditions (eg: native file related)
2020-01-30 23:25:47 +04:00
Andrey Volk f9415eadae
Merge pull request #273 from dragos-oancea/switch_core_session_reporting_state_dead_a
[core] scan-build: Value stored to 'midstate' during its initialization is never read
2020-01-30 23:24:38 +04:00
Andrey Volk 78857d9b00
Merge pull request #272 from dragos-oancea/switch_ivr_tone_detect_session_dead_a
[core] scan-build: Value stored to 'status' is never read
2020-01-30 23:23:11 +04:00
Andrey Volk 09da2993c6
Merge pull request #271 from dragos-oancea/switch_img_write_text_img_dead_a
[core] scan-build: Value stored to 'len' is never read
2020-01-30 23:21:46 +04:00
Andrey Volk a1f78a0b38
Merge pull request #270 from dragos-oancea/switch_loadable_module_dead_a
[core] scan-build: Value stored to 'err' is never read
2020-01-30 23:19:12 +04:00
Andrey Volk 645f986504
Merge pull request #269 from dragos-oancea/tzparse_dead_a
[core] scan-build: Value stored to 'theiroffset' is never read
2020-01-30 23:16:50 +04:00
Dragos Oancea a909ca5e80 [mod_conference] fix overflow (video mode == passthrough) 2020-01-30 18:04:51 +00:00
Dragos Oancea 4fce39bd78 [core] scan-build: Value stored to 'file' is never read 2020-01-30 18:01:00 +00:00
Andrey Volk a9b0d2931d
Merge pull request #255 from dragos-oancea/mux_overflow_file_read
[mod_native_file] don't channel mux during native file play (and avoid overflow too).
2020-01-30 21:56:44 +04:00
Dragos Oancea 8df26b480f [core] fix memory leak on playback, in certain error conditions (eg: native file related) 2020-01-30 15:17:33 +00:00
Andrey Volk 88f1a03cad [mod_mariadb] Fix autocommit not flipping back to on when a transaction ends in mod_mariadb causing switch_cache_db_test_reactive() to fail. 2020-01-29 23:55:29 +04:00
Andrey Volk 3d650f4f69 [mod_pgsql] Fix autocommit not flipping back to on when a transaction ends in mod_pgsql causing switch_cache_db_test_reactive() to fail. 2020-01-29 23:55:17 +04:00
Dragos Oancea f97892bfd9 [mod_native_file] set SWITCH_FILE_NOMUX to prevent overflow in core (we should not channel mux native files) 2020-01-29 19:06:48 +00:00
Andrey Volk 496d39bbd7
Merge pull request #221 from signalwire/sofia_abort
[mod_sofia] Add abort-on-empty-external-ip global param disabled by default.
2020-01-29 21:00:42 +04:00
Andrey Volk 931cf4d83f
Merge pull request #243 from lazedo/cjson-update
[cJSON] Update to v1.7.12
2020-01-29 18:16:50 +04:00
Dragos Oancea b998f3bfa5 [core] scan-build: Value stored to 'midstate' during its initialization is never read 2020-01-28 23:52:07 +00:00
Dragos Oancea 301110f596 [core] scan-build: Value stored to 'status' is never read 2020-01-28 23:18:28 +00:00
Dragos Oancea a5ef549b81 [core] scan-build: Value stored to 'len' is never read 2020-01-28 23:16:02 +00:00
Dragos Oancea 5c7c53fd22 [core] scan-build: Value stored to 'err' is never read 2020-01-28 23:01:45 +00:00
Dragos Oancea 6c06e9549a [core] scan-build: Value stored to 'theiroffset' is never read 2020-01-28 22:57:12 +00:00
lazedo db95f1e9dd [cJSON] Update to v1.7.12 2020-01-29 00:29:04 +04:00
Andrey Volk 91551679be
Merge pull request #264 from signalwire/text_bridge_thread
[Core] Remove dead assignment and dead increment in text_bridge_thread().
2020-01-28 23:09:43 +04:00
Dragos Oancea c1b66f650f [core] add audio channels limit when opening files, configurable through switch.conf.xml (param "max-audio-channels"), add unit-test. 2020-01-27 23:35:19 +00:00
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 937c4a03eb.
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
Andrey Volk e753e615ca [mod_sofia] Module load will fail if ext-rtp-ip or ext-sip-ip configuration param is set as empty string. 2019-12-31 02:17:17 +04:00
Seven Du 00967290b9 [core] support partial speech events 2019-12-31 02:14:48 +04:00
Andrey Volk da31fac5a0 [Core, mod_commands] Add switch_core_pool_stats API and pool_stats command with corresponding --enable-pool-debug configure flag. 2019-12-31 02:07:22 +04:00
Dragos Oancea 51bf0fc51a [core] scan-build: switch_agc_feed() - Division by zero 2019-12-31 00:57:59 +04:00
Dragos Oancea 3d52d2a9ca [core] scan-build: Dead assignment. Value stored to 'p' is never read 2019-12-31 00:57:48 +04:00
Dragos Oancea 459627dee2 [core] scan-build: audio_bridge_thread() - Dead assignment 2019-12-31 00:57:39 +04:00
Dragos Oancea ed991ef153 [core] scan-build: switch_strftime_tz() - Dead assignment 2019-12-31 00:57:29 +04:00
Dragos Oancea cb7db309af [core] scan-build: video_bridge_thread() - Dereference of null pointer 2019-12-31 00:57:19 +04:00
Andrey Volk dd1aab3332 [mod_voicemail] vm_fsdb_msg_email command leaks xml object. 2019-12-31 00:48:01 +04:00
Andrey Volk e4f95f7069 [mod_local_stream] Xml object is leaked on reload when cannot stop local_stream beeing in use. 2019-12-31 00:46:36 +04:00
Andrey Volk 8442218df1 [mod_sofia] sofia_handle_sip_i_invite() leaks xml and event objects on acl_token, sofia_reg_handle_sip_r_challenge() leaks xml object when a user does not have params. 2019-12-31 00:45:00 +04:00
Andrey Volk 5fd6299267 [mod_hiredis] Xml object is not freed on load. 2019-12-31 00:43:24 +04:00
Andrey Volk 05dbd8bd05 [mod_distributor] Fix leak of xml object when no lists in config. 2019-12-31 00:41:19 +04:00
Liyang 4d2f3fc5ec FS-11677: [mod_video_filter] fix memory leak and support replace read/write video of session with a bug
https://freeswitch.org/jira/browse/FS-11677
2019-12-31 00:31:23 +04:00
Liyang 9847a8915f FS-11677: [mod_video_filter] support api/app to replace the write video of session with a bug
https://freeswitch.org/jira/browse/FS-11677
2019-12-31 00:31:08 +04:00
Seven Du fa18a3d0d6 FS-11877 fix regression from FS-11773 27ce89a6a2a
rename callID to sessionCallID since it breaks VC
2019-12-31 00:25:32 +04:00
Seven Du aec1cbd236 FS-11773 add callID to conference private event 2019-12-31 00:25:00 +04:00
Andrey Volk 4eca43bc62 FS-12048: [Core] Fix leak in SQLite (switch_cache_db_execute_sql2str) when queries return a NULL containing field which may result in high memory consumption. 2019-12-31 00:01:23 +04:00
Andrey Volk fc61fcfe60 FS-12050: [Core] Fix DataBase Handle (DBH) cache logic 2019-12-30 23:59:46 +04:00
Andrey Volk e2c1e3a7d3 FS-12055: [mod_sofia] Fix leaks and release profile properly in general_event_handler() and actual_sofia_presence_event_handler() 2019-12-30 23:58:28 +04:00
Andrey Volk b8a18f7d83 FS-12057: [mod_conference] Fix video mute (use of uninitialized pointer) 2019-12-30 23:58:04 +04:00
Seven Du 3f075d30ac FS-12032 remove extra semi colon 2019-12-30 23:57:16 +04:00
Andrey Volk 24e0949844 FS-12056: [mod_sofia] Fix leaking destination in sofia_glue_do_invite() and leaking route in sofia_glue_gen_contact_str() 2019-12-30 23:56:16 +04:00
Dragos Oancea b28eb5ea92 FS-11836: scan-build: Argument with 'nonnull' attribute passed null
FS-11836: scan-build: Dead assignments
2019-12-30 23:55:18 +04:00
Andrey Volk d49d22ff06 [Core] DTMF: Avoid division by zero on low actual_samples_per_second 2019-12-20 00:14:17 +04:00
Andrey Volk 0c90ab01e5
Merge pull request #182 from signalwire/core_fixes
[Core] Fix hard coded dtmf durations based on 8k, fix short-circuit in write timestamp calc
2019-12-19 22:55:03 +04:00
Andrey Volk 52949efc28 [Core] Wait for all EVENT_DISPATCH_QUEUE_THREADS before killing the logging which leaks otherwise. 2019-12-17 21:03:20 +04:00
Anthony Minessale 47c5c8f3e8 [Core] Fix short-circuit in write timestamp calc 2019-12-17 00:37:07 +04:00
Anthony Minessale 7ce50c8bd0 [Core] Fix hard coded dtmf durations based on 8k 2019-12-17 00:36:23 +04:00
Andrey Volk ea6a34aa7d [mod_portaudio] CF_AUDIO flag is not set 2019-12-17 00:21:52 +04:00
Dragos Oancea b124b607d7 [Core] Add PRE_CLOSED flag on file handle, add unit test. 2019-12-05 21:55:46 +04:00
Andrey Volk 5274dd1f9c
Merge pull request #164 from lazedo/kazoo-create_ei_cnode
[mod_kazoo] use globals hostname to create nodename in create_ei_cnode
2019-12-05 00:43:16 +04:00
Andrey Volk a124937f0c [Core] Fix wrong sqldb initialization order causing crash on load. 2019-12-04 19:32:46 +04: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 b337e77258 [Unit-tests] Fix leaks in mod_test and in switch_core_codec, switch_vpx, switch_xml, switch_ivr_play_say tests. 2019-11-27 21:38:19 +04:00
Andrey Volk 4c434aef1f
[Unit-tests] Fix test framework by telling sqldb to manage handles so they don't leak and are destroyed on shutdown. 2019-11-26 22:54:17 +04:00
Andrey Volk 2865603ad2 [Unit-tests] Fix xml error not finding freeswitch.xml on FST_MINCORE_BEGIN 2019-11-26 01:54:43 +04:00
Ítalo Rossi 3de3ec3b1a [mod_callcenter] Adding SAF_SUPPORT_NOMEDIA to callcenter_track since we don't need media up for it. Also, a small fix to make it compile on OSX. 2019-11-26 01:33:12 +04:00
Andrey Volk 5836b9652b [Unit-tests] Fix test framework leaking on successful checks under setup or teardown mode. Failed checks in these modes are noted and then freed, but not when passed. 2019-11-26 01:05:03 +04:00
Andrey Volk a4f0b2f2a0 [mod_test] Fix OSX build 2019-11-22 00:09:14 +04:00
Seven Du 254fda292a [core] fix shutdown crash when core running with MINIMAL flag 2019-11-21 22:05:43 +04:00
jay98237438 f7a424a263 [mod_amrwb] RFC4867 mode-set compliancy
Yield to offered mode-set when set.

From RFC4867:
If a mode set was supplied in the offer, the answerer SHALL return the mode-set unmodified or reject the payload type.
2019-11-21 13:54:40 +00:00
jay98237438 e83c6a4607 [mod_amr] RFC4867 mode-set compliancy
Yield to offered mode-set when set.

From RFC4867:
If a mode set was supplied in the offer, the answerer SHALL return the mode-set unmodified or reject the payload type.
2019-11-21 13:54:33 +00:00
Andrey Volk 66aa064588
Merge pull request #91 from lazedo/event-channel-debug
[core] allow event-channel debugging & single delivery
2019-11-15 23:37:36 +04: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
Piotr Gregor b0f09fcff2 [mod_avmd] Unlock and close session if adding a media bug fails 2019-11-12 21:29:29 +04:00
Dragos Oancea a2b46bcf10 [core] Do not try to close a file handle if it's not SWITCH_FILE_OPEN, return SWITCH_STATUS_FALSE instead 2019-11-12 03:18:23 +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
Dragos Oancea 60746cc07c [mod_tts_commandline, mod_sndfile] fix crash on file not found 2019-11-11 23:02:21 +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
Areski Belaid 647ed310e5 [mod_callcenter] Unreserve callcenter events when config errors loading 2019-11-11 20:23:20 +04: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
Andrey Volk aa2df4f3f8
Merge pull request #90 from lazedo/k-header
[mod_sofia] add K- to prefixes that create a sip_h_ variable
2019-10-31 20:50:05 +04:00
Andrey Volk 5705290f8d
Merge pull request #89 from lazedo/sofia-auth-query
[mod_sofia] add existing variables when locating user
2019-10-31 20:33:55 +04:00
lazedo 506bcd280d [core] allow event-channel debugging & single delivery 2019-10-31 12:41:47 +00:00
lazedo b4373c6666 [mod_sofia] add K- to prefixes that create a sip_h_ variable
used by sip tracing tools and not to confuse with application (X-) or (P-)
2019-10-31 12:27:21 +00:00
lazedo f77484b96d [mod_sofia] add existing variables when locating user 2019-10-31 12:20:33 +00:00
lazedo 8d2174d707 [mod_kazoo] several fixes & code cleanup 2019-10-31 11:06:16 +00:00
Andrey Volk c76a8c5458 swigall 2019-10-30 17:25:47 +00:00
Chris Rienzo 1442186cee [core] Update switch_ivr_bridge_bleg to skip audio bridge during transfer 2019-10-30 21:08:03 +04:00
Seven Du 8aafff281b [Core] Make switch_ivr_orig_and_bridge function return status and a cause. 2019-10-30 21:07:54 +04:00
Dragos Oancea 45219aef6f [mod_sndfile] don't force channels and sample rate with .raw extension 2019-10-29 21:47:22 +04:00
Andrey Volk 311a20af63 [mod_verto] Ignore not just zero but negative frame size as well. 2019-10-23 23:03:18 +04:00
cdosoftei 5244a64d4e
[mod_amqp] configurable commands queue properties 2019-10-22 15:22:00 -04:00
Sebastian Kemper 167294ea26 [mod-sofia] Fix reINVITE after T38 is rejected
From FS-11833.

After FS sends a reINVITE to T38 which gets rejected by peer it is no
longer in a state where it can properly answer a reINVITE which requests
a change of the media setup.

1. FS sends INVITE (destination is a fax machine)
2. Call connects with "8 101"
3. FS sends reINVITE to T38
4. T38 rejected (488)
5. FS receives INVITE to "8"
6. FS replies with 200 OK without SDP
7. Call fails

The bug is related to TFLAG_SDP. This flag is set when a media session
is established. And when there's a reINVITE sofia_glue_do_invite() from
sofia_glue.c is called and clears the flag again:

sofia_clear_flag_locked(tech_pvt, TFLAG_SDP);

So when FS sends a reINVITE to T38 the flag gets cleared. But when the
reINVITE is rejected with 488 the flag is not set again. It stays
cleared. So the call continues with the previously negotiated media, fax
passthrough (8 101 in this case), but TFLAG_SDP is not set.

So when FS receives a reINVITE at this point it doesn't see the need to
renegotiate anything, even though it realizes that 2833 DTMF is now off:

2019-04-30 16:42:12.478025 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2019-04-30 16:42:12.478025 [DEBUG] switch_core_media.c:5533 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2019-04-30 16:42:12.478025 [DEBUG] switch_core_media.c:5802 No 2833 in SDP. Disable 2833 dtmf and switch to INFO

When FS doesn't send a reINVITE (fax_enable_t38_request=false) and the
reINVITE to "8" is received, TFLAG_SDP is still set and then FS
understands that it needs to renegotiate and replies with a 200 OK that
includes SDP:

2019-04-30 16:41:19.358028 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2019-04-30 16:41:19.358028 [DEBUG] switch_core_media.c:5533 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2019-04-30 16:41:19.358028 [DEBUG] switch_core_media.c:5802 No 2833 in SDP. Disable 2833 dtmf and switch to INFO
2019-04-30 16:41:19.358028 [DEBUG] sofia.c:8237 skemper was here in line 8232
2019-04-30 16:41:19.358028 [DEBUG] switch_core_media.c:8390 skemper was here in line 8390.
2019-04-30 16:41:19.358028 [DEBUG] switch_core_media.c:8496 Audio params are unchanged for sofia/external/+called_number.
2019-04-30 16:41:19.358028 [DEBUG] sofia.c:8243 Processing updated SDP

This fixes the state problem after a rejected T38 reINVITE by setting
TFLAG_SDP.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-18 21:19:41 +02: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
Ciprian 696814cb26 [Core] Disable msrp by default, only enable when listen-port or listen-ssl-port config params configured in msrp.conf 2019-10-13 21:27:58 +04:00
lazedo 318e5d0d6d
[mod_kazoo] fix xml leak when event-filter is not available 2019-10-13 12:21:22 +01:00
Andrey Volk db64a08b02
Merge pull request #45 from micmac1/master-memleak-multicast
[mod_event_multicast] Fix memory leak
2019-10-13 00:45:59 +04: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
Chris Rienzo 9d4f480335 [mod_sofia] Fix some incorrect word contractions. 2019-10-10 09:41:53 -04:00
Andrey Volk 34075172eb
Merge pull request #27 from andywolk/mod_av_crash
[mod_av] Fix crash on `av show codecs` and `av show formats`.
2019-10-01 19:37:12 +04:00
David VILLAUME 9de281133a [mod_say_fr] Fix "10" not playing in French. 2019-10-01 17:07:29 +02:00
Andrey Volk 65c4ca072d [mod_av] Fix crash on `av show codecs` and `av show formats`. 2019-10-01 13:02:39 +04:00
Andrey Volk 15ad4c23e2 Merge pull request #1803 in FS/freeswitch from bugfix/FS-12025-freeswitch-crashes-on-reloadxml-when-spandsp-tone-detection-is-running to master
* commit 'd45e9df88349a26a18426fd98409845316d131fb':
  FS-12025: [mod_spandsp] FreeSWITCH crashes on reloadxml when spandsp tone detection is running.
2019-09-17 11:03:50 -05: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 70831a7140 FS-12041: [Core] Fix memory leak on msrp shutdown 2019-09-07 03:10:20 +04:00
Andrey Volk fc925a273b Merge pull request #1809 in FS/freeswitch from sofia-leak to master
* commit '20a893fd0683de64353ee2c111aa9c61a867886d':
  FS-12038: [mod_sofia, core] Fix potential leak and race in chat_hash, add switch_core_hash_insert_auto_free().
2019-09-06 11:28:31 -05:00
Andrey Volk 20a893fd06 FS-12038: [mod_sofia, core] Fix potential leak and race in chat_hash, add switch_core_hash_insert_auto_free(). 2019-09-06 20:22:20 +04:00
Christopher Rienzo 8880c4f469 Merge pull request #1811 in FS/freeswitch from bugfix/FS-12040-mod_sofia-fix-potential-leak-if-realloc-fails to master
* commit '7ee53a6ec1753204d5f17e1f7d2b9429b8ab1342':
  FS-12040: [mod_sofia] Fix potential leak if realloc fails.
2019-09-06 09:37:37 -05:00
Andrey Volk 7ee53a6ec1 FS-12040: [mod_sofia] Fix potential leak if realloc fails. 2019-09-06 18:01:55 +04:00
Andrey Volk f00d285b5e FS-12039: [Core] Fix memory leak on ssl shutdown. 2019-09-06 17:50:16 +04:00
Andrey Volk d0c6b30c15 Merge pull request #1244 in FS/freeswitch from ~DRAGOS_OANCEA_NX/freeswitch-dragos-nx:fix/FS-10191/disable_video_floor_event_for_audio to master
* commit '4d4afbeb5d9a6aa2d8fced093aeba9b27c1e5623':
  FS-10191: don't send "video-floor-change" event for audio-only conference
2019-09-05 12:24:23 -05:00
Andrey Volk d45e9df883 FS-12025: [mod_spandsp] FreeSWITCH crashes on reloadxml when spandsp tone detection is running. 2019-08-30 02:20:18 +04:00
Dragos Oancea 4d4afbeb5d FS-10191: don't send "video-floor-change" event for audio-only conference 2019-08-28 17:54:24 +01: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
Andrey Volk 1583740133 Merge pull request #1805 in FS/freeswitch from bugfix/FS-11995-err-mod_fifo.c-4398-odbc-is-not-available to master
* commit 'fd2f12cf94c4445843a299ef8b87ce2d15d77072':
  FS-11995: [mod_fifo, mod_directory] Fix database availability check.
2019-08-27 10:06:12 -05:00
Christopher Rienzo 6a6b8ac350 Merge pull request #1804 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-12026 to master
* commit 'aaacaa19deb6ef764acdfabefb625f3ddc4e2324':
  FS-12026 [mod_http_cache] fix multichannel file download and play
  FS-12026 [mod_httapi] fix multichannel file download and play
2019-08-27 08:27:05 -05:00
Dragos Oancea aaacaa19de FS-12026 [mod_http_cache] fix multichannel file download and play 2019-08-27 11:30:05 +00:00
Dragos Oancea 44199e91b5 FS-12026 [mod_httapi] fix multichannel file download and play 2019-08-27 11:28:51 +00:00
Andrey Volk fd2f12cf94 FS-11995: [mod_fifo, mod_directory] Fix database availability check. 2019-08-27 01:13:10 +04:00