I have checked PCAP and it looks like file from the Kamailio does not match files from the RTPengine host. What is need to fix here It looks like 182.77.49.201 and 192.168.1.31 it is the same host. For connectivity to this hosts used both private IP address and public IP address.
[image: image.png] I think you will improve call troubleshooting if you use only one of IP address type public or private.
Also, "200 OK" response contains private address in the SDP
2025/05/30 16:08:42.786225 10.7.37.212:5060 -> 35.88.200.66:5060 SIP/2.0 200 OK Via: SIP/2.0/UDP 35.88.200.66;received=35.88.200.66;rport=5060;branch=z9hG4bKevFgUHF072mDg Record-Route: sip:ka.edevops.org;lr=on From: "Jaspreet User2" sip:2002@35.88.200.66;tag=a2HDB9tc4650H To: sip:2001@ka.edevops.org;tag=708928745 Call-ID: 0cbc81dc-b7fa-123e-c2ae-0a71ca8a0c37 CSeq: 99751468 INVITE Contact: sip:2001@192.168.1.31:5060 Content-Type: application/sdp Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE User-Agent: Yealink SIP-T54W 96.86.0.75 Allow-Events: talk,hold,conference,refer,check-sync Supported: replaces Content-Length: 211
v=0 o=- 20015 20015 IN IP4 192.168.1.31 s=SDP data c=IN IP4 192.168.1.31 t=0 0 m=audio 16394 RTP/AVP 9 101 a=rtpmap:9 G722/8000 a=ptime:20 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=sendrecv
For a host located on the Internet, you should avoid the use of private IP addresses and should use a public IP addresses only.
On Fri, May 30, 2025 at 4:30 PM jaspreet-eltropy via sr-dev < sr-dev@lists.kamailio.org> wrote:
*jaspreet-eltropy* left a comment (kamailio/kamailio#4270) https://github.com/kamailio/kamailio/issues/4270#issuecomment-2922386430
Hi, thanks for the reply.
After adding a STUN server and setting the codec priority to PCMU, PCMA, G722 on the Yealink phone, it started working. Is this the right approach, or should I be looking for another solution?
Even with this setup, it only works one-way when both devices are on the same network, but works fine when the devices are on different networks.
Here is the PCAP from both Kamailio and RTPengine *before adding STUN*.
pcap.zip https://github.com/user-attachments/files/20521273/pcap.zip
— Reply to this email directly, view it on GitHub https://github.com/kamailio/kamailio/issues/4270#issuecomment-2922386430, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABO7UZOJ7RCNUUZ2VFXT3AL3BBLOZAVCNFSM6AAAAAB6HPHDSWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSMRSGM4DMNBTGA . You are receiving this because you commented.Message ID: kamailio/kamailio/issues/4270/2922386430@github.com _______________________________________________ Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org To unsubscribe send an email to sr-dev-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!