Add TURN_LOGGING_ID
This patch adds a new (optional) attribute to TURN_ALLOCATE_REQUEST, TURN_LOGGING_ID (0xFF05). The attribute is put into the comprehension-optional range so that a TURN server should ignore it if it doesn't know if. https://tools.ietf.org/html/rfc5389#section-18.2 The intended usage of this attribute is to correlate client and backend logs. Bug: webrtc:10897 Change-Id: I51fdbe15f9025e817cd91ee8e2c3355133212daa Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/149829 Reviewed-by: Qingsi Wang <qingsi@webrtc.org> Reviewed-by: Steve Anton <steveanton@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Commit-Queue: Jonas Oreland <jonaso@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28966}
This commit is contained in:
committed by
Commit Bot
parent
0949c89739
commit
3c02842f2e
@ -650,6 +650,12 @@ class RTC_EXPORT PeerConnectionInterface : public rtc::RefCountInterface {
|
||||
// passed.
|
||||
bool offer_extmap_allow_mixed = false;
|
||||
|
||||
// TURN logging identifier.
|
||||
// This identifier is added to a TURN allocation
|
||||
// and it intended to be used to be able to match client side
|
||||
// logs with TURN server logs. It will not be added if it's an empty string.
|
||||
std::string turn_logging_id;
|
||||
|
||||
//
|
||||
// Don't forget to update operator== if adding something.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user