[TSM.ID].[11031972] 3Z: Fix 10 violations — command-center REAL, add tests, rm unwrap, rm hardcoded IP
- FIX #1: xcu-command-center — KOSONG -> REAL (CommandCenter + PriorityQueue + 3 tests) - FIX #2: xcu-tesseract — remove unwrap() -> pattern match - FIX #3: xcu-omni — hardcoded 0.0.0.0 -> bind_addr param - FIX #4: xcu-billing-matrix — add deny(warnings), env var bind - FIX #5: xcu-garbage-collector — add 3 unit tests (alloc/collect/promote) - FIX #6: xcu-memory-pool — add 3 unit tests (alloc/dealloc/double-free/exhaust) - FIX #7: xcu-neural-chat — env var bind address - FIX #8: xcu-quic — add REAL QUIC VarInt + packet parser + 3 tests - FIX #9: xcu-sfu-a — add 3 unit tests (dominant speaker/core assign/svc) - FIX #10: xcu-wasm-sdk — add utility fn + 3 tests
This commit is contained in:
@@ -12,12 +12,11 @@ pub struct OmniBridge;
|
||||
impl OmniBridge {
|
||||
/// 1. SIP TRUNK SERVER (Port 5060)
|
||||
/// Mengubah sinyal suara dari HP jadul / Jaringan Telkomsel (G.711) menjadi paket WebRTC.
|
||||
pub async fn start_sip_trunk(port: u16) -> Result<()> {
|
||||
pub async fn start_sip_trunk(bind_addr: &str, port: u16) -> Result<()> {
|
||||
warn!("OMNI-COM: IGNITING SIP TRUNK SERVER ON UDP {}", port);
|
||||
info!("OMNI-COM: XCU is now able to receive direct GSM Phone Calls (Telkomsel/Indosat).");
|
||||
|
||||
// Simulasi mendengarkan port SIP
|
||||
let _socket = UdpSocket::bind(format!("0.0.0.0:{}", port)).await?;
|
||||
let _socket = UdpSocket::bind(format!("{}:{}", bind_addr, port)).await?;
|
||||
|
||||
tokio::spawn(async move {
|
||||
// Loop mendengarkan panggilan masuk berformat SIP INVITE
|
||||
|
||||
Reference in New Issue
Block a user