Skip to main content

DTMF (rfc2833) generator

Project description

dtmf_py

This module allows you to get a list of tone dialing RTP packets.

Installation:

poetry

poetry add dtmf-py

pip

pip install dtmf-py

Usage:

from dtmf_py import DTMF
from rtp import PayloadType


payload: list[bytes] = DTMF.make_numbers_packets(
    numbers='123*',
    payload_type=PayloadType.DYNAMIC_101,
    tone_packets_count=10
)

This code returns a list of tone dialing RTP packets for the transmitted number.
What to do with them next is up to you.

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

dtmf_py-0.1.3.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dtmf_py-0.1.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file dtmf_py-0.1.3.tar.gz.

File metadata

  • Download URL: dtmf_py-0.1.3.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.8.0-52-generic

File hashes

Hashes for dtmf_py-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5f61768c5dac720c359d3f5c9bd1aec65a09978f57d659185d7112a17e311f90
MD5 b254df363d0d33dc760091fda1396ae6
BLAKE2b-256 5a8629371cd69ccab9abf02e3f0b34f76999d6e67cb1df5b407b2632f15df6fe

See more details on using hashes here.

File details

Details for the file dtmf_py-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: dtmf_py-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.8.0-52-generic

File hashes

Hashes for dtmf_py-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0d9c40603e16ad413b53172a3f04b1ab6e296a76407cbd8e1f95194d139402ae
MD5 ffba3f0b81b7a32e3d02dd14d84abbf1
BLAKE2b-256 8b99c83306a26dd08aa9c917e9c45a585969aac95224422688dfeb36f049fef0

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