Part of aculab.rtp View Source View In Hierarchy
An RTP speech receiver.
Logging: output from a VMPrx is prefixed withvrx-
| 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. |
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:| Parameters | pt | The payload type as an int. |
| fmt | a PTMarker decribing
the codec.
|
| Parameters | sd | A SDP instance describing
the session.
|