I have a local network with grandstream pbx and li...
# ask-ai
a
I have a local network with grandstream pbx and livekit sip for telephony, I'm able to creat the necessary trunk configs in both sides, when I call my PTSN number it's the ai agent picking up I hear it but it cannot hear what I'm saying ... I have a local server, router and a switch and grandstream UCM PBX
t
Thanks for reaching out, Basil. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'd love to help you get to the bottom of the one-way audio issue you're experiencing. To do that, could you please share a bit more about your setup? Specifically: • Are there any firewalls or NAT devices between the LiveKit server and the Grandstream PBX? • Have you set up the necessary ports for SIP and RTP traffic on your router or firewall? • Are you using any particular codecs, and do both ends support them? • Have you had a chance to check the SDP negotiation to make sure both sides agree on the media path? Once I have these details, I’ll be in a much better position to help pinpoint the root cause and guide you toward a solution. Sources: SIP troubleshooting guide | LiveKit Docs | test/client/README.md
a
Yes I have mikrotik router I enabled the following in the firewall 10.1.1.16 is my pbx 10.1.1.253 is my machine where livekit runs
t
Let's work together to resolve the one-way audio issue you're experiencing with your MikroTik router. Here are some important configurations to check: • Make sure SIP signaling traffic is allowed on UDP port 5060 and TCP ports 5060-5061. • Ensure RTP media traffic can flow both ways on UDP ports 10000-20000. • Allow LiveKit ICE traffic on UDP ports 50000-60000 and TCP port 7881. • Enable TURN traffic on TCP port 443 and UDP port 3478 to help with firewall traversal. • Double-check your NAT rules to forward these ports to your LiveKit server at 10.1.1.253. It’s also a good idea to review the SDP negotiation to confirm the media path is set up correctly. You can use MikroTik’s packet sniffer tool to see if there’s bidirectional UDP connectivity on the media ports. If things still aren’t working as expected, please verify that your LiveKit server is configured with the right public MediaIP to ensure proper RTP negotiation. I'm here to help if you need any further guidance—just let me know! Sources: Firewall Tips | Ports and firewall | LiveKit Docs | pkg/sip/media_port.go | SIP troubleshooting guide | LiveKit Docs
a
pc ERROR: 2025/10/31 170235 dropping candidate with ufrag JLsjDGChmcIidEST because it doesn't match the current ufrags pc ERROR: 2025/10/31 170235 dropping candidate with ufrag JLsjDGChmcIidEST because it doesn't match the current ufrags
t
It looks like the error message is pointing to an ICE negotiation issue where the
ufrag
(username fragment) in the candidate doesn’t quite match the expected value. This can happen for a few reasons: • There might be inconsistent
ice-ufrag
values in the SDP offer/answer. • Sometimes intermediaries like SIP gateways or proxies can modify the SDP. • Or trickle-ICE candidates could be sent with mismatched
ufrag
values. Here are some steps you can try to resolve this: 1. Double-check that all
ice-ufrag
values in the SDP are consistent across both the session and media sections. 2. Make sure your SIP gateway isn’t changing the
ice-ufrag
values when processing the SDP. 3. Take a look at the LiveKit logs for any "ice ufrag mismatch" errors to help pinpoint the problem. 4. Try testing with a simplified SDP that has just one media section to see if that clears up any conflicts. If you’re still running into trouble after these steps, please don’t hesitate to reach out. I’m here to help and we can dig into some further diagnostics together. Sources: sdp/sdp.go | pkg/whip/utils.go | release/esbuild.js | pkg/rtc/transport.go
a
what's this error 2025-10-31T165233.828+0300 WARN sip medialogutils/override.go:35 could not send ICE candidate {"nodeID": "NE_wDinvXQye2Sf", "callID": "SCL_bm7LXAMwpp9D", "fromIP": "10.1.1.16", "toIP": "10.1.1.253:5060", "transport": "udp", "fromHost": "10.1.1.16", "fromUser": "0560754859", "toHost": "10.1.1.253", "toUser": "0126624548", "sipTag": "d87f1102-3491-419c-a3b4-9c9f7362635f", "sipCallID": "3b4dc6a6-3c0e-461a-9325-e97fd7485f78", "sipTrunk": "ST_sLEu8ozifn4p", "transport": "SUBSCRIBER", "error": "signal transport is not connected"}
t
I'm sorry you're encountering the error "could not send ICE candidate signal transport is not connected." This usually means the signaling transport layer, which helps exchange ICE candidates, isn’t properly set up or has been interrupted. This can happen because of a few reasons: • Network connectivity hiccups, like firewalls blocking UDP traffic or interfering with the DTLS handshake needed for secure media transmission. • Incorrect SIP trunk credentials or signaling settings. • A dropped connection between the signaling server and your client. Here are some steps to help you get this sorted out: 1. Check that all the necessary ports for SIP and WebRTC (such as UDP 5060, 10000-20000, 50000-60000) are open and correctly forwarded. 2. Double-check that your SIP trunk credentials and signaling configurations are accurate. 3. Try running the LiveKit Connection Tester to spot any network problems, like blocked UDP or failed DTLS handshakes. 4. If needed, you can force the use of a TURN server by setting the
iceTransportPolicy
to
relay
in your RTC configuration. This routes traffic over TCP/TLS on port 443, which tends to play nicer with firewalls. If you’re still having trouble after these steps, please don’t hesitate to reach out. I’m here to help you dig deeper and get everything working smoothly. Sources: engine.go | Firewall Tips | src/room/PCTransport.ts | SIP troubleshooting guide | LiveKit Docs | pkg/rtc/transport.go
a
Call accepted, but no ACK received
t
I understand how frustrating the "Call accepted, but no ACK received" issue can be. This happens when the LiveKit SIP server sends a 200 OK response to an INVITE request but doesn’t get the ACK message back. Here are some common reasons this might occur: • Network hiccups, like blocked UDP/TCP ports (for example, 5060, 5061) or challenges with NAT traversal. • Settings on your SIP provider that might not be correctly handling ACK messages or routing responses properly. • Firewall or SIP proxy settings that could be interrupting the SIP handshake process. To help you get this sorted out, you might try the following steps: 1. Double-check that all necessary SIP signaling ports (UDP/TCP 5060, 5061) and RTP media ports are open and forwarded correctly. 2. Confirm that your SIP provider supports proper ACK handling and includes the right Via and Contact headers in their responses. 3. Turn on debug logging on your LiveKit SIP server to get a closer look at the SIP message flow and see if ACK messages are coming through. 4. Use packet capture tools like tcpdump or Wireshark to inspect the SIP traffic and verify whether the ACK is being sent by your SIP provider. 5. Look into any firewall or SIP proxy configurations that might be affecting the SIP handshake. If you try these and the problem still sticks around, please don’t hesitate to reach out. I’m here to help you dig deeper or escalate the issue if needed. We’ll work through this together! Sources: pkg/sip/outbound.go | Making outbound calls | LiveKit Docs