***

title: enable_sip_routing
slug: /reference/python/agents/agent-base/enable-sip-routing
description: Enable SIP-based call routing for this agent.
max-toc-depth: 3
---------------------

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

[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**

<ParamField path="auto_map" type="bool" default="True" toc={true}>
  Automatically register SIP usernames derived from the agent name and route.
</ParamField>

<ParamField path="path" type="str" default="/sip" toc={true}>
  URL path for the SIP routing endpoint.
</ParamField>

## **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()
```