[package]
name = "sipbot"
version = "0.2.18"
edition = "2024"
authors = ["jinti<shenjindi@fourz.cn>"]
repository = "https://github.com/miuda-ai/sipbot"
description = "A simple SIP bot with RTP"
readme = "README.md"
keywords = ["rtp", "srtp", "sip", "cli"]
categories = ["network-programming"]
license = "MIT"

[dependencies]
tokio = { version = "1", features = ["full"] }
serde = { version = "1", features = ["derive"] }
toml = "0.9.8"
tracing = "0.1"
anyhow = "1.0"
rsipstack = "0.4.3"
#rsipstack = { path = "../rsipstack" }
rsip = "0.4.0"
tokio-util = "0.7.18"
rustrtc = "0.3.4"
#rustrtc = { path = "../rustrtc" }
audio-codec = { version = "0.3.30", default-features = false }
clap = { version = "4", features = ["derive"] }
chrono = "0.4.43"
tracing-subscriber = { version = "0.3.22", features = ["env-filter", "chrono"] }
hound = "3.5.1"
bytes = "1.11.0"
rand = "0.9.2"
futures = "0.3.31"
cpal = { version = "0.17.1", optional = true }
ringbuf = { version = "0.4", optional = true }

[features]
default = ["opus", "local-device"]
opus = ["audio-codec/opus"]
local-device = ["dep:cpal", "dep:ringbuf"]

[profile.release]
opt-level = "z"
lto = true
strip = "symbols"
