Hi,
This is driving me really nuts…
I added:
externip = 80.126.118.241
localnet = 10.0.0.0/255.255.255.0
nat=yes
register => 0878702489:PASSWORD@sip.xs4all.nl
to the general part op SIP.conf
But somehow registration fails:
*CLI> sip show registry
Host Username Refresh State
sip.xs4all.nl:5060 0878704674 120 Auth. Sent
*CLI> Jan 4 13:09:51 NOTICE[8394]: chan_sip.c:4074 sip_reg_timeout: – Registration for '0878704674@sip.xs4all.nl’ timed out, trying again
– Got SIP response 481 “Dialog does not exist” back from 217.66.118.164
sip debug
SIP Debugging Enabled
*CLI> Jan 4 13:25:40 NOTICE[8608]: chan_sip.c:4074 sip_reg_timeout: – Registration for '0878702489@sip.xs4all.nl’ timed out, trying again
12 headers, 0 lines
Reliably Transmitting:
REGISTER sip:sip.xs4all.nl SIP/2.0
Via: SIP/2.0/UDP 80.126.118.241:5060;branch=z9hG4bK1adda8c8
From: sip:0878702489@sip.xs4all.nl;tag=as67ffd4bf
To: sip:0878702489@sip.xs4all.nl
Call-ID: 71fed105104cd9bb256a8c5976243a3f@10.0.0.150
CSeq: 110 REGISTER
User-Agent: Asterisk PBX
Authorization: Digest username=“0878702489”, realm=“sip.xs4all.nl”, algorithm=MD5, uri=“sip:sip.xs4all.nl”, nonce=“00086a15061026ea558caf062033dd58”, response=“731dfb5dc3533311225d8e791f50e5a1”, opaque="0008121b4df9c9b"
Expires: 120
Contact: sip:s@80.126.118.241
Event: registration
Content-Length: 0
(no NAT) to 217.66.118.164:5060
Sip read:
SIP/2.0 401 nonce has changed
Call-ID: 71fed105104cd9bb256a8c5976243a3f@10.0.0.150
CSeq: 110 REGISTER
From: sip:0878702489@sip.xs4all.nl;tag=as67ffd4bf
To: sip:0878702489@sip.xs4all.nl;tag=03-08191-00086d07-177f248e6
Via: SIP/2.0/UDP 80.126.118.241:5060;received=80.126.118.241;rport=56374;branch=z9hG4bK1adda8c8
WWW-Authenticate: Digest realm=“sip.xs4all.nl”,nonce=“00086cd01e9db3cb10452d31374780cf”,opaque=“0008121b4df9c9b”,stale=false,algorithm=MD5
Content-Length: 0
8 headers, 0 lines
Responding to challenge, registration to domain/host name sip.xs4all.nl
12 headers, 0 lines
Reliably Transmitting:
REGISTER sip:sip.xs4all.nl SIP/2.0
Via: SIP/2.0/UDP 80.126.118.241:5060;branch=z9hG4bK747249a9
From: sip:0878702489@sip.xs4all.nl;tag=as67ffd4bf
To: sip:0878702489@sip.xs4all.nl;tag=03-08191-00086d07-177f248e6
Call-ID: 71fed105104cd9bb256a8c5976243a3f@10.0.0.150
CSeq: 111 REGISTER
User-Agent: Asterisk PBX
Authorization: Digest username=“0878702489”, realm=“sip.xs4all.nl”, algorithm=MD5, uri=“sip:sip.xs4all.nl”, nonce=“00086cd01e9db3cb10452d31374780cf”, response=“dd3e7cb028276a4c34da0d8e29bf9c6a”, opaque="0008121b4df9c9b"
Expires: 120
Contact: sip:s@80.126.118.241
Event: registration
Content-Length: 0
(no NAT) to 217.66.118.164:5060
Sip read:
SIP/2.0 481 Dialog does not exist
Call-ID: 71fed105104cd9bb256a8c5976243a3f@10.0.0.150
CSeq: 111 REGISTER
From: sip:0878702489@sip.xs4all.nl;tag=as67ffd4bf
To: sip:0878702489@sip.xs4all.nl;tag=03-08191-00086d07-177f248e6
Via: SIP/2.0/UDP 80.126.118.241:5060;branch=z9hG4bK747249a9
Content-Length: 0
7 headers, 0 lines
– Got SIP response 481 “Dialog does not exist” back from 217.66.118.164
Destroying call ‘71fed105104cd9bb256a8c5976243a3f@10.0.0.150’
Jan 4 13:26:00 NOTICE[8608]: chan_sip.c:4074 sip_reg_timeout: – Registration for '0878702489@sip.xs4all.nl’ timed out, trying again
12 headers, 0 lines
Reliably Transmitting:
REGISTER sip:sip.xs4all.nl SIP/2.0
Via: SIP/2.0/UDP 80.126.118.241:5060;branch=z9hG4bK5613d3c7
From: sip:0878702489@sip.xs4all.nl;tag=as11f63802
To: sip:0878702489@sip.xs4all.nl
Call-ID: 71fed105104cd9bb256a8c5976243a3f@10.0.0.150
CSeq: 112 REGISTER
User-Agent: Asterisk PBX
Authorization: Digest username=“0878702489”, realm=“sip.xs4all.nl”, algorithm=MD5, uri=“sip:sip.xs4all.nl”, nonce=“00086cd01e9db3cb10452d31374780cf”, response=“dd3e7cb028276a4c34da0d8e29bf9c6a”, opaque="0008121b4df9c9b"
Expires: 120
Contact: sip:s@80.126.118.241
Event: registration
Content-Length: 0
(no NAT) to 217.66.118.164:5060
Sip read:
SIP/2.0 401 nonce has changed
Call-ID: 71fed105104cd9bb256a8c5976243a3f@10.0.0.150
CSeq: 112 REGISTER
From: sip:0878702489@sip.xs4all.nl;tag=as11f63802
To: sip:0878702489@sip.xs4all.nl;tag=03-08191-00086f38-1efe1dff0
Via: SIP/2.0/UDP 80.126.118.241:5060;received=80.126.118.241;rport=56374;branch=z9hG4bK5613d3c7
WWW-Authenticate: Digest realm=“sip.xs4all.nl”,nonce=“00086f392cd5977a26b43e8b49f16936”,opaque=“0008121b4df9c9b”,stale=false,algorithm=MD5
Content-Length: 0
8 headers, 0 lines
Responding to challenge, registration to domain/host name sip.xs4all.nl
12 headers, 0 lines
Reliably Transmitting:
REGISTER sip:sip.xs4all.nl SIP/2.0
Via: SIP/2.0/UDP 80.126.118.241:5060;branch=z9hG4bK44bf9252
From: sip:0878702489@sip.xs4all.nl;tag=as11f63802
To: sip:0878702489@sip.xs4all.nl;tag=03-08191-00086f38-1efe1dff0
Call-ID: 71fed105104cd9bb256a8c5976243a3f@10.0.0.150
CSeq: 113 REGISTER
User-Agent: Asterisk PBX
Authorization: Digest username=“0878702489”, realm=“sip.xs4all.nl”, algorithm=MD5, uri=“sip:sip.xs4all.nl”, nonce=“00086f392cd5977a26b43e8b49f16936”, response=“5875e58fd221b8b2b543eda93516014b”, opaque="0008121b4df9c9b"
Expires: 120
Contact: sip:s@80.126.118.241
Event: registration
Content-Length: 0
(no NAT) to 217.66.118.164:5060
Sip read:
SIP/2.0 481 Dialog does not exist
Call-ID: 71fed105104cd9bb256a8c5976243a3f@10.0.0.150
CSeq: 113 REGISTER
From: sip:0878702489@sip.xs4all.nl;tag=as11f63802
To: sip:0878702489@sip.xs4all.nl;tag=03-08191-00086f38-1efe1dff0
Via: SIP/2.0/UDP 80.126.118.241:5060;branch=z9hG4bK44bf9252
Content-Length: 0
7 headers, 0 lines
– Got SIP response 481 “Dialog does not exist” back from 217.66.118.164
Destroying call ‘71fed105104cd9bb256a8c5976243a3f@10.0.0.150’
sip no debug
SIP Debugging Disabled
*CLI> Jan 4 13:26:20 NOTICE[8608]: chan_sip.c:4074 sip_reg_timeout: – Registration for '0878702489@sip.xs4all.nl’ timed out, trying again
Ifconfig info:
khif01# ifconfig xl0
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=9<RXCSUM,VLAN_MTU>
inet6 fe80::210:4bff:febc:2136%xl0 prefixlen 64 scopeid 0x1
inet 10.0.0.150 netmask 0xffffff00 broadcast 10.0.0.255
ether 00:10:4b:bc:21:36
media: Ethernet autoselect (10baseT/UTP)
status: active
It does work with X-lite on the same network, so the natting should be OK.
Anybody who can help?
Maarteb