Skip to main content

Pure-Python SIP VoIP client library

Project description

simple-sip-client

PyPI GitHub Build

Pure-Python SIP VoIP client library (no external dependencies for SIP/RTP).

Full documentation: docs/index.md

Installation

# from PyPI
pip install simple-sip-client

# or from source (editable)
pip install -e .

Then use from any script:

from simple_sip import SIPClient

Or run demos directly (auto-adds src/ to path):

python demo.py
python hold-queue.py

Project Structure

voip/
├── README.md
├── setup.py
├── pyproject.toml
├── hold-queue-config.json
├── demo.py              # Interactive SIP client demo
├── hold-queue.py        # Music-on-hold with announcements
├── queue-demo.py        # Simple audio streaming demo
├── debug_audio.py       # RTP audio dump tool
├── main.py              # CLI-based SIP client
└── src/
    └── simple_sip/      # Python package
        ├── __init__.py
        ├── sip_client.py   # SIP client (register, call, events)
        ├── sip_message.py  # SIP message parser/generator
        ├── sip_auth.py     # Digest authentication
        ├── sip_transport.py # UDP transport
        ├── sip_sdp.py      # SDP parser/answer/offer
        ├── sip_media.py    # RTP media stream
        └── ringtone.py     # Ringtone player

Demos

  • demo.py – Interactive SIP client (receive/make calls)
  • hold-queue.py – Auto-answer with music-on-hold + announcements
  • queue-demo.py – Stream audio file as RTP to caller
  • debug_audio.py – Save incoming RTP audio to WAV files
  • main.py – CLI with --on-invite scripts

Configuration

Edit hold-queue-config.json for hold-queue.py settings. Environment variables SIP_SERVER, SIP_PORT, SIP_USER, SIP_PASS override defaults in demo scripts.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_sip_client-0.0.2.tar.gz (28.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_sip_client-0.0.2-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file simple_sip_client-0.0.2.tar.gz.

File metadata

  • Download URL: simple_sip_client-0.0.2.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for simple_sip_client-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a196f1854975af67bf72ccb7c26dd96275103c42b55857fdde9e28af226c8c7d
MD5 9055d3855b126644bfaf29a4bec0671a
BLAKE2b-256 12fb9151ab4c2e3abe8985066289c3e7afa043eeb17c6c738770fcc99ead1cd7

See more details on using hashes here.

File details

Details for the file simple_sip_client-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_sip_client-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 922625739ccb00d139aecd28ac83a67de13d1c5290fdf8bde7a72a7d2c85a64f
MD5 a33e0170ecf456525ae154819b44c101
BLAKE2b-256 084e70c0bd5d8b379c8ccdabc85c43ce385e2029a03623f0695cf4132a20aef2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page