diff --git a/src/api/client/voip.rs b/src/api/client/voip.rs index 91991d24f..1934c6846 100644 --- a/src/api/client/voip.rs +++ b/src/api/client/voip.rs @@ -59,10 +59,10 @@ pub(crate) async fn turn_server_route( ) }; - Ok(get_turn_server_info::v3::Response { + Ok(get_turn_server_info::v3::Response::new( username, password, - uris: services.globals.turn_uris().to_vec(), - ttl: Duration::from_secs(services.globals.turn_ttl()), - }) + services.globals.turn_uris().to_vec(), + Duration::from_secs(services.globals.turn_ttl()), + )) }