> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeroruntime.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Secure SIP

> Learn how to secure SIP calls in Zero Runtime by encrypting signaling and media using TLS and SRTP.

Secure SIP ensures that the signaling and media exchange during your SIP calls are encrypted using TLS (Transport Layer Security) and SRTP (Secure Real-time Transport Protocol). This prevents eavesdropping and tampering, ensuring the confidentiality and integrity of your communication.

You can enable TLS for your SIP calls by configuring the `Media Encryption` setting in the Inbound or Outbound gateway configuration.

## Enabling TLS for SIP Calls

To enable TLS, you need to toggle the `Media Encryption` option available under the optional settings of your SIP Gateway configuration.

### Inbound Gateway Configuration

1. Log in to your Zero Runtime Dashboard.
2. Navigate to the **Inbound Gateways** section.
3. Click on **Add Inbound Gateway** or edit an existing one.
4. Fill in the required details.
5. Under the **Optional Settings** section, enable the `Media Encryption` toggle.

<Frame>
  <img src="https://cdn.videosdk.live/website-resources/docs-resources/secure-sip-inbound.png" alt="Inbound Gateway Configuration" />
</Frame>

### Outbound Gateway Configuration

1. Log in to your Zero Runtime Dashboard.
2. Navigate to the **Outbound Gateways** section.
3. Click on **Add Outbound Gateway** or edit an existing one.
4. Fill in the required details.
5. Under the **Optional Settings** section, enable the `Media Encryption` toggle.

<Frame>
  <img src="https://cdn.videosdk.live/website-resources/docs-resources/secure-sip-outbound.png" alt="Outbound Gateway Configuration" />
</Frame>

<Info>
  When `Media Encryption` is enabled, Zero Runtime will expect the SIP signaling to be over TLS and the media (audio) to be encrypted using SRTP. Ensure your SIP Trunk provider supports and is configured for TLS/SRTP.
</Info>
