| 9 | /// 应用程序顶层配置 |
| 10 | #[derive(Debug, Clone, Deserialize)] |
| 11 | pub struct AppConfig { |
| 12 | /// SIP 服务器配置 |
| 13 | pub server: ServerConfig, |
| 14 | /// 分机配置 |
| 15 | pub extensions: ExtensionConfig, |
| 16 | /// TLS 证书配置 |
| 17 | pub tls: TlsConfig, |
| 18 | /// 媒体中继配置 |
| 19 | pub media: MediaConfig, |
| 20 | /// 分机独立密码(可选,覆盖 default_password) |
| 21 | #[serde(default)] |
| 22 | pub passwords: HashMap<String, String>, |
| 23 | } |
| 24 | |
| 25 | /// SIP 服务器基本配置 |
| 26 | #[derive(Debug, Clone, Deserialize)] |
nothing calls this directly
no outgoing calls
no test coverage detected