pub enum Routing {
}Expand description
A voip.ms routing target encoded on the wire as tag:payload.
Voip.ms uses this tag:payload scheme across all routing-like fields
(routing, failover_busy, routing_match, the fail_over_routing_*
family, …). Documented tags are mapped to named variants; anything else
is preserved verbatim in Routing::Unknown so that voip.ms adding a
new tag does not break deserialization or round-tripping.
none: (no routing) is represented by Routing::None.
§Wire format
account:100001_VoIP→Routing::Accountfwd:15555→Routing::Forwardvm:101→Routing::Voicemailsip:user@host→Routing::Sipsys:5→Routing::Systemgrp:42→Routing::Groupqueue:7→Routing::Queueivr:3→Routing::Ivrcb:2359→Routing::Callbacktc:11→Routing::TimeConditiondisa:1→Routing::Disadid:5551234567→Routing::Didphone:5551234567→Routing::Phonenone:→Routing::None
Variants§
None
No routing (wire: none:).
Account(String)
Sub-account by name (wire: account:NAME).
Forward(String)
Forwarding entry by id (wire: fwd:ID).
Voicemail(String)
Voicemail box (wire: vm:MAILBOX).
Sip(String)
External SIP URI (wire: sip:user@host).
System(String)
System recording / system action (wire: sys:ID).
Group(String)
Ring group by id (wire: grp:ID).
Queue(String)
Queue by id (wire: queue:ID).
Ivr(String)
IVR menu by id (wire: ivr:ID).
Callback(String)
Callback entry by id (wire: cb:ID).
TimeCondition(String)
Time condition by id (wire: tc:ID).
Disa(String)
DISA entry by id (wire: disa:ID).
Did(String)
DID number (wire: did:NUMBER).
Phone(String)
Outbound phone number (wire: phone:NUMBER).
Unknown
Any tag this crate doesn’t recognize. The original wire form is
preserved as tag:value so it round-trips unchanged.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Routing
impl<'de> Deserialize<'de> for Routing
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl FromStr for Routing
Parse a tag:value string into a Routing.
impl FromStr for Routing
Parse a tag:value string into a Routing.
An empty string is rejected; use Option::None in the surrounding
struct to represent an absent value.