Hi All,
Let’s start with my configuration:
SIP Phone A (5010): Subnet 192.168.1.0/24
SIP Phone B (5020): Subnet 192.168.1.0/24
SIP Phone C (5030): Subnet 192.168.2.0/24 (over briged VPN, client ip tun0 192.168.1.231 and local network eth0 192.168.2.8)
Asterisk Server: 192.168.1.10 (also VPN briged server, bridge ip 192.168.1.230)
between Phone A/B and Phone C there isn’t nat nor firewall.
The problem is that the Phone C is not able to register:
I’ve tested with success ping from the asterisk server to the Phone C (192.168.2.22) and the Phone C is able to contact the Asterisk server, this is the sip debug:
[code][size=85]SIP Debugging enabled
<— SIP read from UDP:192.168.1.231:1027 —>
REGISTER sip:192.168.1.10 SIP/2.0
From: sip:5030@192.168.1.10;tag=4a015ed3386d59743875eda8_F5030192.168.2.22
To: sip:5030@192.168.1.10
Call-ID: 25_89392646322253875ed20_R@192.168.2.22
CSeq: 37 REGISTER
Via: SIP/2.0/UDP 192.168.2.22;branch=z9hG4bK25_893924872c5313875edc5_R5030
Content-Length: 0
Max-Forwards: 70
Contact: sip:5030@192.168.2.22;avaya-sc-enabled;transport=udp;q=1;expires=1000;reg-id=1;+sip.instance="urn:uuid:00000000-0000-1000-8000-001b4f5754b8"
Allow: INVITE,CANCEL,BYE,ACK,SUBSCRIBE,NOTIFY,MESSAGE,INFO,PUBLISH,REFER,UPDATE
User-Agent: Avaya one-X Deskphone
Supported: eventlist
<------------->
— (12 headers 0 lines) —
Sending to 192.168.1.231:5060 (no NAT)
<— Transmitting (no NAT) to 192.168.1.231:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.2.22;branch=z9hG4bK25_893924872c5313875edc5_R5030;received=192.168.1.231
From: sip:5030@192.168.1.10;tag=4a015ed3386d59743875eda8_F5030192.168.2.22
To: sip:5030@192.168.1.10;tag=as7ba282c6
Call-ID: 25_89392646322253875ed20_R@192.168.2.22
CSeq: 37 REGISTER
Server: Asterisk PBX 1.8.15.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="687e6321"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog ‘25_89392646322253875ed20_R@192.168.2.22’ in 32000 ms (Method: REGISTER)
[/size][/code]
192.168.1.231 is the ip address of the vpn client,
this machine act also as gateway for the network 192.168.2.0 -> 192.168.1.0
This is my sip.conf
[code][size=85][general]
context=default
allowoverlap=no
udpbindaddr=192.168.1.10
tcpenable=no
tcpbindaddr=0.0.0.0
transport=udp
srvlookup=yes
nat=no
[authentication]
92.168.1.10
basic-options
dtmfmode=rfc2833
context=from-office
type=friend
natted-phone
directmedia=no
host=dynamic
public-phone
directmedia=yes
my-codecs
disallow=all
allow=ilbc
allow=g729
allow=gsm
allow=g723
allow=ulaw
ulaw-phone
disallow=all
allow=ulaw
[5010]
type=friend
username=5010
secret=5010
host=dynamic
context=default
callerid=roby
[5020]
type=friend
username=5020
secret=5020
host=dynamic
context=default
callerid=alberto
[5030]
type=friend
username=5030
secret=5030
host=dynamic
context=default
callerid=alberto2
[/size][/code]
extensions.conf
[size=85][default]
exten => 5010,1,Dial(SIP/5010)
exten => 5020,1,Dial(SIP/5020)
exten => 5030,1,Dial(SIP/5030)
[/size]
any idea?
tnx