> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# enable_sip_routing

> Enable SIP-based call routing for this agent.

[ref-agentbase]: /docs/server-sdks/reference/python/agents/agent-base

Enable SIP-based routing for this agent. When enabled, a routing callback endpoint
is registered at the specified path. Incoming SIP calls are matched against registered
usernames and directed to this agent.

When `auto_map` is `True`, common SIP usernames are automatically registered based
on the agent's name and route path.

## **Parameters**

Automatically register SIP usernames derived from the agent name and route.

URL path for the SIP routing endpoint.

## **Returns**

[`AgentBase`][ref-agentbase] -- Returns self for method chaining.

## **Example**

```python {5}
from signalwire import AgentBase

agent = AgentBase(name="support", route="/support")
agent.set_prompt_text("You are a helpful assistant.")
agent.enable_sip_routing()
agent.serve()
```