> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeroruntime.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Vonage SIP Integration Guide

> Step-by-step guide to integrating Vonage as a SIP provider with Zero Runtime, including SIP trunk setup, domain and authentication configuration, gateway setup, and routing rules.

This guide walks you through connecting Vonage as your SIP provider to Zero Runtime for both inbound and outbound calling.

## Configuring Inbound Calling

### 1. Purchase a Number and Create a SIP Trunk in Vonage

* Log in to your Vonage Console.
* Purchase a phone number if you don't already have one.
* Create a new SIP trunk.

### 2. Configure SIP Trunk for Inbound

* In the SIP trunk settings:
  * Under **Inbound Calls**, select the Vonage region you want to use and save your settings.
  * Under the **URI** section, add the Inbound Gateway URL from the Zero Runtime dashboard (found under Inbound Gateways).
  * Link the phone number you purchased to this trunk.

### 3. Configure Inbound Gateway in Zero Runtime

* In the Zero Runtime Dashboard, go to **Telephony > Inbound Gateway**.
* Create a new inbound gateway using the number you purchased from Vonage.

### 4. Set Up Inbound Routing Rules

* In the Zero Runtime Dashboard, go to **Telephony > Routing Rules**.
* Create routing rules for inbound calls, selecting the appropriate gateways and numbers.

### Video Demonstration: Inbound Configuration

<Frame>
  <video autoPlay muted loop controls className="w-full aspect-video rounded-xl" src="https://cdn.zeroruntime.ai/zrt/website-content/telephony/integration-vonage-inbound.mp4" />
</Frame>

## Configuring Outbound Calling

### 1. Configure SIP Trunk for Outbound

* In the SIP trunk settings:
  * Set up the domain (this will be used for outbound gateway configuration in Zero Runtime).
  * Under **Outbound Calls**, set up the authentication credentials (username and password).

### 2. Configure Outbound Gateway in Zero Runtime

* In the Zero Runtime Dashboard, go to **Telephony > Outbound Gateway**.
* Create a new outbound gateway using the domain you set up in Vonage and the authentication credentials you configured. **For outbound gateway numbers, do not use the `+` sign, just use the country code and number.**

### 3. Set Up Outbound Routing Rules

* In the Zero Runtime Dashboard, go to **Telephony > Routing Rules**.
* Create routing rules for outbound calls, selecting the appropriate gateways and numbers.

### Video Demonstration: Outbound Configuration

<Frame>
  <video autoPlay muted loop controls className="w-full aspect-video rounded-xl" src="https://cdn.zeroruntime.ai/zrt/website-content/telephony/integration-vonage-outbound.mp4" />
</Frame>

With these steps, your SIP trunk between Vonage and Zero Runtime is fully configured for both inbound and outbound calls. You are now ready to test your calls.
