Module a.switching

Part of aculab View Source

CT Busses, endpoints and connect.

This module contains Connection endpoints, Connection objects, Paths and CT busses.
Function get_datafeed Safely get the datafeed from item.
Class CTBusEndpoint An endpoint on a bus.
Class NetEndpoint An endpoint on a network port.
Class SpeechEndpoint An endpoint to a DSP.
Class VMPtxEndpoint An endpoint to a VMPtx (RTP transmitter).
Class FMPtxEndpoint An endpoint to a FMPtx (RTP T.38 transmitter).
Class PathEndpoint An endpoint to a Path.
Class TDMtx A TDM transmitter.
Class TDMrx A TDM receiver.
Class CTBus Base class for an isochronous, multiplexed bus.
Class ProsodyTimeslots The timeslots for one Prosody DSP.
Class MVIP MVIP Bus.
Class SCBus SCBus, Dialogic's successor of PEB.
Class H100 H.100 (and H.110), the ECTF defined bus standards.
Function DefaultBus Singleton: Return the sanest bus supported by the hardware.
Class Connection A connection between two resources.
Function connect Create a duplex connection between a and b.
Class Path Path objects can be used for mixing, echo cancellation, automatic gain
def get_datafeed(item): (source)
Safely get the datafeed from item.
def DefaultBus(): (source)

Singleton: Return the sanest bus supported by the hardware.

If more than one bus type is supported by all cards, the order of preference is:
  • H100
  • SCBus
  • MVIP
def connect(a, b, bus=DefaultBus(), force_timeslot=False, force_bus=False): (source)
Create a duplex connection between a and b.
Parametersaa duplex capable entity (like a CallHandle or a SpeechChannel) or a tuple of (tx, rx).
ba duplex capable entity (like a CallHandle or a SpeechChannel) or a tuple of (tx, rx).
force_timeslotmake the connection using timeslots.
force_busforce the connection through a loopback on the bus.
Returns

A Connection object containing all endpoints and timeslots allocated for the connection. This object will dissolve the connection when it is deleted.

Note: Ignoring the return value will immediately dissolve the connection. Don't do that.
API Documentation for pyAculab, generated by pydoctor at 2009-01-02 15:12:29.