Class a.r.VMPrx(RxBase):

Part of aculab.rtp View Source View In Hierarchy

An RTP speech receiver.

Logging: output from a VMPrx is prefixed with vrx-
Method __init__ Allocate an RTP receiver, configure alaw/mulaw and RFC 2833 codecs
Method close Stop the receiver.
Method __del__ Undocumented
Method get_rtp_address Return the RTP address and port as a Python-friendly tuple.
Method get_rtcp_address Return the RTCP address and port as a Python-friendly tuple.
Method on_vmprx Internal event handler.
Method get_datafeed Used internally by the switching protocol.
Method media_description Return a media description with all supported codecs.
Method default_sdp Undocumented
Method config_codec Configure a codec.
Method configure Configure the Receiver according to the SDP.
Method config_tones Configure RFC2833 tone detection/regeneration.

Inherited from RxBase:

Method rx_tdm_connect For Receiver subclasses: connect to a timeslot on its
Method get_module Return a unique identifier for module comparisons.
Method get_switch Return a unique identifier for switch card comparisons.
Method get_timeslot Return the tx timeslot for TDM switch connections.
def __init__(self, controller, card=0, module=0, user_data=None, ts_type=lowlevel.kSMTimeslotTypeALaw, reactor=Reactor): (source)

Allocate an RTP receiver, configure alaw/mulaw and RFC 2833 codecs and add its event to the reactor.

Note: the VMPrx is not ready to use until it has called 'vmprx_ready' on its controller.

Controllers must implement:
  • vmprx_ready(vmprx, user_data)
  • vmprx_newssrc(vmprx, address, ssrc, user_data)
  • dtmf(vmprx, digit, user_data).
def close(self): (source)
Stop the receiver.
def __del__(self): (source)
Undocumented
def get_rtp_address(self): (source)
Return the RTP address and port as a Python-friendly tuple.
def get_rtcp_address(self): (source)
Return the RTCP address and port as a Python-friendly tuple.
def on_vmprx(self): (source)
Internal event handler.
def get_datafeed(self): (source)
Used internally by the switching protocol.
def media_description(self, enable_rfc2833=True): (source)
Return a media description with all supported codecs.
def default_sdp(self, configure=False, enable_rfc2833=True): (source)
Undocumented
def config_codec(self, pt, fmt, plc_mode=lowlevel.kSMPLCModeDisabled): (source)
Configure a codec.
ParametersptThe payload type as an int.
fmta PTMarker decribing the codec.
def configure(self, sd, plc_mode=lowlevel.kSMPLCModeDisabled): (source)
Configure the Receiver according to the SDP.
ParameterssdA SDP instance describing the session.
def config_tones(self, detect=True, regen=False): (source)
Configure RFC2833 tone detection/regeneration.
API Documentation for pyAculab, generated by pydoctor at 2009-01-02 15:12:29.