Chirag Desai
2016-Mar-07 22:03 UTC
[asterisk-users] Differences between Chan_SIP and PJSIP with NAT and STUN
I'm dialling from the snom and every few calls asterisk sends media to the phones external IP and it works! And then now and again it sends the media to the phones internal IP and I hear nothing. I'm really at a loss. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160307/1deb2344/attachment.html>
Joshua Colp
2016-Mar-07 22:06 UTC
[asterisk-users] Differences between Chan_SIP and PJSIP with NAT and STUN
Chirag Desai wrote:> I'm dialling from the snom and every few calls asterisk sends media to > the phones external IP and it works! > > And then now and again it sends the media to the phones internal IP and > I hear nothing. I'm really at a loss.In the non-working case check the IP address in the SDP, if it's the external then we've told the phone to send it to the right place. After that do a packet capture and see if the packets are arriving on the machine. If not then look outside the machine at things. -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
Chirag Desai
2016-Mar-07 23:35 UTC
[asterisk-users] Differences between Chan_SIP and PJSIP with NAT and STUN
In the PCAP I can see asterisk sending UDP packets to my local IP 192.168.0.5.... It's funny, when I switch to TCP on 5060 audio seems to work fine. The moment I go to 5063 on TLS everything goes a bit awry. Any further input is greatly appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160307/bfe38818/attachment.html>
Joshua Colp
2016-Mar-07 23:36 UTC
[asterisk-users] Differences between Chan_SIP and PJSIP with NAT and STUN
Chirag Desai wrote:> In the PCAP I can see asterisk sending UDP packets to my local IP > 192.168.0.5....If you don't see anything arriving from the remote side and we've told them the right IP address and ICE is not actually negotiated... then that leans more towards something remote unless there actually is a firewall. -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
Chirag Desai
2016-Mar-07 23:43 UTC
[asterisk-users] Differences between Chan_SIP and PJSIP with NAT and STUN
So I see: EXTERNAL_SNOM_IP -> EXTERNAL_ASTERISK_IP (UDP, length 218, src: 60798, dst 11128) EXTERNAL_ASTERISK_IP -> INTERNAL_SNOM_IP (UDP, length 218, src: 11128 dst 60478 So i see udp from the phone, but there's no audio. I do also see some packets :: EXTERNAL_ASTERISK_IP -> EXTERNAL_SNOM_IP (ICMP, length 246, Destination unreachable (Host administratively prohibited) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160307/daf4b7ba/attachment.html>