SipConnectedAudio

Struct SipConnectedAudio 

Source
pub struct SipConnectedAudio {
    pub client: Client,
}

Fields§

§client: Client

Implementations§

Source§

impl SipConnectedAudio

Source

pub async fn list_sip_trunk_numbers( &self, ) -> Result<Response<ListSipTrunkNumbersResponse>, ClientError>

List SIP trunk numbers.

This function performs a GET to the /sip_trunk/numbers endpoint.

With SIP-connected audio, Zoom establishes a SIP trunk (a network connection specifically designed to make and deliver phone calls) over a direct and private connection between the customer’s network and the Zoom cloud. Meeting participants that dial into a meeting or have the meeting call them, and are On-Net from the perspective of the customers’ IP telephony network, will be connected over this trunk rather than over the PSTN.

Use this API to list all the numbers that are configured for SIP Connected Audio in a Zoom Account.

Prerequisites:

  • Pro or a higher account with SIP Connected Audio plan enabled.
  • The account must be a master account
    Scopes: sip_trunk:master

Rate Limit Label: Light

Source

pub async fn assign_sip_config( &self, account_id: &str, body: &AssignSipConfigRequest, ) -> Result<Response<()>, ClientError>

Assign SIP trunk configuration.

This function performs a PATCH to the /accounts/{accountId}/sip_trunk/settings endpoint.

Use this API to copy the Session Initiation Protocol (SIP) Connected Audio configurations applied on the Master account and enable or disable those configurations on a subaccount.

With SIP-connected audio, Zoom establishes a SIP trunk (a network connection specifically designed to make and deliver phone calls) over a direct and private connection between the customer’s network and the Zoom cloud. Meeting participants that dial into a meeting or have the meeting call them, and are On-Net from the perspective of the customers’ IP telephony network, will be connected over this trunk rather than over the PSTN.

Scopes: sip_trunk:master
Rate Limit Label: Light

Prerequisites:

  • Pro or a higher account with SIP Connected Audio plan enabled.
  • A Master account owner
Source

pub async fn assign_sip_trunk_numbers( &self, account_id: &str, body: &AssignSipTrunkNumbersRequest, ) -> Result<Response<()>, ClientError>

Assign numbers.

This function performs a POST to the /accounts/{accountId}/sip_trunk/numbers endpoint.

With SIP-connected audio, Zoom establishes a SIP trunk (a network connection specifically designed to make and deliver phone calls) over a direct and private connection between the customer’s network and the Zoom cloud. Meeting participants that dial into a meeting or have the meeting call them, and are On-Net from the perspective of the customers’ IP telephony network, will be connected over this trunk rather than over the PSTN.

Use this API to assign internal numbers to a sub account.

Prerequisites:

  • Pro or a higher account with SIP Connected Audio plan enabled.
  • The account must be a master account
    Scopes: sip_trunk:master
    Rate Limit Label: Light

Parameters:

  • account_id: &str – Unique Identifier of the sub account.
Source

pub async fn delete_all_sip_numbers( &self, account_id: &str, ) -> Result<Response<()>, ClientError>

Delete all numbers.

This function performs a DELETE to the /accounts/{accountId}/sip_trunk/numbers endpoint.

With SIP-connected audio, Zoom establishes a SIP trunk (a network connection specifically designed to make and deliver phone calls) over a direct and private connection between the customer’s network and the Zoom cloud. Meeting participants that dial into a meeting or have the meeting call them, and are On-Net from the perspective of the customers’ IP telephony network, will be connected over this trunk rather than over the PSTN.

Use this API to delete all internal numbers assigned to a sub account. Prerequisites:

  • Pro or a higher account with SIP Connected Audio plan enabled.
  • The account must be a master account
    Scopes: sip_trunk:master
    Rate Limit Label: Light

Parameters:

  • account_id: &str – Account ID of the sub account from which the numbers are to be deleted. This can be retrieved from List sub accounts API.
Source

pub async fn list_sip_trunk( &self, account_id: &str, ) -> Result<Response<ListSipTrunksResponseData>, ClientError>

List SIP trunks.

This function performs a GET to the /accounts/{accountId}/sip_trunk/trunks endpoint.

With SIP-connected audio, Zoom establishes a SIP trunk (a network connection specifically designed to make and deliver phone calls) over a direct and private connection between the customer’s network and the Zoom cloud. Meeting participants that dial into a meeting or have the meeting call them, and are On-Net from the perspective of the customers’ IP telephony network, will be connected over this trunk rather than over the PSTN.

