Skip to main content

CommandAction

Enum CommandAction 

Source
pub enum CommandAction {
Show 55 variants BeginCall { line_instance: LineInstance, call_id: CallId, codec: Codec, }, BeginTransfer { source_call_id: CallId, consultation_line_instance: LineInstance, consultation_call_id: CallId, codec: Codec, }, SetCallInfo { call_id: CallId, info: CallInfo, }, CommitOutboundCall { call_id: CallId, info: CallInfo, }, PresentOutboundProceeding { call_id: CallId, info: CallInfo, }, PresentOutboundRinging { call_id: CallId, info: CallInfo, }, SetCallState { call_id: CallId, state: CallState, }, SetCallSelected { call_id: CallId, selected: bool, }, DisplayPrompt { call_id: CallId, timeout_seconds: u32, text: String, }, ClearPrompt { call_id: CallId, }, SetStatusMessage { message: HandsetStatusMessage, beep: bool, }, SetMicrophoneMode { enabled: bool, }, SetRecordingStatus { call_id: CallId, active: bool, }, ResetDevice { reset_type: ResetType, }, SetMwi { line_instance: LineInstance, enabled: bool, }, SetForwardStatus { line_instance: LineInstance, forward_all: Option<String>, forward_busy: Option<String>, forward_no_answer: Option<String>, }, SetFeatureStatus { instance: LineInstance, enabled: bool, }, SetDoNotDisturbStatus { instance: LineInstance, mode: DoNotDisturbMode, button_mode: DoNotDisturbButtonMode, }, SetMobilityAppearance { mobility_instance: LineInstance, appearance: Option<LineAppearance>, }, SetBlfStatus { instance: LineInstance, state: BlfState, caller: Option<BlfCallerInfo>, }, ShowParkingMenu { instance: LineInstance, transaction_id: TransactionId, lot: String, calls: Vec<ParkingMenuEntry>, }, ShowConferenceList { call_id: CallId, conference_id: ConferenceId, participants: Vec<ConferenceListEntry>, }, ShowConferenceParticipantActions { call_id: CallId, conference_id: ConferenceId, participant: ConferenceListEntry, removable: bool, demotable: bool, }, ShowTextService { line_instance: LineInstance, call_reference: CallReference, transaction_id: TransactionId, priority: PhoneServicePriority, document: CiscoIpPhoneText, }, ShowInputService { line_instance: LineInstance, call_reference: CallReference, application_id: ApplicationId, transaction_id: TransactionId, priority: PhoneServicePriority, document: CiscoIpPhoneInput, }, ExecutePhoneActions { line_instance: LineInstance, call_reference: CallReference, application_id: ApplicationId, transaction_id: TransactionId, priority: PhoneServicePriority, document: CiscoIpPhoneExecute, }, ShowImageService { line_instance: LineInstance, call_reference: CallReference, application_id: ApplicationId, transaction_id: TransactionId, priority: PhoneServicePriority, document: PhoneImageDocument, }, ShowStatusService { line_instance: LineInstance, call_reference: CallReference, application_id: ApplicationId, transaction_id: TransactionId, priority: PhoneServicePriority, document: PhoneStatusDocument, }, SetBackgroundImage { transaction_id: TransactionId, document: CiscoIpPhoneSetBackground, }, PreviewBackgroundImage { transaction_id: TransactionId, document: CiscoIpPhoneSetBackgroundPreview, }, SetRingtone { transaction_id: TransactionId, document: CiscoIpPhoneSetRingTone, }, StartTone { call_id: CallId, tone: Tone, }, StartAnnouncement { conference_id: ConferenceId, announcements: Vec<AnnouncementEntry>, end_of_ack: bool, participant_ids: Vec<ParticipantId>, hearing_participant_mask: u32, play_mode: u32, }, StopAnnouncement { conference_id: ConferenceId, }, AnnouncementFinish { conference_id: ConferenceId, play_status: u32, }, StartRinging { call_id: CallId, }, StopRinging { call_id: CallId, }, OpenReceiveChannel { call_id: CallId, source: Option<MediaEndpoint>, codec: Codec, packet_ms: u32, max_frames_per_packet: u32, dtmf_mode: DtmfMode, audio_processing: AudioProcessingPolicy, }, OpenMultimediaReceiveChannel { call_id: CallId, descriptor: MultimediaReceiveDescriptor, }, CloseMultimediaReceiveChannel { call_id: CallId, }, StartMultimediaTransmission { call_id: CallId, descriptor: MultimediaTransmitDescriptor, }, StopMultimediaTransmission { call_id: CallId, }, SetMultimediaTransmitBitRate { call_id: CallId, passthrough_party_id: PassthroughPartyId, maximum_bit_rate: u32, }, NotifyMultimediaTransmitBitRate { call_id: CallId, passthrough_party_id: PassthroughPartyId, maximum_bit_rate: u32, }, ControlMultimediaTransmission { call_id: CallId, passthrough_party_id: PassthroughPartyId, control: MultimediaTransmitControl, }, OpenOutboundMedia { call_id: CallId, source: Option<MediaEndpoint>, endpoint: MediaEndpoint, codec: Codec, packet_ms: u32, max_frames_per_packet: u32, dtmf_mode: DtmfMode, audio_processing: AudioProcessingPolicy, traffic_class: MediaTrafficClass, }, CloseReceiveChannel { call_id: CallId, }, StartMedia { call_id: CallId, endpoint: MediaEndpoint, dtmf_mode: DtmfMode, audio_processing: AudioProcessingPolicy, traffic_class: MediaTrafficClass, }, StartMulticastReception { conference_id: ConferenceId, call_id: CallId, route: MulticastMediaRoute, echo_cancellation: EchoCancellation, g723_bitrate: G723BitRate, }, StopMulticastReception { conference_id: ConferenceId, call_id: CallId, }, StartMulticastTransmission { conference_id: ConferenceId, call_id: CallId, route: MulticastMediaRoute, precedence: u32, silence_suppression: SilenceSuppression, max_frames_per_packet: u32, g723_bitrate: G723BitRate, }, StopMulticastTransmission { conference_id: ConferenceId, call_id: CallId, }, StopMedia { call_id: CallId, }, CloseCall { call_id: CallId, }, DisconnectDevice {},
}
Expand description

