Part of aculab.callcontrol View Source View In Hierarchy
Known subclasses: aculab.callcontrol.Call
An Aculab call handle, and common operations on it.
All events are delegated to the controller; some events are handled internally to maintain the state.
Logging: output from a CallHandle is prefixed withcc-
| Method | __init__ | Initialise the CallHandle, guess the timeslot type and determine |
| Method | get_module | Return a unique identifier for module comparisons. |
| Method | get_switch | Return a unique identifier for module comparisons. |
| Method | get_datafeed | Return the datafeed (always None for a CallHandle). |
| Method | get_timeslot | Get the transmit timeslot for TDM switch connections. |
| Method | openin | Open a call handle for incoming calls. |
| Method | _outparms | Used internally. |
| Method | openout | Make an outgoing call. |
| Method | feature_send | Send feature information at different stages during the lifetime of |
| Method | enquiry | Make an enquiry call, i.e. a call to a third party while |
| Method | transfer | Transfer to another call. |
| Method | hold | Put a call on hold. |
| Method | reconnect | Retrieve a call that was previously put on hold. |
| Method | send_overlap | Send overlap digits. |
| Method | send_keypad_info | Untested. |
| Method | listen_to | Listen to a timeslot on a CTbus.
|
| Method | speak_to | Talk to a timeslot on a CTBus.
|
| Method | get_cause | Return the cause for a disconnected or failed call. |
| Method | get_details | Return (and cache) the details of a call. |
| Method | get_feature_details | Return (and cache) the feature details of a call. |
| Method | accept | Accept the incoming call. |
| Method | incoming_ringing | Signal incoming ringing to the far end. |
| Method | disconnect | Disconnect a call. |
| Method | release | Release the call. |
| Method | close | Alias for release. |
| Method | ev_incoming_call_det | Internal event handler for EV_INCOMING_CALL_DETECTED.
|
| Method | ev_ext_hold_request | Internal event handler for EV_EXT_HOLD_REQUEST.
|
| Method | ev_outgoing_ringing | Internal event handler for EV_OUTGOING_RINGING.
|
| Method | ev_details | Internal event handler for EV_DETAILS.
|
| Method | ev_call_connected | Internal event handler for EV_CALL_CONNECTED.
|
| Method | ev_idle | Internal event handler for EV_IDLE, called before the
|
| Method | ev_idle_post | Internal event handler for EV_IDLE, called after the
|
Inherited from CallHandleBase:
| Method | push_controller | Push a new controller onto the controller stack. |
| Method | pop_controller | Pop a controller from the stack. |
| Parameters | unique | see unique_xparms. |
| cnf | see cnf |
| Parameters | destination_address | number to dial. |
| sending_complete | Typically True, unless overlap sending is used. See send_overlap.
| |
| originating_address | often also called the CLI. | |
| unique | see unique_xparms. | |
| feature_type | see feature_information. | |
| feature | see feature_union. | |
| cnf | see cnf. |
| Parameters | feature_type | see feature_information. |
| feature | see feature_union. | |
| message_control | see message_control. Default is
|
| Parameters | destination_address | number to dial. |
| sending_complete | Typically True, unless overlap sending is used. See send_overlap.
| |
| originating_address | often also called the CLI. | |
| unique | see unique_xparms. | |
| feature_type | see feature_information. | |
| feature | see feature_union. | |
| cnf | see cnf |
Transfer to another call.
This call must be on hold and other call must have been initiated withtenquiry.
| Parameters | call | The call to transfer to. See call_transfer. |
Send overlap digits.
See call_send_overlap.| Parameters | sending_complete | Set this to True if you know that the number is complete.
This is of limited use: if you know the entire number, you don't need
overlap sending, and if you use overlap sending, you typically don't know
when the number is complete.
|
| addr | I don't remember whether this should be the entire number so far or incremental digits. Aculab's tech writers don't know either. |
CTbus.
| Parameters | source | a tuple of (stream, timeslot). @returns a NetEndpoint. Used internally. Applications should useswitching.connect.
|
CTBus.
| Parameters | source | a tuple of (stream, timeslot). @returns a switching.connect.
|
Return the cause for a disconnected or failed call.
See call_getcause.| Returns | a CAUSE_XPARMS structure.
| |
Return (and cache) the feature details of a call.
See call_feature_details.| Returns | a FEATURE_DETAIL_XPARMS structure.
| |
Disconnect a call.
See call_disconnect.| Parameters | cause | this may be a CAUSE_XPARMS struct or an int for an Aculab
cause value.
|
Release the call.
See call_release.| Parameters | cause | this may be a CAUSE_XPARMS struct or an int for an Aculab
cause value.
|
Internal event handler for EV_IDLE, called before the
controller's ev_idle.
get_details()
to update the details.
get_feature_details(lowlevel.FEATURE_FACILITY)
release.
Internal event handler for EV_IDLE, called after the
controller's ev_idle.
None