Dragos Oancea
c41aa83b17
[mod_sofia] fix md5 digest infoleak
...
[mod_sofia] refactor IP checks with sip-dig
[mod_sofia] add sipp-based unit-tests (use spawn_instead_of_system)
2021-08-13 18:17:17 +03:00
Andrey Volk
8a40ba20bd
[mod_sofia] Add a unit-test checking that sofia-sip does not leak when a profile fails to start.
2021-08-13 18:15:43 +03:00
dhruvecosmob
432bfc0c45
[mod_sofia] Deprecate the auth-messages profile param by setting it to be enabled by default and introducing the new disable-auth-messages param with a higher priority when set.
2021-07-27 22:25:13 +03:00
xiaobaozidi
bd87b8892c
[mod_sofia] Fixed a few Usage-of-uninitialized value bugs which may cause information discolsure and bypass ACL check
2021-07-24 21:04:50 +03:00
Andrey Volk
65d0665a95
[mod_sofia] Calling direct _unref() functions in sofia_event_callback() is unsafe.
2021-06-17 03:17:13 +03:00
Andrey Volk
81fff857c5
[mod_sofia] sofia_process_dispatch_event() should unref all handles via sofia stack
2021-06-14 19:46:28 +03:00
Clarence
583443e384
[mod_sofia] release nat mapping when nua create failed
2021-04-28 20:10:35 +08:00
Chris Rienzo and Andrey Volk
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
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
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
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
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
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
f6e076507e
[mod_loopback] Fix new_session leak in the case of a hangup_cause.
2021-03-17 18:34:21 +03:00
Andrey Volk
e3e0c7c259
[mod_sofia] Protect insertion into profile->reg_nh_hash with a mutex.
2021-03-17 18:33:12 +03:00
Andrey Volk
b78c9a115e
[mod_sofia] Properly handle nua events came without nua handles.
2021-03-17 18:31:42 +03:00
Andrey Volk
96e139854e
[mod_sofia] Prevent crash in sofia_handle_sip_i_state on switch_channel_set_state() when PFLAG_3PCC_PROXY flag is set.
2021-03-17 18:21:49 +03:00
Andrey Volk and Mike Jerris
a746d12f6c
[mod_sofia] Keep noreg gateways as NOREG, mark unregistered gateways as DOWN.
...
Co-authored-by: Mike Jerris <mike@signalwire.com >
2021-03-17 18:20:32 +03:00
Andrey Volk
3065cb9168
[mod_sofia] Fix memory leaks caused by improper profile destroy. Add a unit-test.
2021-03-17 00:58:29 +03:00
Andrey Volk
dcb75a79e3
[mod_sofia] Fix multiple memory leaks in sofia_presence_handle_sip_i_subscribe()
2021-03-17 00:56:19 +03:00
surendrasignalwire
7b8a36c2a9
[mod_sofia] Fix recovery reinvite issue
2021-03-17 00:16:32 +03:00
Andrey Volk
167ab11006
[mod_sofia] Fix potential leak of uuid in sofia_event_callback().
2021-03-16 22:50:02 +03:00
Seven Du
bb6ec01d1e
[mod_sofia] fix session log
2021-03-16 20:29:04 +03:00
surendrasignalwire
16ee826e2b
[mod_sofia] Url encode the sip_to_user before using in 200 ok contact
2021-03-16 20:13:39 +03:00
figaro2015
d27cd90155
Verification of the wss.pem certificate in mod_sofia application code. Display correct reason why sofia profile failed to create ( #1067 )
...
[mod_sofia] Verification of the wss.pem certificate in mod_sofia application code. Display correct reason why sofia profile failed to create.
2021-02-13 11:37:01 -05:00
Andrey Volk
212c1ec8d5
Merge pull request #1034 from seven1240/add-call-id-to-log
...
[mod_sofia] add call-id to log line to link with session uuid
2021-02-05 13:27:53 +03:00
Seven Du
9bb76b94dc
[mod_sofia] add call-id to log line to link with session uuid
2021-01-19 11:09:19 +08:00
Ken Rice
69e9e2ec14
[mod_sofia] Add preliminary handing for SHAKEN/STIR via SIP Identity Header
2021-01-15 16:44:58 +03:00
Troy Denton
ac5775b6e0
[mod_sofia] Remove 'precondition' from 'Supported:' w/ 100rel
2021-01-08 19:55:59 +03:00
Andrey Volk
940d82ef9b
[Build-System] Fix build with MSBuild.
2020-12-23 00:11:37 +04:00
Andrey Volk
8045c96458
[mod_gsmopen] Fix build on Visual Studio 2019
2020-11-20 18:29:52 +04:00
FredWemyss
e10126942e
[mod_sofia] Add back sip Identity header into sip_i_identity variables in sofia_parse_all_invite_headers
2020-09-23 21:58:36 +04:00
Sebastian Kemper
51fba83ed3
[mod_gsmopen] Fix build with external spandsp
...
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net >
2020-08-19 22:26:04 +02:00
LordPinna
145377dd8e
[mod_verto] Fix modify attended transfer response
2020-08-12 21:08:07 +04:00
Chris Rienzo
e82e68d182
Merge pull request #66 from micmac1/t38-reinv-fix
...
[mod-sofia] Fix reINVITE after T38 is rejected
2020-08-10 11:03:08 -04:00
Andrey Volk
231d5e6494
[Build-System] Remove SpanDSP library from the FreeSWITCH tree and use packages instead.
2020-08-04 19:15:28 -04:00
Andrey Volk
2fc0e3b80a
[Build-System] Remove Sofia-Sip library from the FreeSWITCH tree and use packages instead.
2020-08-03 23:46:45 +04:00
Andrey Volk
b06036e30f
[mod_sofia] Cleanup usage of sofia-sip headers.
2020-08-03 22:15:19 +04:00
MikhailKalashnikov
90fb233ac6
[mod_sofia] Fix crash when proxy INFO without body
2020-07-17 17:58:35 +04:00
lazedo
00113c480d
[mod_sofia] Verify that replaces header params exist
2020-06-29 22:46:18 +04:00
Andrey Volk
0275ea1eb4
[Build-System] Use $(DefaultPlatformToolset) so it's easier to build using newer Microsoft Visual Studio versions.
2020-05-25 14:18:25 +04:00
Andrey Volk
0072806df1
[mod_loopback] Split null_auto_answer into two variables null_enable_auto_answer and null_auto_answer_delay. Default auto_answer_delay is 0 instead of 1 ms. Auto answer is enabled by default if null_enable_auto_answer is not set. More carefully compute the delay in ms to not block channel longer than needed.
2020-05-08 01:22:48 +04:00
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
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
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
52a17066eb
[mod_sofia] Quiet down error when registration credentials are missing
2020-05-07 02:42:01 +04:00
Anthony Minessale
55b148f1c3
[mod_verto] Fix packet o death.
2020-05-07 02:36:08 +04:00