Operation applied to the target station session in command-queue order.

Call-scoped actions resolve the server-owned CallId to the current wire reference inside the session. Actions for stale calls are ignored, except that Self::CloseCall also records an early cancellation so it can retire an incoming offer that has not reached the session yet.

Outbound presentation normally progresses from Self::BeginCall through proceeding or ringing to Self::CommitOutboundCall. Media actions allocate a fresh request identity for each generation; close and stop actions retire that identity so a late acknowledgement cannot settle replacement media.

Variants§

§

BeginCall

Create local station state and off-hook presentation for an outbound call whose adapter-side identity is already allocated.

Fields

§line_instance: LineInstance
§call_id: CallId
§codec: Codec
§

BeginTransfer

Put a held source call into transfer mode and create its consultation call as the active off-hook presentation.

Fields

§source_call_id: CallId
§consultation_line_instance: LineInstance
§consultation_call_id: CallId
§codec: Codec
§

SetCallInfo

Fields

§call_id: CallId
§

CommitOutboundCall

Fields

§call_id: CallId
§

PresentOutboundProceeding

Fields

§call_id: CallId
§

PresentOutboundRinging

Fields

§call_id: CallId
§

SetCallState

Fields

§call_id: CallId
§

SetCallSelected

Fields

§call_id: CallId
§selected: bool
§

DisplayPrompt

Fields

§call_id: CallId
§timeout_seconds: u32
§text: String
§

ClearPrompt

Fields

§call_id: CallId
§

SetStatusMessage

Fields

§beep: bool
§

SetMicrophoneMode

Fields

§enabled: bool
§

SetRecordingStatus

Fields

§call_id: CallId
§active: bool
§

ResetDevice

Fields

§reset_type: ResetType
§

SetMwi

Fields

§line_instance: LineInstance
§enabled: bool
§

SetForwardStatus

Replace all three forwarding destinations displayed for a line.

None clears that forwarding kind; the server retains the complete triple for subsequent station queries.

Fields

§line_instance: LineInstance
§forward_all: Option<String>
§forward_busy: Option<String>
§forward_no_answer: Option<String>
§

SetFeatureStatus

Fields

§instance: LineInstance
§enabled: bool
§

SetDoNotDisturbStatus

§

SetMobilityAppearance

Install or remove the temporary line appearance owned by a mobility button, rebuilding the station button template atomically.

Fields

§mobility_instance: LineInstance
§

SetBlfStatus

Fields

§instance: LineInstance
§state: BlfState
§

ShowParkingMenu

Fields

§instance: LineInstance
§transaction_id: TransactionId
§

ShowConferenceList

Fields

§call_id: CallId
§conference_id: ConferenceId
§participants: Vec<ConferenceListEntry>
§

ShowConferenceParticipantActions

Fields

§call_id: CallId
§conference_id: ConferenceId
§removable: bool
§demotable: bool
§

ShowTextService

Fields

§line_instance: LineInstance
§call_reference: CallReference
§transaction_id: TransactionId
§

ShowInputService

Send an input-service form whose response is emitted as DeviceEventKind::PhoneServiceResponse.

Fields

§line_instance: LineInstance
§call_reference: CallReference
§application_id: ApplicationId
§transaction_id: TransactionId
§

ExecutePhoneActions

Fields

