• V20: 3CX Re-engineered. Get V20 for increased security, better call management, a new admin console and Windows softphone. Learn More.

Can't register via openvpn

Status
Not open for further replies.

tearsinrain

Joined
Jun 30, 2010
Messages
1
Reaction score
0
Hello,

I'm trying to register via an OpenVPN tunnel without success.

My Nexus One is connected via OpenVPN; Nexus VPN IP is 192.168.254.6 and the Asterisk SIP server is on 192.168.0.254. I tried many configurations with or without setting 192.168.0.254 for internel, external and proxy address without success.

Until I saw that the request from 3CX phone contains an additionnal IP address (10.159.83.207, my 3G internet address) as shown on the Asterisk console:

Code:
<--- SIP read from UDP:192.168.254.6:5060 --->
REGISTER sip:192.168.0.254 SIP/2.0
Via: SIP/2.0/UDP 10.159.83.207:5060;rport;branch=z9hG4bKPjsHfn2h3Wm048zsFS3woAZhASIMvJrnJu
Max-Forwards: 70
From: <sip:[email protected]>;tag=ds0OcOHB2RhothNx2WzowPtfVekarT5c
To: <sip:[email protected]>
Call-ID: F0.AXKWEVfHKHRhiwl3-AwOlVSGPgVcL
CSeq: 39363 REGISTER
User-Agent: 3CXPhone 1.0.2
Contact: <sip:[email protected]:5060>

After that my Asterisk server answers to 10.159.83.207 which is unreachable:

Code:
Sending to 10.159.83.207 : 5060 (no NAT)

<--- Transmitting (no NAT) to 10.159.83.207:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.159.83.207:5060;branch=z9hG4bKPjsHfn2h3Wm048zsFS3woAZhASIMvJrnJu;received=192.168.254.6;rport=5060
From: <sip:[email protected]>;tag=ds0OcOHB2RhothNx2WzowPtfVekarT5c
To: <sip:[email protected]>;tag=as76e02ec4
Call-ID: F0.AXKWEVfHKHRhiwl3-AwOlVSGPgVcL
CSeq: 39363 REGISTER
Server: Asterisk PBX 1.6.2.6-1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="xxx", nonce="6602a4ed"
Content-Length: 0

Is there something I do wrong or is it an impossible to setup case ?

Regards.
 
Status
Not open for further replies.
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.