ragleap-phone
Status: pre-alpha, version 0.1.0. A media library, not a phone product. It handles the audio of one call over RTP once something else (a PBX, a SIP server) has set the call up. It does not place or answer calls by itself, and it has never been tried against a real PBX or trunk.
What it has
Standard library only, no runtime dependencies, Python 3.10 or newer:
Frame, a frozen audio frame (16-bit PCM, mono) that carries its own sample rate and timestamp.Resampler: 16 kHz to and from 8 kHz and 48 kHz (windowed-sinc filters copied from ragleap-voice, checked against them by a test).- G.711 mu-law and A-law, and the inbound and outbound audio paths built on them. The mu-law encoder and the A-law tables are not verified against the standard.
- RTP packet parsing and building for G.711 (static payload types 0 and 8) with a receiver that handles reordering, loss gaps and sequence restarts by fixed rules.
RtpMediaEndpoint: one call over UDP. It listens on 127.0.0.1 unless the operator opts in to another address, and the operator supplies the expected remote address. Rate limit, idle timeout (10 s) and maximum call length are built in. No audio, payload, number or address is logged.- Receiving DTMF (RFC 4733), off by default and without integrity: do not use it for PINs.
- The adapter interfaces (
Adapter,Call,Capabilities,Event) that a signalling backend would implement. No backend exists yet.
What it does not have
SIP signalling (hangup() ends only our media), several calls at once, sending DTMF, SRTP, RTCP, a jitter buffer, any backend adapter (Asterisk, jambonz, LiveKit, WebSocket) and Twilio behind the adapter. Media is not encrypted or authenticated. Emergency calling will never be supported.
Evidence
- 245 unit tests pass with 1 skipped (fakes and loopback sockets only).
- One run against Asterisk 22.12.0 on loopback with a synthetic tone, the UnicastRTP route only, one run per case. Details and limits: docs/design/real-traffic-test-asterisk.md in the repository.
- Not tested: a real PBX or trunk, packet loss, jitter, hang-up from the signalling side, SRTP, the externalMedia route, real calls of any length.
- For speech recognition on telephone-quality audio, ragleap-voice has simulated measurements only: an 8 kHz mu-law path alone cost no measurable accuracy on clean read speech, while noise together with that path did.
More
The goal is phone calls for RagLeap without Twilio, as independent of any single provider as possible. Speech stays in ragleap-voice. The plan, decisions and conventions are in docs/HANDOVER.md and docs/design/media-release-plan.md in the repository (packages/ragleap-phone at github.com/ragleap/ragleap-core). The call for contributors, country by country, is issue 814 in the ragleap-core repository.
Metadata
Release files for ragleap-phone 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ragleap_phone-0.1.0.tar.gz | 60.2 kB | With provenance | Details for ragleap_phone-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ragleap_phone-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ragleap_phone-0.1.0-py3-none-any.whl |
Total release size: 81.0 kB
Release files / ragleap_phone-0.1.0.tar.gz
| Download URL | ragleap_phone-0.1.0.tar.gz |
|---|---|
| Size | 60.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc0c9b825924b2e60c5858c0cc523ca74d3f6ea1dc7a6b7228548522e61646e4
|
|
BLAKE2b-256 checksum How to use checksums |
e451647dae3d4e6c9ec569b4932a724b778ede54471bbcb129e5d648463e5afb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logRelease files / ragleap_phone-0.1.0-py3-none-any.whl
| Download URL | ragleap_phone-0.1.0-py3-none-any.whl |
|---|---|
| Size | 20.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b2a55425dca2a37e39ea69cbb775f3ca7f43603d4998e5e85a1a7388b699a30
|
|
BLAKE2b-256 checksum How to use checksums |
440221b04a0413717b8e60736292d8dcce1d5d3f60d4a1cc411aa151e2582034
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logSecurity for ragleap-phone 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ragleap_phone-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.