# Configuring with Plivo

<figure><img src="https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-60c4c9526bec94c05fe7dd4b279e749cca4f6901%2Fplivo-banner.png?alt=media" alt=""><figcaption></figcaption></figure>

## Configure Your Plivo Number for Live Call Routing

During setting up your Live Call Routing in Spike, you’ll receive a unique **webhook URL**.

Setting up on Plivo is a multi-step process. On Plivo, you'll be needed to create an XML based application that forwaerds request to Spike and then connect it to your phone number.

Follow these steps:

{% stepper %}
{% step %}

#### Create an Application

In your Plivo Console, go to **Voice → XML under Applications → New Application**.

Give the application a name you can recognise later.

Under the **Voice** section, select POST request and paste Spike's webhook under

* Primary answer URL
* Fallback answer URL
* and Hangup answer URL *(optional)*

Scroll down and hit **Create Application**

<figure><img src="https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-8f383403790495df7694a69d41c23945b2ec9e94%2Fplivo-settings-1.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Configure Phone number

Visit **Phone Numbers → Active → Select a Number**.

In the Number configuration section on the same page,

* select **XML Application** under Application Type
* select your previously created application under **Plivo Application**

and hit Update!

<figure><img src="https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-dc5e957e18bd5cf6617b0f8e252ffcafe581708c%2Fplivo-settings-2.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### To access call recordings

When call recording is enabled, Spike retrieves the recordings directly from your Plivo account.

* In your Plivo Console, go to **Voice → Settings → Other Settings**.
* Under **HTTP Basic Authentication for media access**, select **Disable**.
  {% endstep %}
  {% endstepper %}

That’s it. Once saved, your Plivo number will forward all incoming calls to Spike.\
Spike will handle the routing, fallbacks, and call logging automatically.

***

*If you need help configuring Live Call Routing or integrating your Plivo account, reach out to* [*support@spike.sh*](mailto:support@spike.sh)*.*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.spike.sh/live-call-routing/lcr-with-plivo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
