This is my first post here.
I am having problems with audio when connecting a Yealink SIP T20 phone through an OpenVPN server to an Asterisk PBX. The VPN is established successfully, and the phone's sip account is registered as well. But there is no audio with some phones, and one way audio with the other. I have read about problems with SIP over NAT, please let me know if there is a solution for this.
Here is a brief description of my scenario:
I have a Yealink SIP T20 phone which can be configured to connect to the openVPN server. The openVPN and the Asterisk server are on the same LAN. Where as the phone is on a different LAN. I have configured the necessary NAT rule on the openVPN server, it is :
Code: Select all
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
This set up works perfectly on my laptop when I connect to the openVPN from the same LAN as the phone. I can even use a softphone on the laptop and there is no problem with the audio.
The settings on the phone are also correct because when I put the phone on the same LAN as the Asterisk Server, I can make calls as expected without any audio problems ( i.e. without connecting through the openvpn, even if its on the same LAN and I connect through the openVPN I still get audio probs)
I have spent 3 days searching for an answer, I would really appreciate it if anyone could share their knowledge with me to overcome this problem.
Thanks in advance,