diff --git a/ringrtc/rffi/api/peer_connection_observer_intf.h b/ringrtc/rffi/api/peer_connection_observer_intf.h index 93a333fcf8..a9519620e1 100644 --- a/ringrtc/rffi/api/peer_connection_observer_intf.h +++ b/ringrtc/rffi/api/peer_connection_observer_intf.h @@ -39,7 +39,7 @@ typedef struct { void (*onIceCandidate)(void* observer_borrowed, const RustIceCandidate* candidate_borrowed); void (*onIceCandidatesRemoved)(void* observer_borrowed, const webrtc::rffi::IpPort* addresses_borrowed, size_t); void (*onIceConnectionChange)(void* observer_borrowed, webrtc::PeerConnectionInterface::IceConnectionState); - void (*onIceNetworkRouteChange)(void* observer_borrowed, webrtc::rffi::NetworkRoute); + void (*onIceNetworkRouteChange)(void* observer_borrowed, webrtc::rffi::NetworkRoute, const char* local_description_borrowed, const char* remote_description_borrowed); // Media events void (*onAddStream)(void* observer_borrowed, webrtc::MediaStreamInterface* stream_owned_rc); diff --git a/ringrtc/rffi/src/peer_connection_observer.cc b/ringrtc/rffi/src/peer_connection_observer.cc index 4b5c105302..b5962c7dc8 100644 --- a/ringrtc/rffi/src/peer_connection_observer.cc +++ b/ringrtc/rffi/src/peer_connection_observer.cc @@ -104,7 +104,7 @@ void PeerConnectionObserverRffi::OnIceSelectedCandidatePairChanged( } bool remote_relayed = (remote.type() == cricket::RELAY_PORT_TYPE); auto network_route = webrtc::rffi::NetworkRoute{ local_adapter_type, local_adapter_type_under_vpn, local_relayed, local_relay_protocol, remote_relayed}; - callbacks_.onIceNetworkRouteChange(observer_, network_route); + callbacks_.onIceNetworkRouteChange(observer_, network_route, local.ToString().c_str(), remote.ToString().c_str()); } void PeerConnectionObserverRffi::OnIceGatheringChange(