siplink

command module
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2025 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README ยถ

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

# 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:

  1. Store your credentials in Bitwarden:

    • Item name: voipms (or any name you prefer)
    • Custom fields:
      • voipms_user: Your VOIP.MS username
      • voipms_pass: Your VOIP.MS password
  2. 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
    
  3. 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

  1. Registration: Authenticates with VOIP.MS SIP server
  2. Call Initiation: Places call to first number
  3. Transfer: Uses SIP REFER to transfer call to second number
  4. Monitoring: Tracks transfer progress via NOTIFY messages
  5. 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.lock and vendorHash are updated when dependencies change

Acknowledgments

Built with SIPGO - a modern SIP library for Go.

Documentation ยถ

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ ๆข็ฝ‘ๅ€