BlueGit

ict rusty-teams

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>

metis Daniel Däschle · pushed by metis

Authored 2026-10-12 · 7 weeks ago

Hash
536d653ea06335ce21e43ac8ef184d76965b4df8
Parent
4c147312
8 files changed +230 −12
Cargo.lock +1 −0
@@ -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",
crates/app/Cargo.toml +1 −0
@@ -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 = true
27regex.workspace = true
27regex.workspace = true
28reqwest_client.workspace = true
28reqwest_client.workspace = true
29graph.workspace = true
29graph.workspace = true
30log = "0.4"
30mcp.workspace = true
31mcp.workspace = true
31serde.workspace = true
32serde.workspace = true
32serde_json.workspace = true
33serde_json.workspace = true
crates/app/src/call/launcher.rs +2 −2
@@ -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};
11const START_RETRY_STEPS: [Duration; 3] = [Duration::from_secs(1), Duration::from_secs(2), Duration::from_secs(5)];
11const START_RETRY_STEPS: [Duration; 3] = [Duration::from_secs(1), Duration::from_secs(2), Duration::from_secs(5)];
12const START_RETRY_STEADY: Duration = Duration::from_secs(10);
12const START_RETRY_STEADY: Duration = Duration::from_secs(10);
13const NOT_READY: &str = "Calls are not ready yet";
13const NOT_READY: &str = "Calls are not ready yet";
14const LAST_CALL_DIR: &str = "last-call";
14const CALL_DUMPS_DIR: &str = "call-dumps";
15
15
16pub struct CallLauncher {
16pub 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).await
158 CallEngine::start(session, poll_session, config).await
crates/app/src/diagnostics.rs +25 −0
@@ -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
9static PATH: OnceLock<PathBuf> = OnceLock::new();
9static PATH: OnceLock<PathBuf> = OnceLock::new();
10
10
11const WEBRTC_AUDIO_MARKERS: [&str; 3] = ["AdmProxy", "audio_device_core_win", "core_audio"];
12
11pub fn install(path: PathBuf) {
13pub 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
20struct WebrtcAudioLog;
21
22impl 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
15pub fn directory() -> Option<PathBuf> {
40pub fn directory() -> Option<PathBuf> {
crates/calling/src/call.rs +15 −4
@@ -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> = sdp
2186 let masked: Vec<String> = sdp
2190 .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"]);
crates/calling/src/engine.rs +28 −1
@@ -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
64const KEPT_CALL_DUMPS: usize = 5;
65
66fn 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
64impl Default for EngineConfig {
77impl 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(
490mod tests {
503mod 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!(
crates/calling/src/sdp.rs +14 −5
@@ -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 candidate
812 candidate
808}
813}
@@ -972,7 +977,7 @@ fn browser_rtp_from_teams(source: &Media, mid: &str, folded: bool, carries_candi
972 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]
crates/calling/tests/fixtures/teams_p2p_offer.sdp added +144 −0
@@ -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 @@
1v=0
2o=- 0 0 IN IP4 192.0.2.1
3s=session
4c=IN IP4 192.0.2.1
5b=CT:4000
6t=0 0
7a=x-mediabw:main-video send=12000;recv=12000
8a=group:BUNDLE audio_0 video_1
9m=audio 3480 RTP/SAVP 109 108 104 102 9 111 18 0 8 103 97 13 118 117 120 101
10a=x-ssrc-range:60082-60082
11a=rtcp-fb:* x-message app send:dsh,x-gain recv:dsh,x-gain
12a=rtcp-fb:* nack
13a=rtcp-fb:* transport-cc
14a=rtcp-rsize
15a=label:main-audio
16a=x-source:main-audio
17a=ice-ufrag:abcd
18a=ice-pwd:abcdefghijklmnopqrstuvwx
19a=candidate:8 1 UDP 1258287615 192.0.2.1 3480 typ relay raddr 192.0.2.1 rport 50000 MTURNID 18360964928163898315
20a=candidate:8 2 UDP 1258287102 192.0.2.1 3481 typ relay raddr 192.0.2.1 rport 50001 MTURNID 15674170705013573560
21a=x-candidate-info:8 network-type=wlan
22a=candidate:6 1 UDP 2130703871 192.0.2.1 50000 typ host
23a=candidate:6 2 UDP 2130703358 192.0.2.1 50001 typ host
24a=x-candidate-info:6 network-type=wlan
25a=candidate:3 1 TCP-ACT 2121005566 192.0.2.1 50000 typ host
26a=candidate:3 2 TCP-ACT 2121005566 192.0.2.1 50000 typ host
27a=x-candidate-info:3 network-type=wlan
28a=candidate:7 1 UDP 1694495743 192.0.2.1 50000 typ srflx raddr 192.0.2.1 rport 50000
29a=candidate:7 2 UDP 1694495230 192.0.2.1 50001 typ srflx raddr 192.0.2.1 rport 50001
30a=x-candidate-info:7 network-type=wlan
31a=candidate:9 1 UDP 1258287103 192.0.2.1 3480 typ relay raddr 192.0.2.1 rport 50000 MTURNID 18360964928163898315
32a=candidate:9 2 UDP 1258286590 192.0.2.1 3481 typ relay raddr 192.0.2.1 rport 50001 MTURNID 15674170705013573560
33a=x-candidate-info:9 network-type=wlan
34a=candidate:10 1 TCP-ACT 1684794366 192.0.2.1 59611 typ srflx raddr 192.0.2.1 rport 50009
35a=candidate:10 2 TCP-ACT 1684794366 192.0.2.1 59611 typ srflx raddr 192.0.2.1 rport 50009
36a=x-candidate-info:10 network-type=wlan
37a=candidate:11 1 TCP-PASS 1248193022 192.0.2.1 57050 typ relay raddr 192.0.2.1 rport 59611
38a=candidate:11 2 TCP-PASS 1248193022 192.0.2.1 57050 typ relay raddr 192.0.2.1 rport 59611
39a=x-candidate-info:11 network-type=wlan
40a=candidate:12 1 TCP-ACT 1248585726 192.0.2.1 57050 typ relay raddr 192.0.2.1 rport 59611
41a=candidate:12 2 TCP-ACT 1248585726 192.0.2.1 57050 typ relay raddr 192.0.2.1 rport 59611
42a=x-candidate-info:12 network-type=wlan
43a=crypto:1 AES_CM_128_HMAC_SHA1_32 inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|2^31
44a=crypto:2 AES_CM_128_HMAC_SHA1_80 inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|2^31
45a=crypto:3 AES_CM_128_HMAC_SHA1_80 192.0.2.1
46a=crypto:4 AEAD_AES_256_GCM inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|2^31
47a=crypto:5 AEAD_AES_256_GCM 192.0.2.1
48a=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
49a=maxptime:200
50a=rtcp:3481
51a=mid:audio_0
52a=rtpmap:109 SATINFB/48000/2
53a=fmtp:109 decoderversion=1
54a=rtpmap:108 SATIN/48000
55a=rtpmap:104 SILK/16000
56a=fmtp:104 useinbandfec=0; usedtx=0
57a=rtpmap:102 opus/48000/2
58a=fmtp:102 maxplaybackrate=16000; sprop-maxcapturerate=16000; useinbandfec=1; usedtx=1; minptime=10
59a=rtpmap:9 G722/8000
60a=rtpmap:111 SIREN/16000
61a=fmtp:111 bitrate=16000
62a=rtpmap:18 G729/8000
63a=rtpmap:0 PCMU/8000
64a=rtpmap:8 PCMA/8000
65a=rtpmap:103 SILK/8000
66a=fmtp:103 useinbandfec=0; usedtx=0
67a=rtpmap:97 RED/8000
68a=rtpmap:13 CN/8000
69a=rtpmap:118 CN/16000
70a=rtpmap:117 CN/24000
71a=rtpmap:120 CN/48000
72a=rtpmap:101 telephone-event/8000
73a=fmtp:101 0-16
74a=rtcp-mux
75a=ptime:20
76a=extmap:1 http:\\www.webrtc.org\experiments\rtp-hdrext\abs-send-time
77a=extmap:3 http:\\skype.com\experiments\rtp-hdrext\fast_bandwidth_feedback#version_3
78a=x-bwealgorithm:rmestimator bwc packetpair webrtc
79m=video 3480 RTP/SAVP 119 100 122 125 107 99 114 115 123
80c=IN IP4 192.0.2.1
81a=x-ssrc-range:60083-60182
82a=ssrc-group:FID 60083 60133
83a=rtcp-fb:* x-message app send:src,x-pli recv:src,x-pli
84a=rtcp-fb:* nack
85a=rtcp-fb:* nack pli
86a=rtcp-fb:* goog-remb
87a=rtcp-fb:* transport-cc
88a=rtcp-rsize
89a=label:main-video
90a=x-source:main-video
91a=ice-ufrag:abcd
92a=ice-pwd:abcdefghijklmnopqrstuvwx
93a=candidate:8 1 UDP 1258287615 192.0.2.1 3480 typ relay raddr 192.0.2.1 rport 50026 MTURNID 14938924457751333887
94a=candidate:8 2 UDP 1258287102 192.0.2.1 3481 typ relay raddr 192.0.2.1 rport 50027 MTURNID 10199217693896611612
95a=x-candidate-info:8 network-type=wlan
96a=candidate:6 1 UDP 2130703871 192.0.2.1 50026 typ host
97a=candidate:6 2 UDP 2130703358 192.0.2.1 50027 typ host
98a=x-candidate-info:6 network-type=wlan
99a=candidate:3 1 TCP-ACT 2121005566 192.0.2.1 50020 typ host
100a=candidate:3 2 TCP-ACT 2121005566 192.0.2.1 50020 typ host
101a=x-candidate-info:3 network-type=wlan
102a=candidate:7 1 UDP 1694495743 192.0.2.1 50026 typ srflx raddr 192.0.2.1 rport 50026
103a=candidate:7 2 UDP 1694495230 192.0.2.1 50027 typ srflx raddr 192.0.2.1 rport 50027
104a=x-candidate-info:7 network-type=wlan
105a=candidate:9 1 UDP 1258287103 192.0.2.1 3480 typ relay raddr 192.0.2.1 rport 50026 MTURNID 14938924457751333887
106a=candidate:9 2 UDP 1258286590 192.0.2.1 3481 typ relay raddr 192.0.2.1 rport 50027 MTURNID 10199217693896611612
107a=x-candidate-info:9 network-type=wlan
108a=candidate:10 1 TCP-ACT 1684794366 192.0.2.1 61504 typ srflx raddr 192.0.2.1 rport 50037
109a=candidate:10 2 TCP-ACT 1684794366 192.0.2.1 61504 typ srflx raddr 192.0.2.1 rport 50037
110a=x-candidate-info:10 network-type=wlan
111a=candidate:11 1 TCP-PASS 1248193022 192.0.2.1 54727 typ relay raddr 192.0.2.1 rport 61504
112a=candidate:11 2 TCP-PASS 1248193022 192.0.2.1 54727 typ relay raddr 192.0.2.1 rport 61504
113a=x-candidate-info:11 network-type=wlan
114a=candidate:12 1 TCP-ACT 1248585726 192.0.2.1 54727 typ relay raddr 192.0.2.1 rport 61504
115a=candidate:12 2 TCP-ACT 1248585726 192.0.2.1 54727 typ relay raddr 192.0.2.1 rport 61504
116a=x-candidate-info:12 network-type=wlan
117a=crypto:1 AES_CM_128_HMAC_SHA1_32 inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|2^31
118a=crypto:2 AES_CM_128_HMAC_SHA1_80 inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|2^31
119a=crypto:3 AES_CM_128_HMAC_SHA1_80 192.0.2.1
120a=crypto:4 AEAD_AES_256_GCM inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|2^31
121a=crypto:5 AEAD_AES_256_GCM 192.0.2.1
122a=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
123a=rtcp:3481
124a=mid:video_1
125a=rtpmap:119 X-MSAV1/90000
126a=rtpmap:100 rtx/90000
127a=fmtp:100 apt=119
128a=rtpmap:122 X-H264UC/90000
129a=fmtp:122 packetization-mode=1;mst-mode=NI-TC
130a=rtpmap:125 rtx/90000
131a=fmtp:125 apt=122
132a=rtpmap:107 H264/90000
133a=fmtp:107 profile-level-id=42C02A;packetization-mode=1;max-mbps=3600;max-fs=240;max-br=208;max-fps=1500
134a=rtpmap:99 rtx/90000
135a=fmtp:99 apt=107
136a=rtpmap:114 H265v2/90000
137a=rtpmap:115 rtx/90000
138a=fmtp:115 apt=114
139a=rtpmap:123 x-ulpfecuc/90000
140a=rtcp-mux
141a=extmap:1 http:\\www.webrtc.org\experiments\rtp-hdrext\abs-send-time
142a=extmap:2 http:\\skype.com\experiments\rtp-hdrext\frame-counters
143a=extmap:3 http:\\skype.com\experiments\rtp-hdrext\fast_bandwidth_feedback#version_3
144a=x-bwealgorithm:rmestimator bwc packetpair webrtc