Package aculab

View Source

Event driven, MVC inspired Python wrapper around the Aculab API.
Module callcontrol Call Control - a thin layer on top of the Aculab API.
Module error Exception classes for the Aculab API.
Module fax FAX jobs for the SpeechChannel.
Module names Map constant values to names.
Module posixreactor Reactor implementation for Posix systems that have poll().
Module reactor Utilities for portable event handling.
Module rtp RTP and speech processing functions.
Module sdp SDP, aka Session Description Protocol, as described in RFC 2327.
Module sip Aculab SIP call handles. These are very similar to CallHandle.
Module snapshot A snapshot of all available cards, ports and modules (v6 API and later).
Module speech The SpeechChannel and higher level speech processing functions.
Module switching CT Busses, endpoints and connect.
Module timer A thread-based timer
Module util Utility classes: OrderedDict and EventQueue.
Module win32reactor Reactor implementation for Windows systems.

From the __init__.py module:

Function daemonize This forks the current process into a daemon.
Function defaultLogging Establish default logging as used by the example scripts.
Function set_TiNGtrace Helper function for the option parser: set TiNGtrace.
Function defaultOptions A default option parser.
def daemonize(stdout='/dev/null', stderr=None, stdin='/dev/null', pidfile=None): (source)

This forks the current process into a daemon.

The stdin, stdout, and stderr arguments are file names that will be opened and used to replace the standard file descriptors in sys.stdin, sys.stdout, and sys.stderr.

These arguments are optional and default to /dev/null. Note that stderr is opened unbuffered, so if it shares a file with stdout then interleaved output may not appear in the order that you expect.
def defaultLogging(level=logging.WARNING, logfile=None): (source)

Establish default logging as used by the example scripts.

If logfile is None (the default), log to stdout. Read the source for details.
def set_TiNGtrace(option, opt, value, parser): (source)
Helper function for the option parser: set TiNGtrace.
def defaultOptions(*args, repeat=False, **kwargs): (source)

A default option parser.

Related Python documentation: optparse

Passes all extra args/kwargs on to the OptionParser constructor.

The returned option parser understands the following arguments:
  • -c CARD or --card=CARD: select card
  • -p PORT or --port=PORT: select port
  • -c MODULE or --module=MODULE: select module
  • -t TiNGtrace or --tingtrace=TiNGtrace: select TiNGtrace level (0-9)
  • -r or --repeat: repeat after hangup
ParametersrepeatInclude -r or --repeat in the option list. Off by default.
Returnsan option parser with the default options listed above.
API Documentation for pyAculab, generated by pydoctor at 2009-01-02 15:12:29.