§line_instance: LineInstance
§call_reference: CallReference
§application_id: ApplicationId
§transaction_id: TransactionId
§

ShowImageService

Fields

§line_instance: LineInstance
§call_reference: CallReference
§application_id: ApplicationId
§transaction_id: TransactionId
§

ShowStatusService

Fields

§line_instance: LineInstance
§call_reference: CallReference
§application_id: ApplicationId
§transaction_id: TransactionId
§

SetBackgroundImage

Fields

§transaction_id: TransactionId
§

PreviewBackgroundImage

§

SetRingtone

Fields

§transaction_id: TransactionId
§

StartTone

Fields

§call_id: CallId
§tone: Tone
§

StartAnnouncement

Start one or more conference announcements with an explicit participant hearing mask and playback mode.

Fields

§conference_id: ConferenceId
§announcements: Vec<AnnouncementEntry>
§end_of_ack: bool

Marks the final request in an acknowledgement-delimited sequence.

§participant_ids: Vec<ParticipantId>
§hearing_participant_mask: u32

Bit mask selecting which listed participants hear the announcement.

§play_mode: u32

Protocol playback-mode value retained for station interpretation.

§

StopAnnouncement

Fields

§conference_id: ConferenceId
§

AnnouncementFinish

Fields

§conference_id: ConferenceId
§play_status: u32
§

StartRinging

Fields

§call_id: CallId
§

StopRinging

Fields

§call_id: CallId
§

OpenReceiveChannel

Ask the station to allocate its receive channel and begin a correlated media transaction.

Fields

§call_id: CallId
§source: Option<MediaEndpoint>

Optional RTP source restriction. None accepts media from any source and is encoded as the SCCP wildcard endpoint 0.0.0.0:0.

§codec: Codec
§packet_ms: u32
§max_frames_per_packet: u32
§dtmf_mode: DtmfMode
§audio_processing: AudioProcessingPolicy
§

OpenMultimediaReceiveChannel

Requires a connected call and an exact advertised receive capability; replacing a live generation writes its close first.

Fields

§call_id: CallId
§

CloseMultimediaReceiveChannel

Fields

§call_id: CallId
§

StartMultimediaTransmission

Requires a connected call and an exact advertised transmit capability; replacing a live generation writes its stop first.

Fields

§call_id: CallId
§

StopMultimediaTransmission

Fields

§call_id: CallId
§

SetMultimediaTransmitBitRate

Limits the exact live station video encoder identified by its current passthrough token.

Fields

§call_id: CallId
§passthrough_party_id: PassthroughPartyId
§maximum_bit_rate: u32
§

NotifyMultimediaTransmitBitRate

Reports a bit-rate change for the exact live station video encoder.

Fields

§call_id: CallId
§passthrough_party_id: PassthroughPartyId
§maximum_bit_rate: u32
§

ControlMultimediaTransmission

Applies typed feedback to the exact live station video encoder.

Fields

§call_id: CallId
§passthrough_party_id: PassthroughPartyId
§

OpenOutboundMedia

Open both directions of an outbound media path in one session-writer transaction. The two SCCP frames are written ORC then SMT without a command-queue or acknowledgement boundary between them.

Fields

§call_id: CallId
§endpoint: MediaEndpoint
§codec: Codec
§packet_ms: u32
§max_frames_per_packet: u32
§dtmf_mode: DtmfMode
§audio_processing: AudioProcessingPolicy
§traffic_class: MediaTrafficClass
§

CloseReceiveChannel

Close the station receive leg and retire its pending acknowledgement.

Fields

§call_id: CallId
§

StartMedia

Fields

§call_id: CallId
§endpoint: MediaEndpoint
§dtmf_mode: DtmfMode
§audio_processing: AudioProcessingPolicy
§traffic_class: MediaTrafficClass
§

StartMulticastReception

Fields

§conference_id: ConferenceId
§call_id: CallId
§echo_cancellation: EchoCancellation
§g723_bitrate: G723BitRate
§

StopMulticastReception

Fields

§conference_id: ConferenceId
§call_id: CallId
§

StartMulticastTransmission

Fields

§conference_id: ConferenceId
§call_id: CallId
§precedence: u32
§silence_suppression: SilenceSuppression
§max_frames_per_packet: u32
§g723_bitrate: G723BitRate
§

StopMulticastTransmission

Fields

§conference_id: ConferenceId
§call_id: CallId
§

StopMedia

Stop the station transmit leg and retire its pending acknowledgement.

Fields

§call_id: CallId
§

CloseCall

Tear down station media and presentation, request final statistics when applicable, and retire the call identity.

Fields

§call_id: CallId
§

DisconnectDevice

Trait Implementations§

Source§

impl Clone for CommandAction

Source§

fn clone(&self) -> CommandAction

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CommandAction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more