Commit Graph

2578 Commits

Author SHA1 Message Date
Andrey Volk 234e04e752 [Core] Fix crash in switch_sql_queue_manager on shutdown, improve thread-safety, implement switch_thread_ctl functionality. 2019-12-09 18:38:50 +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 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
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
lazedo 506bcd280d [core] allow event-channel debugging & single delivery 2019-10-31 12:41:47 +00: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
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
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
Chris Rienzo c55b989220 FS-11979 [test] Fix error message log in fst_xcheck() 2019-08-02 11:47:03 -04:00
Anthony Minessale b644421c87 core side of vpx update 2019-07-25 23:06:59 +04:00
Dragos Oancea 317e197b0b FS-11959: add switch_jb_get_packets_per_frame() - gets the number of packets per video frame 2019-07-25 18:00:27 +00:00
Mike Jerris 241911817f Merge pull request #1766 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-11958 to master
* commit '863189fed69b953dcf732b351124a63814a8f322':
  FS-11958: [core] add switch_core_media functions that deal with bw and bitrate
2019-07-25 12:52:54 -05:00
lazedo a84daf95bb FS-11860 [core] allow configurable separator in event_channel and
process all parts of key
2019-07-25 21:51:50 +04:00
Dragos Oancea 863189fed6 FS-11958: [core] add switch_core_media functions that deal with bw and bitrate 2019-07-25 17:08:58 +00:00
Dragos Oancea 1f4dbe50e6 FS-11955: JB: add stats for received packets that have been NACKed previously (video) 2019-07-25 14:28:38 +00:00
Andrey Volk 5b9d0244c5 FS-11903: Fix regression on Windows in switch_utils.h 2019-07-19 00:33:21 +04:00
Brian West b23d887586 FS-11654: [core] add media_timeout, media_hold_timeout and video vs audio variants 2019-07-18 00:54:37 +04:00
Mike Jerris 382ecb6612 FS-11922: [core] improve switch_calc_bitrate 2019-07-18 00:53:14 +04:00
Anthony Minessale 9cb6b201a6 FS-11921: [core] add switch_img_data_url_png 2019-07-18 00:50:48 +04:00
Mike Jerris 7906a2054a FS-11919: [core] add api compatibility for switch_rtp_new 2019-07-17 16:43:34 -04:00
Anthony Minessale 4926eac49d FS-11918: [core] add function to see frame buffer len switch_frame_buffer_size 2019-07-18 00:35:56 +04:00
Brian West d355a57264 FS-10634 [mod_spandsp]: txfax failing with 488 Not Acceptable Here race 2019-07-18 00:32:53 +04:00
Dragos Oancea 38f0f0662f FS-11876 [core] getter for VAD state 2019-07-18 00:31:01 +04:00
Andrey Volk ccc4ae282a FS-11880: [Core,mod_pgsql] Remove native PostgreSQL support from the core, add mod_pgsql database module. 2019-07-18 00:20:50 +04:00
Chris Rienzo fb695c528e FS-11893 [core] add switch_dial_handle_create_json() and switch_dial_handle_serialize_json() for dial handle/json conversions 2019-07-18 00:09:20 +04:00
Chris Rienzo b06c7b0831 FS-11870 [core, mod_graylog2, mod_console] Added switch_log_node_to_json() and updated mod_graylog2 to use it. This is a unified log node to JSON conversion.
Added json log mode in mod_console
2019-07-18 00:07:54 +04:00
Luis Azedo 302b409815 FS-11848 [core] add user_data to event_channel_bind
* also adds a convenience switch_event_channel_deliver for already in thread
2019-07-17 16:02:12 -04:00
Anthony Minessale eb31e17e6c FS-11910: [mod_dptools] add native eavesdrop mode. use app native_eavesdrop args <uuid> [read|write] ... default is read with no flag. Must be same codecs 2019-07-17 23:38:23 +04:00
Seven Du 5371de231e FS-11721 refactor msrp serialize function
to be consistant with Content-Type at the end of headers if present
dynamically alloc memory to avoid buffer overflow on large message
2019-07-17 23:26:19 +04:00
Seven Du 1a95ef664b FS-11721 add a send queue to buffer msg messages before msrp socket is ready 2019-07-17 23:25:25 +04:00
Mike Jerris 3870c0fc2a FS-11785: [core] help clang static analyzer understand this macro construct 2019-07-17 21:48:59 +04:00
Chris Rienzo c776680c56 FS-11785 [core, mod_commands] update XML API to fix scan-build false positive memory leaks 2019-07-17 20:21:57 +04:00
Chris Rienzo c796723dd7 FS-11728 [core] add switch_ivr_play_and_collect_input(). This function plays a prompt while looking for DTMF or speech and returns whatever was heard. 2019-07-17 19:58:45 +04:00
Mariah Yang 78bbe8f5d9 FS-11621: add switch_core_strndup 2019-07-17 19:44:17 +04:00
Mike Jerris a9e634b664 FS-11557: [mod_sofia] add support for RFC 7989 Session-ID header
(enable with sofia profile param rfc-7989=true)

