Skip to main content

Pure-Python SIP VoIP client library

Project description

simple-sip

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

Publish to PyPI

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

Installation

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

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.1.0.tar.gz (17.8 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.1.0-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for simple_sip_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c862dc1cfd4672ba414356c2cde56fb3deb44f85c401d617511992902b6232f6
MD5 96036a5baadf9f34474d9383f8a16625
BLAKE2b-256 bacf7a58ed27d9031d6ae6f3d65cd3918bcf092f410e11275d0b34ff493c3d38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_sip_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 35f6a013af0e68ce592460217aa930c65b939dfd07508d5b16d8543e44947382
MD5 95339f287c1c7f437165b42ec7fbad07
BLAKE2b-256 1433e2ba0f1d811de0a22b1ea67ddae30acbac3e0c62d2c58d3f0f599cc83d82

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