fix(calls): accept incoming 1:1 calls whose offer has Teams TCP candidates
- Peer-to-peer offers from the Teams client carry TCP-ACT/TCP-PASS candidates. libwebrtc rejected the whole offer ("Unsupported transport type"), so incoming 1:1 calls never connected. Offer candidates now go through the same conversion as answer candidates, which maps both to tcp + tcptype.
- Call dumps: one folder per call under data/call-dumps, newest 5 kept; a=crypto keys masked.
- libwebrtc audio device errors go to diagnostics.log, to find why the mic is missing in the app.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -285,6 +285,7 @@ dependencies = [
285
285
"gpui-pre-reqwest-client",
286
286
"graph",
287
287
"image",
288
"log",
288
289
"mcp",
289
290
"raw-window-handle",
290
291
"regex",
@@ -285,6 +285,7 @@ dependencies = [285
"gpui-pre-reqwest-client",285
"gpui-pre-reqwest-client",286
"graph",286
"graph",287
"image",287
"image",288
"log",288
"mcp",289
"mcp",289
"raw-window-handle",290
"raw-window-handle",290
"regex",291
"regex",@@ -27,6 +27,7 @@ gpui-kit.workspace = true
27
27
regex.workspace = true
28
28
reqwest_client.workspace = true
29
29
graph.workspace = true
30
log = "0.4"
30
31
mcp.workspace = true
31
32
serde.workspace = true
32
33
serde_json.workspace = true
@@ -27,6 +27,7 @@ gpui-kit.workspace = true27
regex.workspace = true27
regex.workspace = true28
reqwest_client.workspace = true28
reqwest_client.workspace = true29
graph.workspace = true29
graph.workspace = true30
log = "0.4"30
mcp.workspace = true31
mcp.workspace = true31
serde.workspace = true32
serde.workspace = true32
serde_json.workspace = true33
serde_json.workspace = true@@ -11,7 +11,7 @@ use session::{Session, SessionConfig, Transport};
11
11
const START_RETRY_STEPS: [Duration; 3] = [Duration::from_secs(1), Duration::from_secs(2), Duration::from_secs(5)];
12
12
const START_RETRY_STEADY: Duration = Duration::from_secs(10);
13
13
const NOT_READY: &str = "Calls are not ready yet";
14
const LAST_CALL_DIR: &str = "last-call";
14
const CALL_DUMPS_DIR: &str = "call-dumps";
15
15
16
16
pub struct CallLauncher {
17
17
engine: Mutex<Option<CallEngine>>,
@@ -152,7 +152,7 @@ async fn start_engine(
152
152
let poll_session = Session::with_transport(transport, SessionConfig::default()).await?;
153
153
let config = EngineConfig {
154
154
ringable,
155
dump_dir: crate::diagnostics::directory().map(|directory| directory.join(LAST_CALL_DIR)),
155
dump_dir: crate::diagnostics::directory().map(|directory| directory.join(CALL_DUMPS_DIR)),
156
156
..EngineConfig::default()
157
157
};
158
158
CallEngine::start(session, poll_session, config).await
@@ -11,7 +11,7 @@ use session::{Session, SessionConfig, Transport};11
const START_RETRY_STEPS: [Duration; 3] = [Duration::from_secs(1), Duration::from_secs(2), Duration::from_secs(5)];11
const START_RETRY_STEPS: [Duration; 3] = [Duration::from_secs(1), Duration::from_secs(2), Duration::from_secs(5)];12
const START_RETRY_STEADY: Duration = Duration::from_secs(10);12
const START_RETRY_STEADY: Duration = Duration::from_secs(10);13
const NOT_READY: &str = "Calls are not ready yet";13
const NOT_READY: &str = "Calls are not ready yet";14
const LAST_CALL_DIR: &str = "last-call";14
const CALL_DUMPS_DIR: &str = "call-dumps";15
15
16
pub struct CallLauncher {16
pub struct CallLauncher {17
engine: Mutex<Option<CallEngine>>,17
engine: Mutex<Option<CallEngine>>,@@ -152,7 +152,7 @@ async fn start_engine(152
let poll_session = Session::with_transport(transport, SessionConfig::default()).await?;152
let poll_session = Session::with_transport(transport, SessionConfig::default()).await?;153
let config = EngineConfig {153
let config = EngineConfig {154
ringable,154
ringable,155
dump_dir: crate::diagnostics::directory().map(|directory| directory.join(LAST_CALL_DIR)),155
dump_dir: crate::diagnostics::directory().map(|directory| directory.join(CALL_DUMPS_DIR)),156
..EngineConfig::default()156
..EngineConfig::default()157
};157
};158
CallEngine::start(session, poll_session, config).await158
CallEngine::start(session, poll_session, config).await@@ -8,8 +8,33 @@ const MAX_BYTES: u64 = 1024 * 1024;
8
8
9
9
static PATH: OnceLock<PathBuf> = OnceLock::new();
10
10
11
const WEBRTC_AUDIO_MARKERS: [&str; 3] = ["AdmProxy", "audio_device_core_win", "core_audio"];
12
11
13
pub fn install(path: PathBuf) {
12
14
let _ = PATH.set(path);
15
if log::set_logger(&WebrtcAudioLog).is_ok() {
16
log::set_max_level(log::LevelFilter::Debug);
17
}
18
}
19
20
struct WebrtcAudioLog;
21
22
impl log::Log for WebrtcAudioLog {
23
fn enabled(&self, metadata: &log::Metadata<'_>) -> bool {
24
metadata.target() == "libwebrtc"
25
}
26
27
fn log(&self, entry: &log::Record<'_>) {
28
if !self.enabled(entry.metadata()) {
29
return;
30
}
31
let text = entry.args().to_string();
32
if WEBRTC_AUDIO_MARKERS.iter().any(|marker| text.contains(marker)) {
33
record(format!("webrtc: {text}"));
34
}
35
}
36
37
fn flush(&self) {}
13
38
}
14
39
15
40
pub fn directory() -> Option<PathBuf> {
@@ -8,8 +8,33 @@ const MAX_BYTES: u64 = 1024 * 1024;8
8
9
static PATH: OnceLock<PathBuf> = OnceLock::new();9
static PATH: OnceLock<PathBuf> = OnceLock::new();10
10
11
const WEBRTC_AUDIO_MARKERS: [&str; 3] = ["AdmProxy", "audio_device_core_win", "core_audio"];12
11
pub fn install(path: PathBuf) {13
pub fn install(path: PathBuf) {12
let _ = PATH.set(path);14
let _ = PATH.set(path);15
if log::set_logger(&WebrtcAudioLog).is_ok() {16
log::set_max_level(log::LevelFilter::Debug);17
}18
}19
20
struct WebrtcAudioLog;21
22
impl log::Log for WebrtcAudioLog {23
fn enabled(&self, metadata: &log::Metadata<'_>) -> bool {24
metadata.target() == "libwebrtc"25
}26
27
fn log(&self, entry: &log::Record<'_>) {28
if !self.enabled(entry.metadata()) {29
return;30
}31
let text = entry.args().to_string();32
if WEBRTC_AUDIO_MARKERS.iter().any(|marker| text.contains(marker)) {33
record(format!("webrtc: {text}"));34
}35
}36
37
fn flush(&self) {}13
}38
}14
39
15
pub fn directory() -> Option<PathBuf> {40
pub fn directory() -> Option<PathBuf> {@@ -353,9 +353,6 @@ impl CallEngine {
353
353
let inner = self.inner.as_ref();
354
354
let _one_call_at_a_time = if options.concurrent { None } else { Some(inner.gate.lock().await) };
355
355
let timeline = Timeline::new(options.trace);
356
if let Some(directory) = options.sdp_dump_dir.as_ref().filter(|_| !options.concurrent) {
357
let _ = std::fs::remove_dir_all(directory);
358
}
359
356
let mut report = CallReport::default();
360
357
let mut state = CallState::Idle;
361
358
advance(&mut state, CallSignal::Dial, &control);
@@ -2189,7 +2186,7 @@ fn dump_sdp(options: &CallOptions, name: &str, sdp: &str) {
2189
2186
let masked: Vec<String> = sdp
2190
2187
.lines()
2191
2188
.map(|line| {
2192
for prefix in ["a=ice-ufrag:", "a=ice-pwd:", "a=fingerprint:"] {
2189
for prefix in ["a=ice-ufrag:", "a=ice-pwd:", "a=fingerprint:", "a=crypto:"] {
2193
2190
if line.starts_with(prefix) {
2194
2191
return format!("{prefix}<masked>");
2195
2192
}
@@ -2384,6 +2381,20 @@ mod tests {
2384
2381
}
2385
2382
}
2386
2383
2384
#[tokio::test]
2385
async fn a_peer_to_peer_offer_from_the_teams_client_gets_an_answer() {
2386
use libwebrtc::audio_source::native::NativeAudioSource;
2387
use libwebrtc::peer_connection_factory::native::PeerConnectionFactoryExt;
2388
let factory = devices::shared_factory();
2389
let peer = factory.create_peer_connection(RtcConfiguration::default()).unwrap();
2390
let source = NativeAudioSource::new(AudioSourceOptions::default(), SAMPLE_RATE, 1, 100);
2391
let track = factory.create_audio_track("microphone", source);
2392
let offer = include_str!("../tests/fixtures/teams_p2p_offer.sdp");
2393
if let Err(error) = answer_offer(&peer, Some(&track), offer, AnswerVideo::Receive).await {
2394
panic!("{error}");
2395
}
2396
}
2397
2387
2398
#[test]
2388
2399
fn a_one_to_one_offer_has_audio_and_an_inactive_camera_until_the_camera_is_on() {
2389
2400
assert_eq!(directions(&directions_for(Layout::OneToOne, false, false, BROWSER_OFFER)), vec!["sendrecv", "inactive", "inactive"]);
@@ -353,9 +353,6 @@ impl CallEngine {353
let inner = self.inner.as_ref();353
let inner = self.inner.as_ref();354
let _one_call_at_a_time = if options.concurrent { None } else { Some(inner.gate.lock().await) };354
let _one_call_at_a_time = if options.concurrent { None } else { Some(inner.gate.lock().await) };355
let timeline = Timeline::new(options.trace);355
let timeline = Timeline::new(options.trace);356
if let Some(directory) = options.sdp_dump_dir.as_ref().filter(|_| !options.concurrent) {357
let _ = std::fs::remove_dir_all(directory);358
}359
let mut report = CallReport::default();356
let mut report = CallReport::default();360
let mut state = CallState::Idle;357
let mut state = CallState::Idle;361
advance(&mut state, CallSignal::Dial, &control);358
advance(&mut state, CallSignal::Dial, &control);@@ -2189,7 +2186,7 @@ fn dump_sdp(options: &CallOptions, name: &str, sdp: &str) {2189
let masked: Vec<String> = sdp2186
let masked: Vec<String> = sdp2190
.lines()2187
.lines()2191
.map(|line| {2188
.map(|line| {2192
for prefix in ["a=ice-ufrag:", "a=ice-pwd:", "a=fingerprint:"] {2189
for prefix in ["a=ice-ufrag:", "a=ice-pwd:", "a=fingerprint:", "a=crypto:"] {2193
if line.starts_with(prefix) {2190
if line.starts_with(prefix) {2194
return format!("{prefix}<masked>");2191
return format!("{prefix}<masked>");2195
}2192
}@@ -2384,6 +2381,20 @@ mod tests {2384
}2381
}2385
}2382
}2386
2383
2384
#[tokio::test]2385
async fn a_peer_to_peer_offer_from_the_teams_client_gets_an_answer() {2386
use libwebrtc::audio_source::native::NativeAudioSource;2387
use libwebrtc::peer_connection_factory::native::PeerConnectionFactoryExt;2388
let factory = devices::shared_factory();2389
let peer = factory.create_peer_connection(RtcConfiguration::default()).unwrap();2390
let source = NativeAudioSource::new(AudioSourceOptions::default(), SAMPLE_RATE, 1, 100);2391
let track = factory.create_audio_track("microphone", source);2392
let offer = include_str!("../tests/fixtures/teams_p2p_offer.sdp");2393
if let Err(error) = answer_offer(&peer, Some(&track), offer, AnswerVideo::Receive).await {2394
panic!("{error}");2395
}2396
}2397
2387
#[test]2398
#[test]2388
fn a_one_to_one_offer_has_audio_and_an_inactive_camera_until_the_camera_is_on() {2399
fn a_one_to_one_offer_has_audio_and_an_inactive_camera_until_the_camera_is_on() {2389
assert_eq!(directions(&directions_for(Layout::OneToOne, false, false, BROWSER_OFFER)), vec!["sendrecv", "inactive", "inactive"]);2400
assert_eq!(directions(&directions_for(Layout::OneToOne, false, false, BROWSER_OFFER)), vec!["sendrecv", "inactive", "inactive"]);@@ -61,6 +61,19 @@ pub struct EngineConfig {
61
61
pub instance: InstanceNames,
62
62
}
63
63
64
const KEPT_CALL_DUMPS: usize = 5;
65
66
fn next_call_dump_dir(base: &std::path::Path) -> std::path::PathBuf {
67
let mut earlier: Vec<std::path::PathBuf> =
68
std::fs::read_dir(base).into_iter().flatten().flatten().map(|entry| entry.path()).filter(|path| path.is_dir()).collect();
69
earlier.sort();
70
for old in earlier.iter().take((earlier.len() + 1).saturating_sub(KEPT_CALL_DUMPS)) {
71
let _ = std::fs::remove_dir_all(old);
72
}
73
let started = std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).unwrap_or_default();
74
base.join(format!("{:015}", started.as_millis()))
75
}
76
64
77
impl Default for EngineConfig {
65
78
fn default() -> Self {
66
79
EngineConfig {
@@ -157,7 +170,7 @@ impl Inner {
157
170
relay_host: self.config.relay_host.clone(),
158
171
routing: self.config.routing.clone(),
159
172
trace: self.config.trace,
160
sdp_dump_dir: self.config.dump_dir.clone(),
173
sdp_dump_dir: self.config.dump_dir.as_deref().map(next_call_dump_dir),
161
174
camera: self.default_camera.lock().expect("default camera lock").clone(),
162
175
..CallOptions::default()
163
176
}
@@ -490,6 +503,20 @@ async fn ring_task(
490
503
mod tests {
491
504
use super::*;
492
505
506
#[test]
507
fn a_new_call_dump_keeps_only_the_newest_earlier_ones() {
508
let base = std::env::temp_dir().join(format!("call-dumps-test-{}", std::process::id()));
509
for millis in 1..=6 {
510
std::fs::create_dir_all(base.join(format!("{millis:015}"))).unwrap();
511
}
512
let next = next_call_dump_dir(&base);
513
let mut left: Vec<String> = std::fs::read_dir(&base).unwrap().flatten().map(|entry| entry.file_name().to_string_lossy().into_owned()).collect();
514
left.sort();
515
let _ = std::fs::remove_dir_all(&base);
516
assert_eq!(left, (3..=6).map(|millis| format!("{millis:015}")).collect::<Vec<_>>());
517
assert!(next.file_name().unwrap().to_string_lossy().into_owned() > format!("{:015}", 6));
518
}
519
493
520
#[test]
494
521
fn callback_base_comes_from_the_presence_uri() {
495
522
assert_eq!(
@@ -61,6 +61,19 @@ pub struct EngineConfig {61
pub instance: InstanceNames,61
pub instance: InstanceNames,62
}62
}63
63
64
const KEPT_CALL_DUMPS: usize = 5;65
66
fn next_call_dump_dir(base: &std::path::Path) -> std::path::PathBuf {67
let mut earlier: Vec<std::path::PathBuf> =68
std::fs::read_dir(base).into_iter().flatten().flatten().map(|entry| entry.path()).filter(|path| path.is_dir()).collect();69
earlier.sort();70
for old in earlier.iter().take((earlier.len() + 1).saturating_sub(KEPT_CALL_DUMPS)) {71
let _ = std::fs::remove_dir_all(old);72
}73
let started = std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).unwrap_or_default();74
base.join(format!("{:015}", started.as_millis()))75
}76
64
impl Default for EngineConfig {77
impl Default for EngineConfig {65
fn default() -> Self {78
fn default() -> Self {66
EngineConfig {79
EngineConfig {@@ -157,7 +170,7 @@ impl Inner {157
relay_host: self.config.relay_host.clone(),170
relay_host: self.config.relay_host.clone(),158
routing: self.config.routing.clone(),171
routing: self.config.routing.clone(),159
trace: self.config.trace,172
trace: self.config.trace,160
sdp_dump_dir: self.config.dump_dir.clone(),173
sdp_dump_dir: self.config.dump_dir.as_deref().map(next_call_dump_dir),161
camera: self.default_camera.lock().expect("default camera lock").clone(),174
camera: self.default_camera.lock().expect("default camera lock").clone(),162
..CallOptions::default()175
..CallOptions::default()163
}176
}@@ -490,6 +503,20 @@ async fn ring_task(490
mod tests {503
mod tests {491
use super::*;504
use super::*;492
505
506
#[test]507
fn a_new_call_dump_keeps_only_the_newest_earlier_ones() {508
let base = std::env::temp_dir().join(format!("call-dumps-test-{}", std::process::id()));509
for millis in 1..=6 {510
std::fs::create_dir_all(base.join(format!("{millis:015}"))).unwrap();511
}512
let next = next_call_dump_dir(&base);513
let mut left: Vec<String> = std::fs::read_dir(&base).unwrap().flatten().map(|entry| entry.file_name().to_string_lossy().into_owned()).collect();514
left.sort();515
let _ = std::fs::remove_dir_all(&base);516
assert_eq!(left, (3..=6).map(|millis| format!("{millis:015}")).collect::<Vec<_>>());517
assert!(next.file_name().unwrap().to_string_lossy().into_owned() > format!("{:015}", 6));518
}519
493
#[test]520
#[test]494
fn callback_base_comes_from_the_presence_uri() {521
fn callback_base_comes_from_the_presence_uri() {495
assert_eq!(522
assert_eq!(@@ -796,13 +796,18 @@ fn browser_candidate(value: &str) -> String {
796
796
if let Some(position) = parts.iter().position(|part| *part == "MTURNID") {
797
797
parts.truncate(position);
798
798
}
799
let passive = parts.get(2) == Some(&"tcp-pass");
800
if passive {
799
let tcp_type = match parts.get(2).map(|transport| transport.to_ascii_lowercase()).as_deref() {
800
Some("tcp-pass") => Some("passive"),
801
Some("tcp-act") => Some("active"),
802
_ => None,
803
};
804
if tcp_type.is_some() {
801
805
parts[2] = "tcp";
802
806
}
803
807
let mut candidate = parts.join(" ");
804
if passive {
805
candidate.push_str(" tcptype passive");
808
if let Some(tcp_type) = tcp_type {
809
candidate.push_str(" tcptype ");
810
candidate.push_str(tcp_type);
806
811
}
807
812
candidate
808
813
}
@@ -972,7 +977,7 @@ fn browser_rtp_from_teams(source: &Media, mid: &str, folded: bool, carries_candi
972
977
name if TRANSPORT_ATTRIBUTES.contains(&name) => {}
973
978
"candidate" => {
974
979
if carries_candidate && !value.contains(PLACEHOLDER_CANDIDATE_TAIL) {
975
attributes.push(attribute.clone());
980
attributes.push(Attribute::new("candidate", browser_candidate(value)));
976
981
}
977
982
}
978
983
"ssrc" => {
@@ -1075,6 +1080,10 @@ mod tests {
1075
1080
browser_candidate("3 1 tcp-pass 18087935 52.112.0.1 3478 typ relay raddr 10.0.0.1 rport 3478"),
1076
1081
"3 1 tcp 18087935 52.112.0.1 3478 typ relay raddr 10.0.0.1 rport 3478 tcptype passive"
1077
1082
);
1083
assert_eq!(
1084
browser_candidate("10 1 TCP-ACT 1684794366 192.0.2.1 59611 typ srflx raddr 192.0.2.1 rport 50009"),
1085
"10 1 tcp 1684794366 192.0.2.1 59611 typ srflx raddr 192.0.2.1 rport 50009 tcptype active"
1086
);
1078
1087
}
1079
1088
1080
1089
#[test]
@@ -796,13 +796,18 @@ fn browser_candidate(value: &str) -> String {796
if let Some(position) = parts.iter().position(|part| *part == "MTURNID") {796
if let Some(position) = parts.iter().position(|part| *part == "MTURNID") {797
parts.truncate(position);797
parts.truncate(position);798
}798
}799
let passive = parts.get(2) == Some(&"tcp-pass");799
let tcp_type = match parts.get(2).map(|transport| transport.to_ascii_lowercase()).as_deref() {800
if passive {800
Some("tcp-pass") => Some("passive"),801
Some("tcp-act") => Some("active"),802
_ => None,803
};804
if tcp_type.is_some() {801
parts[2] = "tcp";805
parts[2] = "tcp";802
}806
}803
let mut candidate = parts.join(" ");807
let mut candidate = parts.join(" ");804
if passive {808
if let Some(tcp_type) = tcp_type {805
candidate.push_str(" tcptype passive");809
candidate.push_str(" tcptype ");810
candidate.push_str(tcp_type);806
}811
}807
candidate812
candidate808
}813
}@@ -972,7 +977,7 @@ fn browser_rtp_from_teams(source: &Media, mid: &str, folded: bool, carries_candi972
name if TRANSPORT_ATTRIBUTES.contains(&name) => {}977
name if TRANSPORT_ATTRIBUTES.contains(&name) => {}973
"candidate" => {978
"candidate" => {974
if carries_candidate && !value.contains(PLACEHOLDER_CANDIDATE_TAIL) {979
if carries_candidate && !value.contains(PLACEHOLDER_CANDIDATE_TAIL) {975
attributes.push(attribute.clone());980
attributes.push(Attribute::new("candidate", browser_candidate(value)));976
}981
}977
}982
}978
"ssrc" => {983
"ssrc" => {@@ -1075,6 +1080,10 @@ mod tests {1075
browser_candidate("3 1 tcp-pass 18087935 52.112.0.1 3478 typ relay raddr 10.0.0.1 rport 3478"),1080
browser_candidate("3 1 tcp-pass 18087935 52.112.0.1 3478 typ relay raddr 10.0.0.1 rport 3478"),1076
"3 1 tcp 18087935 52.112.0.1 3478 typ relay raddr 10.0.0.1 rport 3478 tcptype passive"1081
"3 1 tcp 18087935 52.112.0.1 3478 typ relay raddr 10.0.0.1 rport 3478 tcptype passive"1077
);1082
);1083
assert_eq!(1084
browser_candidate("10 1 TCP-ACT 1684794366 192.0.2.1 59611 typ srflx raddr 192.0.2.1 rport 50009"),1085
"10 1 tcp 1684794366 192.0.2.1 59611 typ srflx raddr 192.0.2.1 rport 50009 tcptype active"1086
);1078
}1087
}1079
1088
1080
#[test]1089
#[test]@@ -0,0 +1,144 @@
1
v=0
2
o=- 0 0 IN IP4 192.0.2.1
3
s=session
4
c=IN IP4 192.0.2.1
5
b=CT:4000
6
t=0 0
7
a=x-mediabw:main-video send=12000;recv=12000
8
a=group:BUNDLE audio_0 video_1
9
m=audio 3480 RTP/SAVP 109 108 104 102 9 111 18 0 8 103 97 13 118 117 120 101
10
a=x-ssrc-range:60082-60082
11
a=rtcp-fb:* x-message app send:dsh,x-gain recv:dsh,x-gain
12
a=rtcp-fb:* nack
13
a=rtcp-fb:* transport-cc
14
a=rtcp-rsize
15
a=label:main-audio
16
a=x-source:main-audio
17
a=ice-ufrag:abcd
18
a=ice-pwd:abcdefghijklmnopqrstuvwx
19
a=candidate:8 1 UDP 1258287615 192.0.2.1 3480 typ relay raddr 192.0.2.1 rport 50000 MTURNID 18360964928163898315
20
a=candidate:8 2 UDP 1258287102 192.0.2.1 3481 typ relay raddr 192.0.2.1 rport 50001 MTURNID 15674170705013573560
21
a=x-candidate-info:8 network-type=wlan
22
a=candidate:6 1 UDP 2130703871 192.0.2.1 50000 typ host
23
a=candidate:6 2 UDP 2130703358 192.0.2.1 50001 typ host
24
a=x-candidate-info:6 network-type=wlan
25
a=candidate:3 1 TCP-ACT 2121005566 192.0.2.1 50000 typ host
26
a=candidate:3 2 TCP-ACT 2121005566 192.0.2.1 50000 typ host
27
a=x-candidate-info:3 network-type=wlan
28
a=candidate:7 1 UDP 1694495743 192.0.2.1 50000 typ srflx raddr 192.0.2.1 rport 50000
29
a=candidate:7 2 UDP 1694495230 192.0.2.1 50001 typ srflx raddr 192.0.2.1 rport 50001
30
a=x-candidate-info:7 network-type=wlan
31
a=candidate:9 1 UDP 1258287103 192.0.2.1 3480 typ relay raddr 192.0.2.1 rport 50000 MTURNID 18360964928163898315
32
a=candidate:9 2 UDP 1258286590 192.0.2.1 3481 typ relay raddr 192.0.2.1 rport 50001 MTURNID 15674170705013573560
33
a=x-candidate-info:9 network-type=wlan
34
a=candidate:10 1 TCP-ACT 1684794366 192.0.2.1 59611 typ srflx raddr 192.0.2.1 rport 50009
35
a=candidate:10 2 TCP-ACT 1684794366 192.0.2.1 59611 typ srflx raddr 192.0.2.1 rport 50009
36
a=x-candidate-info:10 network-type=wlan
37
a=candidate:11 1 TCP-PASS 1248193022 192.0.2.1 57050 typ relay raddr 192.0.2.1 rport 59611
38
a=candidate:11 2 TCP-PASS 1248193022 192.0.2.1 57050 typ relay raddr 192.0.2.1 rport 59611
39
a=x-candidate-info:11 network-type=wlan
40
a=candidate:12 1 TCP-ACT 1248585726 192.0.2.1 57050 typ relay raddr 192.0.2.1 rport 59611
41
a=candidate:12 2 TCP-ACT 1248585726 192.0.2.1 57050 typ relay raddr 192.0.2.1 rport 59611
42
a=x-candidate-info:12 network-type=wlan
43
a=crypto:1 AES_CM_128_HMAC_SHA1_32 inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|2^31
44
a=crypto:2 AES_CM_128_HMAC_SHA1_80 inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|2^31
45
a=crypto:3 AES_CM_128_HMAC_SHA1_80 192.0.2.1
46
a=crypto:4 AEAD_AES_256_GCM inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|2^31
47
a=crypto:5 AEAD_AES_256_GCM 192.0.2.1
48
a=fingerprint:sha-256 AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:99
49
a=maxptime:200
50
a=rtcp:3481
51
a=mid:audio_0
52
a=rtpmap:109 SATINFB/48000/2
53
a=fmtp:109 decoderversion=1
54
a=rtpmap:108 SATIN/48000
55
a=rtpmap:104 SILK/16000
56
a=fmtp:104 useinbandfec=0; usedtx=0
57
a=rtpmap:102 opus/48000/2
58
a=fmtp:102 maxplaybackrate=16000; sprop-maxcapturerate=16000; useinbandfec=1; usedtx=1; minptime=10
59
a=rtpmap:9 G722/8000
60
a=rtpmap:111 SIREN/16000
61
a=fmtp:111 bitrate=16000
62
a=rtpmap:18 G729/8000
63
a=rtpmap:0 PCMU/8000
64
a=rtpmap:8 PCMA/8000
65
a=rtpmap:103 SILK/8000
66
a=fmtp:103 useinbandfec=0; usedtx=0
67
a=rtpmap:97 RED/8000
68
a=rtpmap:13 CN/8000
69
a=rtpmap:118 CN/16000
70
a=rtpmap:117 CN/24000
71
a=rtpmap:120 CN/48000
72
a=rtpmap:101 telephone-event/8000
73
a=fmtp:101 0-16
74
a=rtcp-mux
75
a=ptime:20
76
a=extmap:1 http:\\www.webrtc.org\experiments\rtp-hdrext\abs-send-time
77
a=extmap:3 http:\\skype.com\experiments\rtp-hdrext\fast_bandwidth_feedback#version_3
78
a=x-bwealgorithm:rmestimator bwc packetpair webrtc
79
m=video 3480 RTP/SAVP 119 100 122 125 107 99 114 115 123
80
c=IN IP4 192.0.2.1
81
a=x-ssrc-range:60083-60182
82
a=ssrc-group:FID 60083 60133
83
a=rtcp-fb:* x-message app send:src,x-pli recv:src,x-pli
84
a=rtcp-fb:* nack
85
a=rtcp-fb:* nack pli
86
a=rtcp-fb:* goog-remb
87
a=rtcp-fb:* transport-cc
88
a=rtcp-rsize
89
a=label:main-video
90
a=x-source:main-video
91
a=ice-ufrag:abcd
92
a=ice-pwd:abcdefghijklmnopqrstuvwx
93
a=candidate:8 1 UDP 1258287615 192.0.2.1 3480 typ relay raddr 192.0.2.1 rport 50026 MTURNID 14938924457751333887
94
a=candidate:8 2 UDP 1258287102 192.0.2.1 3481 typ relay raddr 192.0.2.1 rport 50027 MTURNID 10199217693896611612
95
a=x-candidate-info:8 network-type=wlan
96
a=candidate:6 1 UDP 2130703871 192.0.2.1 50026 typ host
97
a=candidate:6 2 UDP 2130703358 192.0.2.1 50027 typ host
98
a=x-candidate-info:6 network-type=wlan
99
a=candidate:3 1 TCP-ACT 2121005566 192.0.2.1 50020 typ host
100
a=candidate:3 2 TCP-ACT 2121005566 192.0.2.1 50020 typ host
101
a=x-candidate-info:3 network-type=wlan
102
a=candidate:7 1 UDP 1694495743 192.0.2.1 50026 typ srflx raddr 192.0.2.1 rport 50026
103
a=candidate:7 2 UDP 1694495230 192.0.2.1 50027 typ srflx raddr 192.0.2.1 rport 50027
104
a=x-candidate-info:7 network-type=wlan
105
a=candidate:9 1 UDP 1258287103 192.0.2.1 3480 typ relay raddr 192.0.2.1 rport 50026 MTURNID 14938924457751333887
106
a=candidate:9 2 UDP 1258286590 192.0.2.1 3481 typ relay raddr 192.0.2.1 rport 50027 MTURNID 10199217693896611612
107
a=x-candidate-info:9 network-type=wlan
108
a=candidate:10 1 TCP-ACT 1684794366 192.0.2.1 61504 typ srflx raddr 192.0.2.1 rport 50037
109
a=candidate:10 2 TCP-ACT 1684794366 192.0.2.1 61504 typ srflx raddr 192.0.2.1 rport 50037
110
a=x-candidate-info:10 network-type=wlan
111
a=candidate:11 1 TCP-PASS 1248193022 192.0.2.1 54727 typ relay raddr 192.0.2.1 rport 61504
112
a=candidate:11 2 TCP-PASS 1248193022 192.0.2.1 54727 typ relay raddr 192.0.2.1 rport 61504
113
a=x-candidate-info:11 network-type=wlan
114
a=candidate:12 1 TCP-ACT 1248585726 192.0.2.1 54727 typ relay raddr 192.0.2.1 rport 61504
115
a=candidate:12 2 TCP-ACT 1248585726 192.0.2.1 54727 typ relay raddr 192.0.2.1 rport 61504
116
a=x-candidate-info:12 network-type=wlan
117
a=crypto:1 AES_CM_128_HMAC_SHA1_32 inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|2^31
118
a=crypto:2 AES_CM_128_HMAC_SHA1_80 inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|2^31
119
a=crypto:3 AES_CM_128_HMAC_SHA1_80 192.0.2.1
120
a=crypto:4 AEAD_AES_256_GCM inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|2^31
121
a=crypto:5 AEAD_AES_256_GCM 192.0.2.1
122
a=fingerprint:sha-256 AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:99
123
a=rtcp:3481
124
a=mid:video_1
125
a=rtpmap:119 X-MSAV1/90000
126
a=rtpmap:100 rtx/90000
127
a=fmtp:100 apt=119
128
a=rtpmap:122 X-H264UC/90000
129
a=fmtp:122 packetization-mode=1;mst-mode=NI-TC
130
a=rtpmap:125 rtx/90000
131
a=fmtp:125 apt=122
132
a=rtpmap:107 H264/90000
133
a=fmtp:107 profile-level-id=42C02A;packetization-mode=1;max-mbps=3600;max-fs=240;max-br=208;max-fps=1500
134
a=rtpmap:99 rtx/90000
135
a=fmtp:99 apt=107
136
a=rtpmap:114 H265v2/90000
137
a=rtpmap:115 rtx/90000
138
a=fmtp:115 apt=114
139
a=rtpmap:123 x-ulpfecuc/90000
140
a=rtcp-mux
141
a=extmap:1 http:\\www.webrtc.org\experiments\rtp-hdrext\abs-send-time
142
a=extmap:2 http:\\skype.com\experiments\rtp-hdrext\frame-counters
143
a=extmap:3 http:\\skype.com\experiments\rtp-hdrext\fast_bandwidth_feedback#version_3
144
a=x-bwealgorithm:rmestimator bwc packetpair webrtc
@@ -0,0 +1,144 @@1
v=02
o=- 0 0 IN IP4 192.0.2.13
s=session4
c=IN IP4 192.0.2.15
b=CT:40006
t=0 07
a=x-mediabw:main-video send=12000;recv=120008
a=group:BUNDLE audio_0 video_19
m=audio 3480 RTP/SAVP 109 108 104 102 9 111 18 0 8 103 97 13 118 117 120 10110
a=x-ssrc-range:60082-6008211
a=rtcp-fb:* x-message app send:dsh,x-gain recv:dsh,x-gain12
a=rtcp-fb:* nack13
a=rtcp-fb:* transport-cc14
a=rtcp-rsize15
a=label:main-audio16
a=x-source:main-audio17
a=ice-ufrag:abcd18
a=ice-pwd:abcdefghijklmnopqrstuvwx19
a=candidate:8 1 UDP 1258287615 192.0.2.1 3480 typ relay raddr 192.0.2.1 rport 50000 MTURNID 1836096492816389831520
a=candidate:8 2 UDP 1258287102 192.0.2.1 3481 typ relay raddr 192.0.2.1 rport 50001 MTURNID 1567417070501357356021
a=x-candidate-info:8 network-type=wlan22
a=candidate:6 1 UDP 2130703871 192.0.2.1 50000 typ host23
a=candidate:6 2 UDP 2130703358 192.0.2.1 50001 typ host24
a=x-candidate-info:6 network-type=wlan25
a=candidate:3 1 TCP-ACT 2121005566 192.0.2.1 50000 typ host26
a=candidate:3 2 TCP-ACT 2121005566 192.0.2.1 50000 typ host27
a=x-candidate-info:3 network-type=wlan28
a=candidate:7 1 UDP 1694495743 192.0.2.1 50000 typ srflx raddr 192.0.2.1 rport 5000029
a=candidate:7 2 UDP 1694495230 192.0.2.1 50001 typ srflx raddr 192.0.2.1 rport 5000130
a=x-candidate-info:7 network-type=wlan31
a=candidate:9 1 UDP 1258287103 192.0.2.1 3480 typ relay raddr 192.0.2.1 rport 50000 MTURNID 1836096492816389831532
a=candidate:9 2 UDP 1258286590 192.0.2.1 3481 typ relay raddr 192.0.2.1 rport 50001 MTURNID 1567417070501357356033
a=x-candidate-info:9 network-type=wlan34
a=candidate:10 1 TCP-ACT 1684794366 192.0.2.1 59611 typ srflx raddr 192.0.2.1 rport 5000935
a=candidate:10 2 TCP-ACT 1684794366 192.0.2.1 59611 typ srflx raddr 192.0.2.1 rport 5000936
a=x-candidate-info:10 network-type=wlan37
a=candidate:11 1 TCP-PASS 1248193022 192.0.2.1 57050 typ relay raddr 192.0.2.1 rport 5961138
a=candidate:11 2 TCP-PASS 1248193022 192.0.2.1 57050 typ relay raddr 192.0.2.1 rport 5961139
a=x-candidate-info:11 network-type=wlan40
a=candidate:12 1 TCP-ACT 1248585726 192.0.2.1 57050 typ relay raddr 192.0.2.1 rport 5961141
a=candidate:12 2 TCP-ACT 1248585726 192.0.2.1 57050 typ relay raddr 192.0.2.1 rport 5961142
a=x-candidate-info:12 network-type=wlan43
a=crypto:1 AES_CM_128_HMAC_SHA1_32 inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|2^3144
a=crypto:2 AES_CM_128_HMAC_SHA1_80 inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|2^3145
a=crypto:3 AES_CM_128_HMAC_SHA1_80 192.0.2.146
a=crypto:4 AEAD_AES_256_GCM inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|2^3147
a=crypto:5 AEAD_AES_256_GCM 192.0.2.148
a=fingerprint:sha-256 AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:9949
a=maxptime:20050
a=rtcp:348151
a=mid:audio_052
a=rtpmap:109 SATINFB/48000/253
a=fmtp:109 decoderversion=154
a=rtpmap:108 SATIN/4800055
a=rtpmap:104 SILK/1600056
a=fmtp:104 useinbandfec=0; usedtx=057
a=rtpmap:102 opus/48000/258
a=fmtp:102 maxplaybackrate=16000; sprop-maxcapturerate=16000; useinbandfec=1; usedtx=1; minptime=1059
a=rtpmap:9 G722/800060
a=rtpmap:111 SIREN/1600061
a=fmtp:111 bitrate=1600062
a=rtpmap:18 G729/800063
a=rtpmap:0 PCMU/800064
a=rtpmap:8 PCMA/800065
a=rtpmap:103 SILK/800066
a=fmtp:103 useinbandfec=0; usedtx=067
a=rtpmap:97 RED/800068
a=rtpmap:13 CN/800069
a=rtpmap:118 CN/1600070
a=rtpmap:117 CN/2400071
a=rtpmap:120 CN/4800072
a=rtpmap:101 telephone-event/800073
a=fmtp:101 0-1674
a=rtcp-mux75
a=ptime:2076
a=extmap:1 http:\\www.webrtc.org\experiments\rtp-hdrext\abs-send-time77
a=extmap:3 http:\\skype.com\experiments\rtp-hdrext\fast_bandwidth_feedback#version_378
a=x-bwealgorithm:rmestimator bwc packetpair webrtc79
m=video 3480 RTP/SAVP 119 100 122 125 107 99 114 115 12380
c=IN IP4 192.0.2.181
a=x-ssrc-range:60083-6018282
a=ssrc-group:FID 60083 6013383
a=rtcp-fb:* x-message app send:src,x-pli recv:src,x-pli84
a=rtcp-fb:* nack85
a=rtcp-fb:* nack pli86
a=rtcp-fb:* goog-remb87
a=rtcp-fb:* transport-cc88
a=rtcp-rsize89
a=label:main-video90
a=x-source:main-video91
a=ice-ufrag:abcd92
a=ice-pwd:abcdefghijklmnopqrstuvwx93
a=candidate:8 1 UDP 1258287615 192.0.2.1 3480 typ relay raddr 192.0.2.1 rport 50026 MTURNID 1493892445775133388794
a=candidate:8 2 UDP 1258287102 192.0.2.1 3481 typ relay raddr 192.0.2.1 rport 50027 MTURNID 1019921769389661161295
a=x-candidate-info:8 network-type=wlan96
a=candidate:6 1 UDP 2130703871 192.0.2.1 50026 typ host97
a=candidate:6 2 UDP 2130703358 192.0.2.1 50027 typ host98
a=x-candidate-info:6 network-type=wlan99
a=candidate:3 1 TCP-ACT 2121005566 192.0.2.1 50020 typ host100
a=candidate:3 2 TCP-ACT 2121005566 192.0.2.1 50020 typ host101
a=x-candidate-info:3 network-type=wlan102
a=candidate:7 1 UDP 1694495743 192.0.2.1 50026 typ srflx raddr 192.0.2.1 rport 50026103
a=candidate:7 2 UDP 1694495230 192.0.2.1 50027 typ srflx raddr 192.0.2.1 rport 50027104
a=x-candidate-info:7 network-type=wlan105
a=candidate:9 1 UDP 1258287103 192.0.2.1 3480 typ relay raddr 192.0.2.1 rport 50026 MTURNID 14938924457751333887106
a=candidate:9 2 UDP 1258286590 192.0.2.1 3481 typ relay raddr 192.0.2.1 rport 50027 MTURNID 10199217693896611612107
a=x-candidate-info:9 network-type=wlan108
a=candidate:10 1 TCP-ACT 1684794366 192.0.2.1 61504 typ srflx raddr 192.0.2.1 rport 50037109
a=candidate:10 2 TCP-ACT 1684794366 192.0.2.1 61504 typ srflx raddr 192.0.2.1 rport 50037110
a=x-candidate-info:10 network-type=wlan111
a=candidate:11 1 TCP-PASS 1248193022 192.0.2.1 54727 typ relay raddr 192.0.2.1 rport 61504112
a=candidate:11 2 TCP-PASS 1248193022 192.0.2.1 54727 typ relay raddr 192.0.2.1 rport 61504113
a=x-candidate-info:11 network-type=wlan114
a=candidate:12 1 TCP-ACT 1248585726 192.0.2.1 54727 typ relay raddr 192.0.2.1 rport 61504115
a=candidate:12 2 TCP-ACT 1248585726 192.0.2.1 54727 typ relay raddr 192.0.2.1 rport 61504116
a=x-candidate-info:12 network-type=wlan117
a=crypto:1 AES_CM_128_HMAC_SHA1_32 inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|2^31118
a=crypto:2 AES_CM_128_HMAC_SHA1_80 inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|2^31119
a=crypto:3 AES_CM_128_HMAC_SHA1_80 192.0.2.1120
a=crypto:4 AEAD_AES_256_GCM inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|2^31121
a=crypto:5 AEAD_AES_256_GCM 192.0.2.1122
a=fingerprint:sha-256 AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:99123
a=rtcp:3481124
a=mid:video_1125
a=rtpmap:119 X-MSAV1/90000126
a=rtpmap:100 rtx/90000127
a=fmtp:100 apt=119128
a=rtpmap:122 X-H264UC/90000129
a=fmtp:122 packetization-mode=1;mst-mode=NI-TC130
a=rtpmap:125 rtx/90000131
a=fmtp:125 apt=122132
a=rtpmap:107 H264/90000133
a=fmtp:107 profile-level-id=42C02A;packetization-mode=1;max-mbps=3600;max-fs=240;max-br=208;max-fps=1500134
a=rtpmap:99 rtx/90000135
a=fmtp:99 apt=107136
a=rtpmap:114 H265v2/90000137
a=rtpmap:115 rtx/90000138
a=fmtp:115 apt=114139
a=rtpmap:123 x-ulpfecuc/90000140
a=rtcp-mux141
a=extmap:1 http:\\www.webrtc.org\experiments\rtp-hdrext\abs-send-time142
a=extmap:2 http:\\skype.com\experiments\rtp-hdrext\frame-counters143
a=extmap:3 http:\\skype.com\experiments\rtp-hdrext\fast_bandwidth_feedback#version_3144
a=x-bwealgorithm:rmestimator bwc packetpair webrtc