Upgrade 3CX to v18 and get it hosted free!

IAX_OpenVPN

Author image

It’s possible to run an IAX2 channel over OpenVPN.

Howto:

  • Place the following on both ends of your trunk. Switch the IP address on the ifconfig line so the second file is reverse.

[openvpn.conf]

dev tun
float
remote 3.4.5.6
ifconfig 10.0.0.1 10.0.1.1
port 1234
secret /usr/local/etc/openvpn/secret.key
verb 5
daemon
  • Now setup your Trunk on both ends

iax.conf:

[iax-vpn]
type=friend
context=from-trunk
username=user
authname=user
auth=rsa
qualify=yes
inkeys=iaxinkey
outkey=iaxoutkey
host=10.0.0.1
disallow=all
;allow=gsm
allow=alaw
allow=ulaw
trunk=yes
notransfer=yes
deny=0.0.0.0/0.0.0.0
permit=10.0.0.1/255.255.255.255

This adds some extra security with an rsa key on the IAX trunk

I’ve experienced minor packet loss over but no dropped calls. The trunk will show the following error, “TOO LAGGED,” but quickly report, “now REACHABLE.” The source of this problem is related to running out of bandwidth on my DSL connection. Since I turned on QoS the error report happens less often. Calls can get a bit of jitter when this problem is occurring, but I’m happy to report I haven’t experienced drop calls.

Feb  5 04:51:59 NOTICE[17712]: chan_iax2.c:7238 socket_read: Peer 'sc-trunk' is now TOO LAGGED (2180 ms)!
Feb  5 04:52:09 NOTICE[17712]: chan_iax2.c:7232 socket_read: Peer 'sc-trunk' is now REACHABLE! Time: 97

See also


Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.