Pure-Python SIP VoIP client library
Project description
simple-sip-client
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-invitescripts
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c56f8ff0a89f5995a0cd931089b2470c7d0e494693abfd332218a11dc2915cff
|
|
| MD5 |
a2654344abef29aa7cf7ea12f8a84f32
|
|
| BLAKE2b-256 |
7a5c1a3c984b92f279f9d728c6d7747162149c943a6eddc1e082a8d9b08032fa
|
File details
Details for the file simple_sip_client-0.0.3-py3-none-any.whl.
File metadata
- Download URL: simple_sip_client-0.0.3-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e47a616a861856373828b3ea23eb16d483d083bf6b1d042f0abeec870b00017
|
|
| MD5 |
b48a329bf831cab86db67b557a76daf1
|
|
| BLAKE2b-256 |
fac90a8fefe83646cb3da184c23512df239dc75c86747b3ab94f49d811e6293c
|