由 Rust 编写的 PBX
mkdir -p rustpbx && cd rustpbx
curl -O https://raw.githubusercontent.com/restsend/rustpbx/main/config.toml.example
docker run -d --name rustpbx --net host \
-v $(pwd)/config.toml.example:/app/config.toml \
ghcr.io/restsend/rustpbx:latest --conf /app/config.toml
# Create the admin account (first time only)
docker exec rustpbx /app/rustpbx --conf /app/config.toml \
--super-username admin --super-password changemegit clone --recurse-submodules https://github.com/restsend/rustpbx
cd rustpbx
cargo run --release -- --conf config.toml.example为 Windows 64 位系统进行交叉编译 (从 Linux/macOS):
rustup target add x86_64-pc-windows-gnu
cargo build --release --target x86_64-pc-windows-gnu
# output: target/x86_64-pc-windows-gnu/release/rustpbx.exe就是这样 — 示例配置在出厂时就启动了完整的 PBX:
| 访问 | 值 |
|---|---|
| Web 控制台 | http://localhost:8080/console/ |
| SIP 代理 | udp://localhost:15060 |
| 测试扩展 | bob / alice, 密码 123456 |
没有任何配置吗?
cargo run --release也可以使用 – 内置默认值: HTTP0.0.0.0:8080, SQLite, SIP UDP5060。
[proxy] [console]
暂无开放 Issues,或尚未同步最近议题。