pub struct VapiPhoneNumber {Show 15 fields
pub fallback_destination: Option<Box<ImportTwilioPhoneNumberDtoFallbackDestination>>,
pub provider: Provider,
pub id: String,
pub org_id: String,
pub created_at: String,
pub updated_at: String,
pub status: Option<Status>,
pub number: Option<String>,
pub name: Option<String>,
pub assistant_id: Option<String>,
pub squad_id: Option<String>,
pub server: Option<Box<Server>>,
pub number_desired_area_code: Option<String>,
pub sip_uri: Option<String>,
pub authentication: Option<Box<SipAuthentication>>,
}Fields§
§fallback_destination: Option<Box<ImportTwilioPhoneNumberDtoFallbackDestination>>§provider: ProviderThis is to create free SIP phone numbers on Vapi.
id: StringThis is the unique identifier for the phone number.
org_id: StringThis is the unique identifier for the org that this phone number belongs to.
created_at: StringThis is the ISO 8601 date-time string of when the phone number was created.
updated_at: StringThis is the ISO 8601 date-time string of when the phone number was last updated.
status: Option<Status>This is the status of the phone number.
number: Option<String>These are the digits of the phone number you purchased from Vapi.
name: Option<String>This is the name of the phone number. This is just for your own reference.
assistant_id: Option<String>This is the assistant that will be used for incoming calls to this phone number. If neither assistantId nor squadId is set, assistant-request will be sent to your Server URL. Check ServerMessage and ServerMessageResponse for the shape of the message and response that is expected.
squad_id: Option<String>This is the squad that will be used for incoming calls to this phone number. If neither assistantId nor squadId is set, assistant-request will be sent to your Server URL. Check ServerMessage and ServerMessageResponse for the shape of the message and response that is expected.
server: Option<Box<Server>>This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. The order of precedence is: 1. assistant.server 2. phoneNumber.server 3. org.server
number_desired_area_code: Option<String>This is the area code of the phone number to purchase.
sip_uri: Option<String>This is the SIP URI of the phone number. You can SIP INVITE this. The assistant attached to this number will answer. This is case-insensitive.
authentication: Option<Box<SipAuthentication>>This enables authentication for incoming SIP INVITE requests to the sipUri. If not set, any username/password to the 401 challenge of the SIP INVITE will be accepted.
Implementations§
Trait Implementations§
Source§impl Clone for VapiPhoneNumber
impl Clone for VapiPhoneNumber
Source§fn clone(&self) -> VapiPhoneNumber
fn clone(&self) -> VapiPhoneNumber
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more