DAHDI

DAHDI is an interface layer for integrating traditional telephony technologies with digital formats.

Members

All of the following objects should be accessed as part of the ami.dahdi_events namespace, regardless of the modules in which they are defined.

Events

class ami.dahdi_events.DAHDIShowChannels(response)

Bases: pystrix.ami.ami._Event

Describes the current state of a DAHDI channel.

Yes, the event’s name is pluralised.

  • ‘AccountCode’: unknown (not present if the DAHDI channel is down)
  • ‘Alarm’: unknown
  • ‘Channel’: The channel being described (not present if the DAHDI channel is down)
  • ‘Context’: The Asterisk context associated with the channel
  • ‘DAHDIChannel’: The ID of the DAHDI channel
  • ‘Description’: unknown
  • ‘DND’: ‘Disabled’ or ‘Enabled’
  • ‘Signalling’: A lexical description of the current signalling state
  • ‘SignallingCode’: A numeric description of the current signalling state
  • ‘Uniqueid’: unknown (not present if the DAHDI channel is down)
process()

Translates the ‘DND’ header’s value into a bool.

Translates the ‘DAHDIChannel’ and ‘SignallingCode’ headers’ values into ints, or -1 on failure.

class ami.dahdi_events.DAHDIShowChannelsComplete(response)

Bases: pystrix.ami.ami._Event

Indicates that all DAHDI channels have been described.

  • ‘Items’: The number of items returned prior to this event
process()

Translates the ‘Items’ header’s value into an int, or -1 on failure.

Aggregate Events

class ami.dahdi_events.DAHDIShowChannels_Aggregate(action_id)

Bases: pystrix.ami.ami._Aggregate

Emitted after all DAHDI channels have been enumerated in response to a DAHDIShowChannels request.

Its members consist of DAHDIShowChannels events.

It is finalised by DAHDIShowChannelsComplete.