# One-way Audio with SIP Client Testing

If you are experiencing **one-way audio** when connecting your SIP client to a Class 4 switch, the issue is likely caused by **NAT (Network Address Translation)**. This occurs because the media traffic is being sent to a private IP address, which is not accessible from the public internet. Here’s how to address this issue:

#### Steps to Resolve NAT Issues:

1. **Enable STUN (Session Traversal Utilities for NAT)**
   * If your SIP client is behind a router or firewall, enabling STUN will help it discover its public IP address and ensure media traffic is routed correctly. &#x20;
   * Without STUN, media traffic might be directed to a private IP, causing audio issues.
2. **Check Your Network Setup**
   * If you are connected directly to the public internet (no NAT), you should not encounter this problem. Ensure your network configuration supports direct communication with the Class 4 switch.
3. **Consider Using a PBX as a Proxy**
   * If enabling STUN doesn't resolve the issue or your setup is complex, deploying a PBX (such as Asterisk or FreePBX) as an intermediary can help. The PBX will handle NAT traversal and proxy the calls, ensuring seamless communication between your SIP client and the Class 4 switch.

#### Additional Tips:

* Ensure the correct SIP and RTP ports are open on your firewall/router.
* Verify that the SIP client is properly configured with your provider's settings.

By following these steps, you should be able to resolve one-way audio issues and ensure smooth communication with your Class 4 switch.


---

# 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://cookbook.denovolab.com/troubleshooting/one-way-audio-with-sip-client-testing.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.
