# SIP Trunking

Opentact extends robust support for both Inbound SIP Trunking and Outbound SIP Trunking, offering you unparalleled control over the flow of calls to and from your preferred SIP destinations.

#### Inbound SIP Trunk

To seamlessly receive inbound calls from your designated source, follow these steps:

1. **Create a SIP Domain:** Set up a SIP Domain to establish your unique SIP URI, such as yourcomp.sip.opentact.org. Here, you can meticulously define the IPs or hostnames to be whitelisted for sending traffic to this SIP Domain.
2. **SIP Users within SIP Domain:** Alternatively, within each SIP Domain, create as many SIP users as needed. These users can initiate traffic directed to the SIP Domain, providing an additional method for generating inbound calls.

#### Outbound SIP Trunk

When handling inbound calls hitting your SIP Domain, customize the forwarding process by connecting the SIP Domain to a SIP Connection. Here's how:

1. **Specify Forwarding Destination:** Within the SIP Connection settings, precisely specify the SIP destination IP or SIP destination hostname to which inbound calls should be forwarded.

Opentact's SIP Trunking functionality ensures a seamless and flexible approach to handling inbound and outbound calls, allowing you to tailor communication flows to your unique preferences. Explore the versatility of SIP Domains, SIP Users, and SIP Connections to optimize your communication strategy with Opentact.


---

# Agent Instructions: 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:

```
GET https://doc.opentact.org/opentact-user-documentation/calling.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
