pub struct OrderVanityParams {Show 17 fields
pub did: Option<String>,
pub routing: Option<Routing>,
pub failover_busy: Option<Routing>,
pub failover_unreachable: Option<Routing>,
pub failover_noanswer: Option<Routing>,
pub voicemail: Option<String>,
pub pop: Option<i64>,
pub dialtime: Option<i64>,
pub cnam: Option<i64>,
pub callerid_prefix: Option<String>,
pub note: Option<String>,
pub carrier: Option<i64>,
pub account: Option<String>,
pub monthly: Option<String>,
pub setup: Option<String>,
pub minute: Option<String>,
pub test: bool,
}Expand description
- Orders and Adds a new Vanity Toll Free Number to the Account.
Parameters for Client::order_vanity (wire method orderVanity).
Fields§
§did: Option<String>DID to be Ordered (Example: 8772223333) (required)
routing: Option<Routing>Main Routing for the DID (required)
failover_busy: Option<Routing>Busy Routing for the DID
failover_unreachable: Option<Routing>Unreachable Routing for the DID
failover_noanswer: Option<Routing>NoAnswer Routing for the DID
voicemail: Option<String>Voicemail for the DID (Example: 101)
pop: Option<i64>Point of Presence for the DID (Example: 5) (required)
dialtime: Option<i64>Dial Time Out for the DID (Example: 60 -> in seconds) (required)
cnam: Option<i64>CNAM for the DID (Boolean: 1/0) (required)
callerid_prefix: Option<String>Caller ID Prefix for the DID
note: Option<String>Note for the DID
carrier: Option<i64>Carrier for the DID (Values from getCarriers) (required)
account: Option<String>Reseller Sub Account (Example: ‘100001_VoIP’)
monthly: Option<String>Montly Fee for Reseller Client (Example: 3.50)
setup: Option<String>Setup Fee for Reseller Client (Example: 1.99)
minute: Option<String>Minute Rate for Reseller Client (Example: 0.03)
test: boolSet to true if testing how Orders work - Orders can not be undone - When testing, no Orders are made routing, failover_busy, failover_unreachable and failover_noanswer can receive values in the following format => header:record_id Where header could be: account, fwd, vm, sip, grp, ivr, sys, recording, queue, cb, tc, disa, none. Examples: account Used for routing calls to Sub Accounts You can get all sub accounts using the getSubAccounts function fwd Used for routing calls to Forwarding entries. You can get the ID right after creating a Forwarding with setForwarding or by requesting all forwardings entries with getForwardings. vm Used for routing calls to a Voicemail. You can get all voicemails and their IDs using the getVoicemails function sys System Options: hangup = Hangup the Call busy = Busy tone noservice = System Recording: Number not in service disconnected = System Recording: Number has been disconnected dtmf = DTMF Test echo = Sound Quality Test none Used to route calls to no action Examples: ‘account:100001_VoIP’ ‘fwd:1026’ ‘vm:101’ ‘none:’ ‘sys:echo’
Trait Implementations§
Source§impl Clone for OrderVanityParams
impl Clone for OrderVanityParams
Source§fn clone(&self) -> OrderVanityParams
fn clone(&self) -> OrderVanityParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more