> For the complete documentation index, see [llms.txt](https://docs.spike.sh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.spike.sh/live-call-routing/lcr-with-plivo.md).

# Configuring with Plivo

Connect your Plivo phone number to Spike to enable Live Call Routing for incoming, human-reported incident calls.

<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="Configure Plivo for Live Call Routing on Spike"><figcaption></figcaption></figure>

## Configure your Plivo number for Live Call Routing

Spike provides a webhook URL during Live Call Routing setup. Plivo requires you to create an XML application first, then connect it to your phone number.

{% 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 URL under:

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

Click **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="Plivo XML application settings for Live Call Routing"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Configure your phone number

Visit **Phone Numbers → Active** and select your number.

In the Number configuration section:

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

Click **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="Plivo phone number configuration for Live Call Routing"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Access call recordings

When call recording is enabled, Spike retrieves 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 %}

Once saved, your Plivo number will forward all incoming calls to Spike. Spike handles routing, fallbacks, and call logging automatically.

{% hint style="info" %}
Need help connecting your Plivo account? Reach out to <support@spike.sh>.
{% endhint %}
