Commit Graph

34901 Commits

Author SHA1 Message Date
Andrey Volk 2243d34d94
Merge pull request #1178 from azzbcc/mod_sofia_nat_mapping
[mod_sofia] release nat mapping when nua create failed
2021-05-10 22:29:46 +03:00
Andrey Volk e53f782456
Merge pull request #1099 from dragos-oancea/mod_tts_commandline_fix_system
[mod_tts_commandline] check return of switch_system() against 127 too
2021-05-07 19:03:37 +03:00
sergey-safarov fc054360b7
[Build-System] Rename package format-mod-opusfile to format-opusfile on CentOS 2021-05-06 20:51:54 +03:00
Clarence 583443e384 [mod_sofia] release nat mapping when nua create failed 2021-04-28 20:10:35 +08:00
Chris Rienzo deecaae870
STIR/SHAKEN (#1160)
* [core] Add SWITCH_CAUSEs for STIR/SHAKEN.
[mod_sofia] Add sofia_verify_identity dialplan APP as a STIR/SHAKEN verification service.  Set sip_hangup_on_verify_identity_fail=true to end calls that fail verification, otherwise check sip_verstat and sip_verstat_detailed channel variables for verification result.

* [mod_sofia] Fix stir shaken implementation issues on fail.

* fix build

* Fix given comments

* stir_shaken_passport_get_grant return does not require to be freed.

* reworked things

* [core] add switch_rfc822_datetime_to_epoch()

* [mod_sofia] fix test return code

* [mod_sofia] Add Date header when signing Identity

* [mod_sofia] Check Date - WIP doesn't work

* [mod_sofia] STIR/SHAKEN check SIP Date header

* Try to give time for sofia to clean up calls

Co-authored-by: Andrey Volk <andywolk@gmail.com>
2021-04-27 13:54:32 -06:00
sergey-safarov b7316ba557
[Build-System] Use a fresher gcc on RHEL based dists 2021-04-26 17:46:26 +03:00
Norm Brandinger 0877bd5770
[Core] switch_rtp: fix switch_rtp_set_max_missed_packets logging
Warning message about missed packets is misleading.
Message indicates greater (>) however, the conditional is greater than or equals (>=).
The message prints the value of rtp_sesstion->missed_count twice instead of printing the value of rtp_session->max_missed_packets.
2021-04-16 17:24:51 +03:00
Dragos Oancea 7fc5d9a7c3 [core] RTP: handle flush for incoming stream with DTX or packet loss. 2021-04-15 16:37:08 +03:00
Dragos Oancea 73569bb1f7 [mod_sofia] rfc8760: reorder hash algorithms by priority (strength), no matter the order provided in the cfg 2021-04-13 20:24:17 +03:00
Andrey Volk e6b6aea6ff [mod_sofia] Add basic INVITE test 2021-04-13 04:21:42 +00:00
Dragos Oancea 833235b941 [mod_sofia] Add RFC8760 (sha-256, sha-512)
enable on the sip profile, eg:
<param name="rfc8760-auth-algorithms" value="sha-256,md5"/>
2021-04-12 09:57:56 -04:00
Andrey Volk fd27504a7d [Core] Add switch_digest(), switch_digest_string() APIs. Add unit-tests. 2021-04-12 01:03:15 +03:00
figaro2015 ec1a0215fe
[Core, mod_conference] Fixed oscillation in conference AGC processing. Especially during volume reduction processing (#1064)
* Fixed oscillation in conference AGC processing. Especially during volume reduction processing

* Re-scaled granular volume to +/- 50 dB level change. 10 = double loudness, -10 = half loudness, 0 = no change

Co-authored-by: Chris Rienzo <chris@signalwire.com>
2021-04-02 22:18:16 +03:00
Andrey Volk 67cec5c3e8 version bump 2021-03-25 18:52:56 +03:00
Andrey Volk e2cba43533
Merge pull request #126 from micmac1/gentlscert-md
[gentls_cert] Update message digest
2021-03-24 21:08:57 +03:00
Christian Glombek 513b0fbf00
[mod_avmd, esl/python] Two build fixups (#611) 2021-03-24 19:30:52 +03:00
Andrey Volk 4e581b096b
Merge pull request #1134 from signalwire/add-dial-handle-to-enterprise-originate
[core] Update switch_ivr_enterprise_originate() to accept optional switch_dial_handle_list_t instead of dialstring.
2021-03-23 21:10:30 +03:00
Andrey Volk 877102d4b9 swigall 2021-03-23 17:33:46 +00:00
Chris Rienzo e3a6ec86f8 [core] Update switch_ivr_enterprise_originate() to accept optional switch_dial_handle_list_t instead of dialstring. 2021-03-23 20:23:28 +03:00
Andrey Volk 0cab42bfb6 [Core] Hangup call instead of crashing system on SSL_CTX_new failure. Improve logging. 2021-03-22 18:52:04 +03:00
Andrey Volk effafb6993 [Core] switch_ivr_set_user_xml: Buffer is wrongly truncated when it's small in get_prefixed_str() 2021-03-22 18:51:10 +03:00
Dragos Oancea 2e65ca908d [core] rtp: fix #ifdef DEBUG_TS_ROLLOVER (#357) 2021-03-22 18:50:12 +03:00
Dragos Oancea dd39997588 [mod_av] fix memory leak on file playing 2021-03-22 18:49:13 +03:00
Andrey Volk c61d89a47f [Core] Add new switch_core_session_try_reset() API to fix a deadlock for the case when two threads want to set session codecs. 2021-03-22 18:47:46 +03:00
Chris Rienzo c63f9524ee [core] Remove unused buffers and mutexes in switch_core_session. Remove destruction of resamplers that will already be destroyed by switch_core_session_reset(). 2021-03-22 18:46:03 +03:00
Andrey Volk dfb9541b08 [mod_sofia] Use thread-safe alternatives when destroying nua and nua_handle references. Bump sofia-sip library requirement to version 1.13.3 2021-03-22 18:43:19 +03:00
Andrey Volk ee8c4df2d5
Merge pull request #1128 from signalwire/isbr
[mod_conference] Bridged conference did not wait it's last member before destroy and crashed.
2021-03-19 23:52:53 +03:00
Andrey Volk af272f5179 [mod_conference] Bridged conference did not wait it's last member before destroy and crashed. 2021-03-19 23:31:46 +03:00
Andrey Volk 40fb80b019
Merge pull request #905 from traud/patch-4
[core] Allow other (D)TLS Curves/Groups beside P-256
2021-03-19 01:21:23 +03:00
Aron Podrigal fddc6adf8d
[mod_pgsql] Use PQcmdTuples() to get number of effected rows to support UPDATE and INSERT without RETURNING. 2021-03-19 01:13:01 +03:00
Alexander Traud 48c4db71c2 [core] Allow other (D)TLS Curves/Groups beside P-256
Five years ago, commit 8e1b2ea enabled ECDHE for the DTLS server by hard-coding P-256. Released before that, OpenSSL 1.0.2, allows auto selection of the curve (P-256, P-384, and P-512). OpenSSL 1.1.x has this enabled on default, which adds groups/curves like X25519 and X448 automatically. This change here allows DTLS clients with a demand for Security Level 4 (192 bit) and 5 (256 bit) connecting to the DTLS server.
2021-03-19 01:00:56 +03:00
sergey-safarov 9c589b7750
[Build-System] freeswitch.spec update
* freeswitch.spec: mod_shout - build always enabled

* Removed not nessary erlang spec file

* freeswitch.spec: Added cache direcory to http_cache module

* freeswitch.spec: added zrtp feature in packaging

* freeswitch.spec: added dependency for gumbo-parser-devel on fedora dist (HTML parser for MSRP)

* remove autoload_configs dir dublication
2021-03-19 00:30:08 +03:00
Andrey Volk 0059f0cc1b [mod_sofia] Gateways DOWN state introduced a regression: REG gateways in DOWN state could not be killed. NOREG gateways could change state in some conditions. Register and Unregister commands will now error if a gateway is NOREG. 2021-03-18 03:07:49 +03:00
Chris Rienzo 9e49a4176b [test] Fix fst_session_park() to wait for CF_PARK instead of CS_PARK. CF_PARK will be set when the channel has actually parked. 2021-03-17 19:46:18 +03:00
Andrey Volk 8e2234a205 [Core] Fix race between switch_ivr_park_session() and the state machine. switch_core_session_run() wants to clear the CF_TRANSFER flag on state change while parking sets the flag. 2021-03-17 19:45:08 +03:00
Andrey Volk 2ca0d02531 [Core] Fix leaking codec, timer and abuf in switch_ivr_play_file() in the case of failing switch_ivr_phrase_macro() or switch_ivr_speak_text() 2021-03-17 19:43:14 +03:00
Andrey Volk e6e227d1f4 [Core] Fix leaking stream in switch_channel_expand_variables_check() 2021-03-17 19:39:17 +03:00
Andrey Volk 3134c9aa57 [mod_callcenter] Fix use of uninitialized res variable in cc_agent_update() 2021-03-17 19:38:10 +03:00
Andrey Volk f348ab9d38 [mod_sofia] Fix use of uninitialized network_ip in sofia_handle_sip_r_invite() 2021-03-17 19:37:06 +03:00
Andrey Volk cfdd1d9be8 [mod_http_cache] Handle error cases to avoid using uninitialized variables in aws logic. 2021-03-17 19:35:37 +03:00
Andrey Volk 4aa1c1736f [mod_sofia] scan-build in sofia_glue_do_invite(): Null pointer passed as an argument to a 'nonnull' parameter 2021-03-17 19:34:12 +03:00
Andrey Volk 97930570dc [Core] Fix possible memory leak of switch_core_session_message_t in switch_core_session_queue_indication() 2021-03-17 19:30:39 +03:00
Andrey Volk d127eeeecc [mod_snom, mod_snmp] Replace strncpy with snprintf 2021-03-17 19:25:46 +03:00
Andrey Volk 2a8804af97 [Core] Fix leak of switch_event_header_t in switch_event_base_add_header(). Code cleanup. 2021-03-17 19:23:30 +03:00
Andrey Volk 91066f56fa [Core] Fix leaking stream in switch_event_expand_headers_check() 2021-03-17 19:21:49 +03:00
Andrey Volk be6b40b024 [mod_lcr] Fix order_by and sql_stream streams leaking in the case of a DB error in lcr_load_config() 2021-03-17 19:20:41 +03:00
Andrey Volk c282386fdb [mod_pgsql] Fix memory leek in the case of an empty string of err_str in pgsql_handle_exec_base_detailed() 2021-03-17 19:19:39 +03:00
Andrey Volk e614f08c93 [mod_httapi] Fix memory leak of dup_creds in httapi_sync() 2021-03-17 19:18:33 +03:00
Andrey Volk 3e7ba04cbe [mod_curl] Avoid passing null pointer value via data parameter of do_lookup_url() 2021-03-17 18:55:40 +03:00
Andrey Volk c8e7a57b4c [Unit-Tests] Fix leak of arg in the case of an error in fct_clp__parse() 2021-03-17 18:54:36 +03:00