Use this API to list all the SIP trunks assigned to a master account or a sub account of the master account. To retrieve SIP trunks assigned to a sub account, provide the account ID of the sub account in the accountId path parameter. To retrieve SIP trunks of a master account, provide me as the value of the accountId path parameter.

Scope: sip_trunk:read:admin
Prerequisites:

  • The account must either be a master account or a sub account with API Partner Plan and SIP Connected Audio Plan.

Parameters:

  • account_id: &str – Unique Identifier of the Account. To retrieve SIP trunks assigned to a sub account, provide the account ID of the sub account in the as the value of this field. To retrieve SIP trunks of a master account, provide me as the value of this field.
Source

pub async fn assign_sip_trunks( &self, account_id: &str, body: &AssignSipTrunksRequestData, ) -> Result<Response<AssignSipTrunksResponseData>, ClientError>

Assign SIP trunks.

This function performs a POST to the /accounts/{accountId}/sip_trunk/trunks endpoint.

With SIP-connected audio, Zoom establishes a SIP trunk (a network connection specifically designed to make and deliver phone calls) over a direct and private connection between the customer’s network and the Zoom cloud. Meeting participants that dial into a meeting or have the meeting call them, and are On-Net from the perspective of the customers’ IP telephony network, will be connected over this trunk rather than over the PSTN.

Use this API to assign SIP trunk(s) that are available on a master account to a sub account.
Prerequisites:

  • The account making this API request must be a master account with API Partner Plan and SIP Connected Audio Plan.

    Scope: sip_trunk:master

Parameters:

  • account_id: &str – Unique Identifier of the sub account.
Source

pub async fn delete_sip_trunk( &self, account_id: &str, trunk_id: &str, ) -> Result<Response<Domains>, ClientError>

Delete a SIP trunk.

This function performs a DELETE to the /accounts/{accountId}/sip_trunk/trunks/{trunkId} endpoint.

Use this API to remove existing SIP trunk of a sub account.

Prerequisites:

  • The account making this API request must be a master account with API Partner Plan and SIP Connected Audio Plan.

    Scope: sip_trunk:master

Parameters:

  • account_id: &str – Unique identifier of the sub account.
  • trunk_id: &str – Unique identifier of the SIP Trunk that was previously assigned to a sub account. To retrieve the value of this field, use the List SIP Trunks API.
Source

pub async fn list_internal_callout_countries( &self, account_id: &str, ) -> Result<Response<ListInternalCalloutCountriesResponse>, ClientError>

List internal call-out countries.

This function performs a GET to the /accounts/{accountId}/sip_trunk/callout_countries endpoint.

Retrieve the list of internal call-out countries of a master account or a sub account. To list call-out enabled countries of a sub account, provide the account ID of the sub account in the accountId path parameter. To list call-out enabled countries of a master account, provide me as the value of the accountId path parameter.
Prerequisites:

  • The account making this API request must be a master account with SIP Connected Audio Plan.

    Scope: sip_trunk:master

Parameters:

  • account_id: &str – Unique identifier of the account. To list Call-out enabled countries to a sub account, provide the account ID of the sub account in the accountId path parameter. To list Call-out enabled countries of a sub account, provide the account ID of the sub account in the accountId path parameter. To list Call-out enabled countries of a master account, provide me as the value of the accountId path parameter.
Source

pub async fn add_callout_countries( &self, account_id: &str, body: &AddCalloutCountriesRequestData, ) -> Result<Response<AddCalloutCountriesResponse>, ClientError>

Add internal call-out countries.

This function performs a POST to the /accounts/{accountId}/sip_trunk/callout_countries endpoint.

Specify the list of call-out countries for a master account or a sub account. To add call-out enabled countries to a sub account, provide the account ID of the sub account in the accountId path parameter. To add call-out enabled countries to a master account, provide me as the value of the accountId path parameter.
Prerequisites:

  • The account making this API request must be a master account with SIP Connected Audio Plan.

    Scope: sip_trunk:master

Parameters:

  • account_id: &str – Unique identifier of the account. To add Call-out enabled countries to a sub account, provide the account ID of the sub account in the accountId path parameter. To add Call-out enabled countries to a master account, provide me as the value of the accountId path parameter.
Source

pub async fn delete_internal_call_out_country( &self, account_id: &str, country_id: &str, ) -> Result<Response<()>, ClientError>

Delete internal call-out country.

This function performs a DELETE to the /accounts/{accountId}/sip_trunk/callout_countries/{countryId} endpoint.

Delete a previously assigned call-out country from a master account or a sub account. To remove call-out country from a sub account, provide the account ID of the sub account in the accountId path parameter. To remove call-out country from a master account, provide me as the value of the accountId path parameter.
Prerequisites:

  • The account making this API request must be a master account with SIP Connected Audio Plan.

    Scope: sip_trunk:master

