Chris Rienzo
1adcebb309
[mod_sofia] add sip_refer_continue_after_reply channel variable.
...
Set to true to prevent hangup when response to REFER request is received.
Added sip_refer_target_status_code and sip_refer_target_provisional_status_code
channel variables to store responses from NOTIFY sipfrags.
2021-10-23 22:00:41 +03:00
Andrey Volk
d2e8a775b0
[mod_sofia] Set sip_100_uepoch channel variable on initial 100 trying response.
2021-10-23 22:00:37 +03:00
Andrey Volk
66a92063b6
[mod_sofia] Add tls-orq-connect-timeout profile parameter so SIP engine could try again sending an outgoing request and when possible - using an alternative address (DNS failover). Add sip_call_tls_orq_connect_timeout channel variable per call to override profile's timeout.
2021-10-23 22:00:36 +03:00
Anthony Minessale
d2ccb93f3e
[mod_sofia] don't auto unhold via media format for non-sip
2021-10-23 22:00:31 +03:00
Anthony Minessale
cc68179d2b
[mod_sofia] add sip_ignore_remote_cid var to ignore remote display update
2021-10-23 22:00:13 +03:00
Andrey Volk
ec7ec190b0
[mod_sofia] Add TLS v1.3 support.
2021-10-23 21:59:57 +03:00
Ken
53807da088
[mod_sofia] Include isup-oli parameter on outbound invite when we have value in caller profile
2021-10-23 21:59:56 +03:00
surendrasignalwire
28e7353769
[mod_sofia] Adding custom header to refer
2021-10-23 21:59:55 +03:00
Michael Jerris
9163b7569a
[mod_sofia] add 'sip_destination_prefix' var to prefix user portion of request uri with a value (note this will not affect calls to registered endpoints) ( #70 )
2021-10-23 21:59:51 +03:00
Mike Jerris
0283c9e2e7
[mod_sofia] add 'sip_destination_prefix' var to prefix user portion of request uri with a value (note this will not affect calls to registered endpoints)
2021-10-23 21:59:51 +03:00
Seven Du
260d1a40e3
[mod_sofia] add contact header in REFER
2021-10-23 21:59:50 +03:00
Liyang
b1714199ce
FS-11855: [Core] Offer all negotiated codecs in 200 OK when receiving re-INVITE without SDP
2021-10-23 21:59:48 +03:00
nrensen
ce87856c91
[mod_sofia] Remove redundant sip_from->a_url checks
2021-10-21 19:39:19 +03:00
Andrey Volk
c58b659f3f
[Core] Add new switch_channel_set_variable_strip_quotes API, cleanup mod_sofia.
2021-10-19 20:45:07 +03:00
Andrey Volk
58abf91d1d
[Core] Add new switch_core_hash_insert_dup_auto_free() API
2021-10-19 20:39:36 +03:00
Andrey Volk
0b0f5fff65
[mod_sofia] Cleanup sofia_glue_get_host() and make the pool arg be required.
2021-10-19 20:39:35 +03:00
Andrey Volk
6726922e34
[mod_sofia] scan-build: Dereference of null pointer in sofia_handle_sip_i_bye(), sofia_handle_sip_i_invite() and our_sofia_event_callback()
2021-10-19 20:30:15 +03:00
Andrey Volk
ac1a3dc565
[mod_sofia] scan-build: Argument with 'nonnull' attribute passed null
2021-10-19 20:26:53 +03:00
Andrey Volk
86a075da56
[mod_sofia] scan-build: Fix dereference of null pointer in sofia_outgoing_channel().
2021-10-19 20:26:53 +03:00
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
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
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
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