boundless-author-7811
04/10/2026, 11:41 AMtall-airline-16756
04/10/2026, 11:41 AMtall-airline-16756
04/10/2026, 11:42 AMboundless-author-7811
04/10/2026, 11:43 AMtall-airline-16756
04/10/2026, 11:43 AMboundless-author-7811
04/10/2026, 11:44 AMtall-airline-16756
04/10/2026, 11:45 AMboundless-author-7811
04/10/2026, 11:47 AMtall-airline-16756
04/10/2026, 11:47 AMport 5060 with the correct port/protocol (e.g., tcp port 5061).
1. Reproduce the SIP call flow you need to capture, then stop tcpdump (Ctrl+C).
2. Transfer the pcap to your workstation:
◦ scp ec2-user@your-ec2:/tmp/sip_capture.pcap .
1. Open in Wireshark or use tshark to extract SIP bodies:
◦ tshark -r sip_capture.pcap -Y sip -V
◦ Or to extract SDP bodies only: tshark -r sip_capture.pcap -Y "sip && sip.Method == \"INVITE\"" -T fields -e sip.Payload
◦ Adjust filters for INVITE/200OK as needed.
Notes: Use capture filters if traffic volume is high (e.g., host x.x.x.x and port 5060). For TLS, packet capture won’t decrypt the payload without the keys.
Option B — Log full SIP messages from the container (if supported by the gateway binary)
1. Identify the SIP container name:
◦ sudo docker-compose ps
1. Stream logs to see current output:
◦ sudo docker-compose logs -f sip_service_name
1. If the gateway supports verbose logging via env var or flag, add it to your docker-compose.yml for that service. Example pattern (replace with the service name and actual var/flag your gateway supports):
◦ environment:
▪︎ LOG_LEVEL=debug
▪︎ SIP_DEBUG=true
◦ Or add command: ["./gateway-binary", "--log-level", "debug", "--sip-debug"]
1. Apply changes and restart the service:
◦ sudo docker-compose up -d --force-recreate sip_service_name
1. Tail logs and search for SIP payloads:
◦ sudo docker-compose logs -f sip_service_name | grep -i "sdp\|INVITE\|Content-Type"
Notes: I don’t have a specific documented env var name for LiveKit SIP’s raw SIP-body log toggle. If enabling debug-level logs in the container doesn’t show raw bodies, fall back to Option A or use an in‑line SIP proxy/logger.
If you want, I can provide the exact tcpdump/tshark commands tailored to your SIP transport (UDP/TCP/TLS) and port, or show an example docker-compose snippet to add debug logging. Which would you like?
, with interactive elements