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).

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.1.1.tar.gz (18.0 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.1-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_sip_client-0.1.1.tar.gz
  • Upload date:
  • Size: 18.0 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.1.1.tar.gz
Algorithm Hash digest
SHA256 991304d565ff8561f4027dc2094763e9d4c8e69430621b8f3e3b102601e0a33b
MD5 485694215e8837e298c2bdf6e39f9572
BLAKE2b-256 8067a207656dd9eaffd67a5b6515da6f30cbf9f3f3012865b6de03b9990bcc9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_sip_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8879141a902588a1cc8ba2d348f0f4418d4c658cb68f9563d495c607a135dc07
MD5 d388ae1a0057c1e7a42d89c8d1b57730
BLAKE2b-256 736d049ead8d7f21e387f06f24c285c27c32fe984c719fa401cf3c1f73acd31c

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