Parameters:

  • account_id: &str – Unique Identifier of the Account.
    To remove Call-out country from a sub account, provide the account ID of the sub account in the accountId path parameter. To remove Call-out country from a master account, provide me as the value of the accountId path parameter.
  • country_id: &str – Two lettered Id of the country.
Source

pub async fn list_internal_numbers( &self, account_id: &str, page_size: i64, next_page_token: &str, ) -> Result<Response<Vec<InternalNumbers>>, ClientError>

List internal numbers.

This function performs a GET to the /accounts/{accountId}/sip_trunk/internal_numbers endpoint.

This API allows a master account with SIP Connected Audio plan to list internal phone numbers (i.e., numbers that are not provided by Zoom but are owned by the organization consuming the API) assigned to a master account or a sub account.

To list internal numbers of a sub account, provide the account ID of the sub account in the accountId path parameter. To list internal numbers of a master account, provide me as the value of the accountId path parameter.
Prerequisites:

  • The account making this API request must be a master account with SIP Connected Audio Plan.

    Scope: sip_trunk:master

Parameters:

  • account_id: &str – Unique identifier of the account. To list internal numbers of a sub account, provide the account ID of the sub account in the accountId path parameter. To list internal numbers of a master account, provide me as the value of the accountId path parameter.
  • page_size: i64 – The number of records returned within a single API call.
  • next_page_token: &str – The next page token is used to paginate through large result sets. A next page token will be returned whenever the set of available results exceeds the current page size. The expiration period for this token is 15 minutes.
Source

pub async fn list_all_internal_numbers( &self, account_id: &str, ) -> Result<Response<Vec<InternalNumbers>>, ClientError>

List internal numbers.

This function performs a GET to the /accounts/{accountId}/sip_trunk/internal_numbers endpoint.

As opposed to list_internal_numbers, this function returns all the pages of the request at once.

This API allows a master account with SIP Connected Audio plan to list internal phone numbers (i.e., numbers that are not provided by Zoom but are owned by the organization consuming the API) assigned to a master account or a sub account.

To list internal numbers of a sub account, provide the account ID of the sub account in the accountId path parameter. To list internal numbers of a master account, provide me as the value of the accountId path parameter.
Prerequisites:

  • The account making this API request must be a master account with SIP Connected Audio Plan.

    Scope: sip_trunk:master
Source

pub async fn add_internal_numbers( &self, account_id: &str, body: &AddInternalNumbersRequest, ) -> Result<Response<AddInternalNumbersResponseData>, ClientError>

Add internal numbers.

This function performs a POST to the /accounts/{accountId}/sip_trunk/internal_numbers endpoint.

This API allows a master account with SIP Connected Audio plan to assign internal phone numbers (i.e., numbers that are not provided by Zoom but are owned by the organization consuming the API) to a master account or a sub account.

To add internal numbers to a sub account, provide the account ID of the sub account in the accountId path parameter. To add internal numbers to a master account, provide me as the value of the accountId path parameter.
Prerequisites:

  • The account making this API request must be a master account with SIP Connected Audio Plan.

    Scope: sip_trunk:master

Parameters:

  • account_id: &str – Unique identifier of the account.
    To add internal numbers to a sub account, provide the account ID of the sub account in the accountId path parameter. To add internal numbers to a master account, provide me as the value of the accountId path parameter.
Source

pub async fn delete_internal_number( &self, account_id: &str, number_id: &str, ) -> Result<Response<()>, ClientError>

Delete an internal number.

This function performs a DELETE to the /accounts/{accountId}/sip_trunk/internal_numbers/{numberId} endpoint.

This API allows a master account with SIP Connected Audio plan to delete a previously assigned internal phone number from a master account or a sub account.

To delete an internal number from a sub account, provide the account ID of the sub account in the accountId path parameter. To delete an internal number from a master account, provide me as the value of the accountId path parameter.
Prerequisites:

  • The account making this API request must be a master account with SIP Connected Audio Plan.

    Scope: sip_trunk:master

Parameters:

  • account_id: &str – Unique Identifier of the account. To delete an internal number from a sub account, provide the account ID of the sub account in the accountId path parameter. To delete an internal number from a master account, provide me as the value of the accountId path parameter.
  • number_id: &str – Unique identifier of the phone number. This value can be retrieved by calling the List Internal Numbers API.

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> 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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

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

Source§

type Error = Infallible

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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
Source§

impl<T> ErasedDestructor for T
where T: 'static,