Skip to main content

Set Final Destination URI

In this guide, we will show you how to set Final Destination URI on your locations or telephone numbers.

Please Note that the Failover URI functionality is only available for SIP Voice users at this time.

Setting a failover URI (Final Destination URI) allows Bandwidth to forward voice traffic to an alternate number in the event of a delivery failure to your original call route.

More detailed information on setting a Final Destination URI can be found here.

Set a Failover URI

To setup a failover for a location (sip-peer), make a PUT request to our Update SipPeer API endpoint. This can be done through tools like Postman or cURL.

danger

This PUT request is idempotent - it will overwrite the existing location (sip-peer) settings when made so be sure to include any previous settings that must persist on the location or you risk replacing them with their default null values

  • Sip URI Format: sip:{address}@{host}
  • PSTN Format: +13332221111@PSTN

Examples:

Request URL:

PUT

https://dashboard.bandwidth.com/api/accounts/{accountId}/sites/{siteId} /sippeers/{sippeerId}

<SipPeer>
<PeerName>location_name</PeerName>
<FinalDestinationUri>sip:+12345678901@1.2.3.4:5060</FinalDestinationUri>
<IsDefaultPeer>true</IsDefaultPeer>
</SipPeer>

Response

HTTP 200 OK

Where to next?

Now that you have learned how to manage number inventory in your Bandwidth accounts, check out some of the other available actions in our guides: