VPN for VoIP | Ping Delay

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
sohaib
OpenVpn Newbie
Posts: 2
Joined: Wed Jun 24, 2020 11:22 am

VPN for VoIP | Ping Delay

Post by sohaib » Wed Jul 01, 2020 6:25 pm

Hi there,

I have setup a openvpn server on clound (digital ocean). and my vpn client connects from local internet.

My goal is to use SIP (VOIP) over the VPN and my SIP server is also the same OpenVPN server.

My VPN get connected successfully and I can ping server from client perfectly fine. and I can register SIP User on client successfully. But the issue is when i dial the number from client my voice start breaking and at the same time when call is connected I check the ping it show big delay first and then timeout.

Can any tell me whats wrong with my configuration.
Server config

port 1194
proto udp
dev tun
tun-mtu 1500
mssfix 1340
ca ca.crt
cert server.crt
key server.key
dh dh.pem
server 172.16.100.0 255.255.255.0
client-config-dir /etc/openvpn/ccd
push "dhcp-option DNS 172.16.100.1"
push "dhcp-option DNS 8.8.8.8"
keepalive 20 60
client-to-client
user nobody
group nogroup
persist-key
persist-tun
duplicate-cn
comp-lzo
daemon
status /var/log/openvpn/openvpn-status.log
log /var/log/openvpn/openvpn.log log-append /var/log/openvpn/openvpn.log
verb 4


Client config

client
proto udp
verb 3
dev tun
remote 1xx.xxx.xxx.xxx
cipher BF-CBC
port 1194 ca
ca.crt
cert alkhidmatkh.crt
key alkhidmatkh.key
nobind
persist-key
persist-tun
resolv-retry
infinite
comp-lzo


Please guide me if there is anything wrong.

Thanks in advance.

Sohaib Khan
Last edited by Pippin on Wed Jul 01, 2020 6:30 pm, edited 1 time in total.
Reason: Formatting

Post Reply