Andrey Volk
cba582cf4a
[mod_sofia] Fix multiple issues in sofia_presence.c found by scan-build.
2021-10-19 20:10:35 +03:00
Dhruv Gupta
0924fed31d
[mod_sofia] Deprecate the auth-subscriptions profile param by setting it to be enabled by default and introducing the new disable-auth-subscriptions param with a higher priority when set.
2021-10-01 00:40:24 +03:00
Dragos Oancea
9eb20d7b54
[mod_sofia] fix memleak on gw registration timeout or 403
2021-09-08 19:50:52 +03:00
Dragos Oancea and Andrey Volk
69cdaac60b
[mod_sofia] more fixes around md5 hash infoleak (tricky cfg).
...
* [mod_sofia] md5 hash infoleak fixes: (explictly allow host set in gw params 'register_proxy' and 'outbound_proxy' to challenge too).
"We have tightened security for digest authentication on gateways.
If you have gateways configured using dns and not an ip address,
you may need to configure gw-auth-acl in gateway configuration to
specify the IP addresses you can send auth challenges to for this gateway.
This is meant to better secure who we will send auth challenges." (Mike Jerris)
[mod_sofia] add REGISTER/401 unit-tests (sipp based)
[mod_sofia] add INVITE/407 unit-test (sipp-based)
* Cleanup spacing
Co-authored-by: Andrey Volk <andywolk@gmail.com >
2021-09-08 18:22:14 +03:00
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
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
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
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
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
Mike Jerris
598d52d5fb
[mod_sofia] remove blank display name that can show up in from uri
2020-05-07 03:18:16 +04:00
Chris Rienzo
52a17066eb
[mod_sofia] Quiet down error when registration credentials are missing
2020-05-07 02:42:01 +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
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
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
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
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
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