> For the complete documentation index, see [llms.txt](https://prosbcdocs.telcobridges.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prosbcdocs.telcobridges.com/telecom-references/telecom-concepts/redirect.md).

# Redirect

Some signaling protocols support redirecting calls from one location to another. This is usually done by a redirect server which analyzes incoming call information and then terminates the call while specifying another destination.

Redirections are usually triggered by the following call termination reason codes:

* SIP
  * 300 Multiple Choices
  * 301 Moved Permanently
  * 302 Moved Temporarily
  * 305 Use Proxy
  * 380 Alternative Service
* SS7
  * Q.850 Ported Number (14)
  * Q.850 Number Changed (22)
  * Q.850 Redirection (23)

### TelcoBridges and redirections

[Tctrl 2.7](https://github.com/telcobridges-main/tmedia-wiki/tree/main/tmedia/configuration/tmedia-tsig-and-tdev-web-portal-2-7-tutorial-guide/README.md) and earlier provides basic support for SIP redirection on the NAP from where the outgoing call originated.

[Tctrl 2.8](https://github.com/telcobridges-main/tmedia-wiki/tree/main/tmedia/configuration/tmedia-tsig-and-tdev-web-portal-2-8-tutorial-guide/README.md) and later provides support for various redirection behaviors on signaling protocols that support it. These behaviors are:

* Redirection emission: [Tctrl](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/concepts/tctrl/README.md) can forge a redirection response instead of routing an incoming call using routing scripts.
* Redirection processing: [Tctrl](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/concepts/tctrl/README.md) can process redirection requests through its routing scripts using the specified called or routing numbers. This feature can be used for [LNP](https://telcobridges.com/learning/sip-trunking/number-porting-isps-carriers/) "dipping".
* Relay: The [Tmedia](https://telcobridges.com/media-gateways/products/tmedia-gateways/) or [Tdev](https://telcobridges.com/products/development-platforms-tdev/) unit can be configured automatically relay redirection requests from the outgoing call to the incoming call.
* Drop: The unit can also be configured to drop the request altogether.

### Configuration

* [Redirect configuration](https://github.com/telcobridges-main/tmedia-wiki/tree/main/tmedia/use-cases/use-cases-redirect-configuration/README.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://prosbcdocs.telcobridges.com/telecom-references/telecom-concepts/redirect.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
