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

# Simulate a Dograh agent

> Build the SIP URI for your Dograh agent and add it to Tuner.

<Info>
  Start at [**Simulation SIP setup**](/docs/simulation/inbound/setup).
</Info>

Tuner calls your Dograh agent through a SIP URI. You build it from two values on your Dograh telephony configuration page, then paste it into Tuner.

## Before you start

* Dograh **v1.46.0** or later. Earlier versions don't send Tuner the SIP call ID, so simulation calls land in Call Logs as production traffic instead of attaching to their scenarios.
* The Tuner node enabled on your Dograh workflow, and the workflow **published** (see [Connecting to Dograh](/docs/integrations/dograh)). Inbound calls run the published version, so a Tuner node that exists only in a draft sends nothing to Tuner.
* In Tuner, the agent's **Call Direction** set to **Inbound**.
* In Dograh, a phone number under **Telephony configurations** > **Dograh Cloudonix SIP** > **Phone numbers** with its **Inbound workflow** set to your agent. A short extension such as `101` works. It doesn't need to be a real number. See [Dograh's SIP guide](https://docs.dograh.com/integrations/telephony/dograh-sip) if you haven't set one up.

## Step 1: Build the SIP URI

```text theme={null}
sip:<address>@<hostname>
```

| Part | Where to find it in Dograh |
| - | - |
| Address | The **Address** of your phone number under **Phone numbers**, for example `101` |
| Hostname | **SIP connectivity** > **Inbound** > **Hostname** |

For example:

```text theme={null}
sip:101@a1b2c3d4-0000-0000-0000-9f8e7d6c5b4a.sip.cloudonix.net
```

<Note>
  If the **UDP/TCP** port under **SIP connectivity** isn't `5060`, add it to the end of the URI, for example `sip:101@<hostname>:9060`. Dograh's [SIP guide](https://docs.dograh.com/integrations/telephony/dograh-sip) explains regions and ports.
</Note>

## Step 2: Add it to Tuner

1. Open **Agent Settings** > **SIP Settings**.
2. Paste the URI into **SIP URI**.
3. Leave **Username** and **Password** empty. Dograh's inbound endpoint doesn't use SIP authentication.
4. Click **Verify & Save**. Tuner places a short test call to check the connection.

<img src="https://mintcdn.com/tuner/ymjXbsRhUG5GDj0_/images/simulation/sip-settings.png?fit=max&auto=format&n=ymjXbsRhUG5GDj0_&q=85&s=2a1b0de8f19925d16279808972da8c3a" alt="SIP configuration in Tuner" width="1024" height="303" data-path="images/simulation/sip-settings.png" />

<Note>
  **Known issue.** With both auth fields blank, verification can fail with "endpoint did not answer." Enter any placeholder values, for example `tuner` and `tuner`, to work around it. Dograh never checks them.
</Note>

## Troubleshooting

| Issue | What to check |
| - | - |
| "Endpoint did not answer" on Verify & Save | If the auth fields are blank, see the known issue above. Otherwise confirm the address matches a phone number in Dograh, that number has an inbound workflow, and the port is in the URI if it isn't 5060. |
| Agent answers but nothing reaches Tuner | Publish the workflow so the Tuner node is in the published version. |
| Calls land in Call Logs instead of Simulations | Confirm **Call Direction** is **Inbound** and Dograh is on **v1.46.0** or later. |
| `603 Declined` | On a self-hosted Dograh, confirm your backend is publicly reachable. |

***

<Card title="Run your first simulation" icon="flask" iconType="solid" href="/docs/simulation/overview#how-it-works">
  Configure your simulation mix and start a batch.
</Card>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.