> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # enableSipRouting > Enable SIP-based call routing for this agent. [ref-agentbase]: /docs/server-sdks/reference/typescript/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 `autoMap` is `true`, SIP usernames are automatically mapped to the agent route. ## **Parameters** **`autoMap`** `boolean` — default: true When `true`, automatically map SIP usernames to the agent route. --- **`path`** `string` — default: /sip URL path for the SIP routing endpoint. --- ## **Returns** [`AgentBase`][ref-agentbase] -- Returns `this` for method chaining. ## **Example** ```typescript {5} import { AgentBase } from '@signalwire/sdk'; const agent = new AgentBase({ name: 'support', route: '/support' }); agent.setPromptText('You are a helpful assistant.'); agent.enableSipRouting(); await agent.serve(); ``` > Enable SIP-based call routing for this agent.