Skip to main content

Pure-Python SIP VoIP client library

Project description

simple-sip-client

PyPI GitHub Publish to PyPI

Pure-Python SIP VoIP client library (no external dependencies for SIP/RTP). Can be used ala CLI Tool or Code Library.

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:

python demos/basic.py
python demos/tts-stt.py

Project Structure

voip/
├── README.md
├── setup.py
├── pyproject.toml
├── hold-queue-config.json
├── hold-queue.py        # Music-on-hold with announcements
├── main.py              # CLI-based SIP client
├── demos/
│   ├── basic.py         # Interactive SIP client demo
│   ├── queue.py         # Simple audio streaming demo
│   ├── debug-audio.py   # RTP audio dump tool
│   └── tts-stt.py       # Voice chat with local STT/TTS
└── 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

  • basic.py – Interactive SIP client (receive/make calls)
  • hold-queue.py – Auto-answer with music-on-hold + announcements
  • queue.py – Stream audio file as RTP to caller
  • debug-audio.py – Save incoming RTP audio to WAV files
  • tts-stt.py – Voice chat with local STT/TTS
  • 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.3.tar.gz (32.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.0.3-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_sip_client-0.0.3.tar.gz
  • Upload date:
  • Size: 32.8 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.3.tar.gz
Algorithm Hash digest
SHA256 c56f8ff0a89f5995a0cd931089b2470c7d0e494693abfd332218a11dc2915cff
MD5 a2654344abef29aa7cf7ea12f8a84f32
BLAKE2b-256 7a5c1a3c984b92f279f9d728c6d7747162149c943a6eddc1e082a8d9b08032fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_sip_client-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6e47a616a861856373828b3ea23eb16d483d083bf6b1d042f0abeec870b00017
MD5 b48a329bf831cab86db67b557a76daf1
BLAKE2b-256 fac90a8fefe83646cb3da184c23512df239dc75c86747b3ab94f49d811e6293c

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