FS-11557 [mod_sofia, mod_conference, core] Add support for re-INVITE when setting Session-ID in conference after call has been answered.

FS-11557 [mod_conference] Missed a spot where APP_SESSION_ID needed to be set.

FS-11557: set session id for outbound (initial requests)

FS-11557: [mod_sofia] rename vars and functions "session id" -> "session uuid" to reflect the real meaning for rfc7989.

FS-11557: fix bug - colliding chan var names (session_id)

FS-11557: check nil session uuid

FS-11557 : replace CS_NEW with CS_INIT for when originating calls, generate new uuid.

FS-11557: handle inbound (UAS mode, one leg)

FS-11557: generic param handling and filter via new sip profile option "rfc-7989-filter", eg:
<param name="rfc-7989-filter" value="logme, sec-agree, privacy" />

FS-11557: renamed chan vars (reflect meaning only for RFC7989)

FS-11557: fallback to RFC7329 - "old" Session-ID

FS-11557: distinguish between request and replies when we read the header
(to provide compatibility with old RFC7329 - section 11 of RFC7989)
FS-11557: change more vars/consts names

FS-11557: move compat flag on the channel.

FS-11557: add Session-ID header in REFER

FS-11557: needs extra condition on received initial request

FS-11557: handle NOTIFY

FS-11557: support answer() in dialplan - it was sending back a 200 OK with Session-ID invalid, eg: A=NIL;B=X

FS-11557: add Session-ID for NOTIFY (more cases)

FS-11557: handle reply to SIP INFO (add Session-ID header)

FS-11557: handle case of BYE after REFER, when the channel is destroyed already (save the uuid on sofia_private)

FS-11557: handle more SIP reply cases (eg: 202 Accepted , more negative replies)

FS-11557: handle ACK (UAS role)

FS-11557: added "rfc-7989-force-old" profile param - to enforce old rfc7329 for the UAC role. default off.
enabled with "<param name="rfc-7989-force-old" value="true" />".

FS-11557: fallback to rfc7329 fixes.

FS-11557: set flag CF_RFC7329_COMPAT on partner channel where needed

FS-11557: fix crash (mod_conference)
2019-07-17 19:13:41 +04:00
Seven Du b591f691bb FS-11425 add config_profile_name to codec_settings to choose a specific codec config profile 2019-07-17 00:59:06 +04:00
Sergey Khripchenko c546154d67 FS-11436 more granularly calculate 'samples' and modify requested 'fsp' accordingly
+ review all places where it used and reflect that 'fps' is (float)
2019-07-16 20:26:32 +04:00
Sergey Khripchenko be7c5331f6 FS-11436 RTP timestamp field incorrectly calculated based on fps 2019-07-16 20:26:24 +04:00
Mike Jerris eb84654383 FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_utils.h 2019-07-16 01:33:13 +04:00
Chris Rienzo 8a8253a459 FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_fct.h 2019-07-16 01:33:06 +04:00
Andrey Volk ae64513044 FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_platform.h 2019-07-15 23:47:11 +04:00
Andrey Volk fa40e64916 FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_loadable_module.h 2019-07-15 23:41:07 +04:00
Andrey Volk a7477ed0e2 FS-11911: Fix build on Debian Buster 2019-07-15 22:23:25 +04:00
Mike Jerris 2abd5705dc FS-10801: [core] fix typo in core db interface 2019-07-15 22:19:27 +04:00
Andrey Volk 7fc9eafa74 FS-11727: [core] Add SWITCH_DATABASE_FLAG_ROW_SIZE_LIMIT for databases unable to create wide tables. 2019-07-15 22:18:30 +04:00
Andrey Volk 07e0d4f90c FS-10801: [core] Add a database interface to the FreeSWITCH Core. 2019-07-15 22:18:19 +04:00
Chris Rienzo 3c11fa9657 FS-11781 [test] try again with the test fix- need to have pool allocated sooner 2019-07-09 19:27:47 +04:00
Chris Rienzo d4f1af83e8 FS-11781 [test] Fix memory leak in test 2019-07-09 19:27:39 +04:00
Chris Rienzo 9e57da8dfb FS-11781 [test] shut down FS core when test finishes 2019-07-09 19:27:32 +04:00