Skip to main content

programs using voip.ms API

These programs use the API of the voip.ms phone service

Description

This set of programs uses a config file to supply authentication information to use the API of the VOIP service at voip.ms. There is an included example config file that needs to have the userid and password changed, and the file installed into your HOME directory. You can tweak the config file to set which fields you are interested in, the order and size of the fields, and the titles.

programs

  • black-list
  • get-cdrs
  • get-did-info
  • send-sms-message

Installation

To install from downloading from Github:

make install        # install programs
make man            # install man-pages

To install from the Python Package Index (PyPI):

pip install voip-ms-moxad

Example usages

This will print CDR records from November 11 to November 22, in reverse order such that records will be numbered from oldest to newest:

% get-cdrs --from 2017-11-15 --to 2017-11-22 --reverse

This will print last months CDR records and the cost for account 'home':

% get-cdrs --last-month --cost --account home

This will print the filter rules along with filter IDs to make changes to an existing rule:

% black-list

This will set a filter rule giving a Busy signal instead of the default NoService message:

% black-list --note 'Bad Evil Dudes' --busy  416-555-1212 

This will change the previous filter rule from Busy to Hangup instead:

% black-list --hangup --filterid 12345

This will send a SMS message to barney (an alias set up in the config file):

% send-sms-message -r barney Time for a beer

This will print all data about each DID, with the phone-number preceded by the (sub)account-name

% get-did-info --account --all

There is a help option with each program. For eg:

% get-cdrs --help

usage: get-cdrs [options]*
    [-a|--account str]     (account name)
    [-c|--config file]     (config-file (default=/home/rj/.voip-ms.conf)
    [-d|--debug]           (debugging output)
    [-f|--from date]       (YYYY-MM-DD - FROM date)
    [-h|--help]            (help)
    [-p|--padding num]     (padding between output fields (default=3)
    [-q|--quiet]           (quiet.  No headings and titles)
    [-r|--reverse]         (reverse date order of CDR output)
    [-s|--sheldon]
    [-t|--to date]         (YYYY-MM-DD - TO date)
    [-w|--timeout  num]    (default=120)
    [-C|--cost]            (total up costs and duration of CDRs)
    [-L|--last-month]      (want CDR records for LAST month)
    [-T|--this-month]      (want CDR records for THIS month)
    [-V|--version]         (print version of this program)    

API setup.

You need to set up your voip.ms service to permit access to it. This includes providing which IP addresses can use it. Please see the following URL for instructions:

https://voip.ms/m/api.php

Metadata

Release files for voip-ms-moxad 0.8.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for voip-ms-moxad 0.8.5
File Size Uploaded Provenance Actions
voip_ms_moxad-0.8.5.tar.gz 3.1 MB Without provenance Details for voip_ms_moxad-0.8.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for voip-ms-moxad 0.8.5
File Interpreter ABI Platform Actions
voip_ms_moxad-0.8.5-py2.py3-none-any.whl Python 2, Python 3 none any Details for voip_ms_moxad-0.8.5-py2.py3-none-any.whl

Total release size: 3.2 MB

Release files / voip_ms_moxad-0.8.5.tar.gz

Download URL voip_ms_moxad-0.8.5.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
388c95615809dae7032668f908f622b966cbff6ca76b1108a8a79750cdba5b55
BLAKE2b-256 checksum
How to use checksums
41028df745e20ac78e7990b1ca83731a3949ee48a7bb51a8c6ed041dda9f021f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / voip_ms_moxad-0.8.5-py2.py3-none-any.whl

Download URL voip_ms_moxad-0.8.5-py2.py3-none-any.whl
Size 38.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d52ba26dc9207b7a4ebf3c1a65eecbfc4d6f77a2dde4585fdcb340b2d00efa87
BLAKE2b-256 checksum
How to use checksums
e10575c8b57a02c6b832bcbadd3719ddd2af6953590284b6ec8a0e3c24322b0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Security for voip-ms-moxad 0.8.5

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page