Skip to main content

Module commands

Module commands 

Source
Expand description

Command string builders for api() and bgapi().

Each builder implements Display, producing the argument string for the corresponding FreeSWITCH API command. The builders perform escaping and validation so callers don’t need to worry about wire-format details.

Re-exports§

pub use bridge::BridgeDialString;
pub use channel::UuidAnswer;
pub use channel::UuidBridge;
pub use channel::UuidDeflect;
pub use channel::UuidGetVar;
pub use channel::UuidHold;
pub use channel::UuidKill;
pub use channel::UuidSendDtmf;
pub use channel::UuidSetVar;
pub use channel::UuidTransfer;
pub use conference::ConferenceDtmf;
pub use conference::ConferenceHold;
pub use conference::ConferenceMute;
pub use conference::HoldAction;
pub use conference::MuteAction;
pub use endpoint::AudioEndpoint;
pub use endpoint::DialString;
pub use endpoint::ErrorEndpoint;
pub use endpoint::GroupCall;
pub use endpoint::GroupCallOrder;
pub use endpoint::LoopbackEndpoint;
pub use endpoint::ParseGroupCallOrderError;
pub use endpoint::SofiaContact;
pub use endpoint::SofiaEndpoint;
pub use endpoint::SofiaGateway;
pub use endpoint::UserEndpoint;
pub use originate::Application;
pub use originate::DialplanType;
pub use originate::Endpoint;
pub use originate::Originate;
pub use originate::OriginateError;
pub use originate::OriginateTarget;
pub use originate::ParseDialplanTypeError;
pub use originate::Variables;
pub use originate::VariablesType;

Modules§

bridge
Bridge dial string builder for multi-endpoint bridge commands.
channel
Builders for uuid_* API commands that target a specific channel by UUID.
conference
Builders for conference API sub-commands (mute, hold, DTMF).
endpoint
FreeSWITCH endpoint types for originate and bridge dial strings.
originate
Originate command builder with endpoint configuration, variable scoping, and automatic quoting for socket application arguments.

Functions§

originate_quote
Wrap a token in single quotes for originate command strings.
originate_split
Quote-aware tokenizer for originate command strings.
originate_unquote
Strip single-quote wrapping added by originate_quote.
parse_originate_target
Parse the target argument of an originate command.