From acaf50a25c04b35c5f81bb1692f8b52a0b8489ac Mon Sep 17 00:00:00 2001 From: coral Date: Sun, 12 Apr 2026 15:16:01 -0700 Subject: [PATCH] woof --- Cargo.lock | 4 ++-- sipcord-bridge/src/transport/sip/ffi/init.rs | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 164c106..ffef21e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2529,7 +2529,7 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "pjsua" -version = "0.1.0" +version = "1.5.6" dependencies = [ "bindgen 0.71.1", "cmake", @@ -3624,7 +3624,7 @@ checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" [[package]] name = "sipcord-bridge" -version = "1.5.5" +version = "1.5.6" dependencies = [ "anyhow", "async-trait", diff --git a/sipcord-bridge/src/transport/sip/ffi/init.rs b/sipcord-bridge/src/transport/sip/ffi/init.rs index 266200d..477ab2b 100644 --- a/sipcord-bridge/src/transport/sip/ffi/init.rs +++ b/sipcord-bridge/src/transport/sip/ffi/init.rs @@ -585,6 +585,13 @@ pub fn init_pjsua(config: &SipConfig, tls_config: Option<&TlsConfig>) -> Result< // unreachable, causing retransmit storms and eventual 408 disconnect). acc_cfg_ptr.use_timer = pjsua_sip_timer_use_PJSUA_SIP_TIMER_INACTIVE; + // Disable codec locking. When enabled (the default), pjsua sends an + // UPDATE or re-INVITE after call establishment to narrow the codec list + // to the single negotiated codec. Many phones (e.g. Snom 300) respond + // 481 to in-dialog UPDATE, killing the call immediately after answer. + // The initial INVITE/200 OK codec negotiation is sufficient. + acc_cfg_ptr.lock_codec = 0; + // Configure RTP port range for media // port is the starting port, port_range is how many consecutive ports to try acc_cfg_ptr.rtp_cfg.port = config.rtp_port_start as u32;