Part of aculab.switching View Source View In Hierarchy
An endpoint on a network port.
Endpoints are used to close aConnection. They
do all their work in close or upon destruction (which calls
close).
| Method | __init__ | Initialize an endpoint. |
| Method | close | Disable the endpoint. |
| Method | __del__ | Close the endpoint if it is still open |
| Method | __repr__ | Print a representation of the endpoint. |
| Parameters | sw | Handle for the switch card. On v6, this is an ACU_CARD_ID,
on v5, this is an index to the card.
|
| port | The network port. On v6, this is an ACU_PORT_ID, on v5, it
is the index of the module (restarts at zero for each new card)
| |
| ts | A tuple (stream, timeslot) |
Disable the endpoint.
This method will assert a silence pattern on the network timeslot.
The silence pattern (alaw or mulaw) is inferred from the line type viacall_line. E1 ports are assumed to be alaw, everything else
mulaw.