This commit is contained in:
coral 2026-04-12 15:16:01 -07:00
parent c4684e99b3
commit acaf50a25c
2 changed files with 9 additions and 2 deletions

4
Cargo.lock generated
View file

@ -2529,7 +2529,7 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
[[package]] [[package]]
name = "pjsua" name = "pjsua"
version = "0.1.0" version = "1.5.6"
dependencies = [ dependencies = [
"bindgen 0.71.1", "bindgen 0.71.1",
"cmake", "cmake",
@ -3624,7 +3624,7 @@ checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e"
[[package]] [[package]]
name = "sipcord-bridge" name = "sipcord-bridge"
version = "1.5.5" version = "1.5.6"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"async-trait", "async-trait",

View file

@ -585,6 +585,13 @@ pub fn init_pjsua(config: &SipConfig, tls_config: Option<&TlsConfig>) -> Result<
// unreachable, causing retransmit storms and eventual 408 disconnect). // unreachable, causing retransmit storms and eventual 408 disconnect).
acc_cfg_ptr.use_timer = pjsua_sip_timer_use_PJSUA_SIP_TIMER_INACTIVE; 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 // Configure RTP port range for media
// port is the starting port, port_range is how many consecutive ports to try // 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; acc_cfg_ptr.rtp_cfg.port = config.rtp_port_start as u32;