README
ยถ
SIPLink
A lightweight SIP call bridging tool for VOIP.MS that connects two phone numbers via automated transfer.
Features
- ๐ Bridges two phone calls using SIP REFER method
- ๐ HD voice support with G.722 codec
- ๐ Fast and lightweight Go implementation
- ๐ Secure digest authentication
- ๐ฆ Nix flake for reproducible builds
- ๐ฅ๏ธ Cross-platform support (macOS, Linux)
Installation
Using Nix (Recommended)
# Run directly
nix run github:ak2k/siplink -- 15551234567 15559876543
# Install to profile
nix profile install github:ak2k/siplink
From Source
git clone https://github.com/ak2k/siplink
cd siplink
go build -o siplink main.go
Configuration
Set your VOIP.MS credentials as environment variables:
export VOIPMS_USER='your_voipms_username'
export VOIPMS_PASS='your_voipms_password'
export VOIPMS_SERVER='chicago.voip.ms' # Optional, defaults to chicago
Available VOIP.MS Servers
See VOIP.MS Recommended POPs for the full list of available servers and their locations.
Usage
# Basic usage
siplink <source_number> <destination_number>
# Example
siplink 15551234567 15559876543
# With environment override
VOIPMS_SERVER=toronto.voip.ms siplink 14161234567 14169876543
Integration with Password Managers
Bitwarden
Using rbw, a fast Bitwarden CLI:
-
Store your credentials in Bitwarden:
- Item name:
voipms(or any name you prefer) - Custom fields:
voipms_user: Your VOIP.MS usernamevoipms_pass: Your VOIP.MS password
- Item name:
-
Install and configure rbw:
# Install rbw nix-env -iA nixpkgs.rbw # or add to your nix configuration # First-time setup rbw config set email your.email@example.com rbw login rbw sync -
Use with siplink:
# Set credentials from Bitwarden export VOIPMS_USER=$(rbw get "voipms" --field voipms_user) export VOIPMS_PASS=$(rbw get "voipms" --field voipms_pass) export VOIPMS_SERVER="chicago.voip.ms" # or your preferred server # Run siplink siplink 15551234567 15559876543
How It Works
- Registration: Authenticates with VOIP.MS SIP server
- Call Initiation: Places call to first number
- Transfer: Uses SIP REFER to transfer call to second number
- Monitoring: Tracks transfer progress via NOTIFY messages
- Completion: Exits cleanly when transfer succeeds
Requirements
- VOIP.MS account with sub-account credentials
- Go 1.21+ (for building from source)
- Nix (for nix-based installation)
Troubleshooting
Number Format
Use 11-digit format for US/Canada numbers: 1XXXXXXXXXX
Authentication Failures
- Verify credentials are correct
- Check if your IP is whitelisted in VOIP.MS settings
- Try a different server if connection fails
Transfer Issues
Some carriers may not support SIP REFER transfers. Test with known working numbers first.
License
MIT License - see LICENSE file for details
Contributing
Pull requests welcome! Please ensure:
- Code follows Go conventions
- Tests pass
- Documentation is updated
- Both
flake.lockandvendorHashare updated when dependencies change
Acknowledgments
Built with SIPGO - a modern SIP library for Go.
Documentation
ยถ
There is no documentation for this package.
Click to show internal directories.
Click to hide internal directories.