[Asterisk-Users] SIP Registration seems to timeout
Storm D. J. Petersen
stormp at telus.net
Wed Jun 9 18:14:20 MST 2004
Hi,
I have an * server on a routable (public) IP address and a sip client behind
NAT using a Grandstream phone. He is connected through a bi-directional
satellite so he has a bit of latency involved. Usually I can dial this
extension and them to me. But I keep getting a registration failed message.
I have other sip clients not on a satellite and they dont get these time
outs. So I assumed it has to do with tweaking something. Can anyone give
me advice? Thanks kindly!
S.
NOTICE[49156]: chan_sip.c:5623 handle_request: Registration from
'<sip:5551006 at ruralsat-1.myvnc.com>' failed for '213.180.234.84'
sip show peers
Name/username Host Mask Port Status
5551006/5551006 213.180.234.84 (D) 255.255.255.255 5060 OK (1339
ms)
;
; SIP Configuration for Asterisk
[general]
dbname=asterisk ; Name of database in your Mysql server
dbhost=localhost ; Hostname of server
dbuser=root ; Username in MySQL
dbpass= ; Password for user in MySQL
port = 5060 ; Port to bind to
bindaddr = 0.0.0.0 ; Address to bind to
context = default ; Default for incoming calls
disallow=all
allow=gsm
allow=ulaw
allow=alaw
allow=ilbc
;allow=spx
;allow=g723.1
qualify=9000 ; 9000 milliseconds for sip client to
respond (9seconds).
maxexpirey=180 ; Max length of incoming registration we
allow
;defaultexpirey=1700 ; Default length of incoming/outoing
[5551006]
type=friend
username=5551006
secret=<HEY-ITS-A-SECERT>
host=dynamic
dtmfmode=rfc2833 ; Choices are inband, rfc2833, or info
callerid="NewPhone6" <5551006>
nat=yes
qualify=9000 ; 9000 milliseconds for sipphone to respond
(9seconds).
;canreinvite=no
mailbox=5551006
SIP DEBUG:
=========
Sip read:
REGISTER sip:ruralsat-1.myvnc.com SIP/2.0
Via: SIP/2.0/UDP 213.180.234.84;branch=z9hG4bK8a14e85d6ddaa98c
From: "555-1006" <sip:5551006 at ruralsat-1.myvnc.com>;tag=39b3b10051374e0e
To: <sip:5551006 at ruralsat-1.myvnc.com>
Contact: <sip:5551006 at 213.180.234.84>
Call-ID: 8fc4f4f38a6e491c at 10.100.0.69
CSeq: 651 REGISTER
Expires: 180
User-Agent: Grandstream BT100 1.0.4.54
Max-Forwards: 70
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE
Content-Length: 0
12 headers, 0 lines
Using latest request as basis request
Sending to 213.180.234.84 : 5060 (non-NAT)
Transmitting (NAT):
SIP/2.0 100 Trying
Via: SIP/2.0/UDP
213.180.234.84;branch=z9hG4bK8a14e85d6ddaa98c;received=213.180.234.84
From: "555-1006" <sip:5551006 at ruralsat-1.myvnc.com>;tag=39b3b10051374e0e
To: <sip:5551006 at ruralsat-1.myvnc.com>;tag=as7c20ed2a
Call-ID: 8fc4f4f38a6e491c at 10.100.0.69
CSeq: 651 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:5551006 at 209.121.202.21>
Content-Length: 0
to 213.180.234.84:5060
Transmitting (NAT):
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP
213.180.234.84;branch=z9hG4bK8a14e85d6ddaa98c;received=213.180.234.84
From: "555-1006" <sip:5551006 at ruralsat-1.myvnc.com>;tag=39b3b10051374e0e
To: <sip:5551006 at ruralsat-1.myvnc.com>;tag=as7c20ed2a
Call-ID: 8fc4f4f38a6e491c at 10.100.0.69
CSeq: 651 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:5551006 at 209.121.202.21>
Proxy-Authenticate: Digest realm="asterisk", nonce="444b39a8"
Content-Length: 0
to 213.180.234.84:5060
Sip read:
REGISTER sip:ruralsat-1.myvnc.com SIP/2.0
Via: SIP/2.0/UDP 213.180.234.84;branch=z9hG4bK8a14e85d6ddaa98c
From: "555-1006" <sip:5551006 at ruralsat-1.myvnc.com>;tag=39b3b10051374e0e
To: <sip:5551006 at ruralsat-1.myvnc.com>
Contact: <sip:5551006 at 213.180.234.84>
Call-ID: 8fc4f4f38a6e491c at 10.100.0.69
CSeq: 651 REGISTER
Expires: 180
User-Agent: Grandstream BT100 1.0.4.54
Max-Forwards: 70
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE
Content-Length: 0
12 headers, 0 lines
Using latest request as basis request
Sending to 213.180.234.84 : 5060 (NAT)
Transmitting (NAT):
SIP/2.0 100 Trying
Via: SIP/2.0/UDP
213.180.234.84;branch=z9hG4bK8a14e85d6ddaa98c;received=213.180.234.84
From: "555-1006" <sip:5551006 at ruralsat-1.myvnc.com>;tag=39b3b10051374e0e
To: <sip:5551006 at ruralsat-1.myvnc.com>;tag=as7c20ed2a
Call-ID: 8fc4f4f38a6e491c at 10.100.0.69
CSeq: 651 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:5551006 at 209.121.202.21>
Content-Length: 0
to 213.180.234.84:5060
Transmitting (NAT):
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP
213.180.234.84;branch=z9hG4bK8a14e85d6ddaa98c;received=213.180.234.84
From: "555-1006" <sip:5551006 at ruralsat-1.myvnc.com>;tag=39b3b10051374e0e
To: <sip:5551006 at ruralsat-1.myvnc.com>;tag=as7c20ed2a
Call-ID: 8fc4f4f38a6e491c at 10.100.0.69
CSeq: 651 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:5551006 at 209.121.202.21>
Proxy-Authenticate: Digest realm="asterisk", nonce="444b39a8"
Content-Length: 0
to 213.180.234.84:5060
Sip read:
REGISTER sip:ruralsat-1.myvnc.com SIP/2.0
Via: SIP/2.0/UDP 213.180.234.84;branch=z9hG4bK6b7e7e5a73ba2ed7
From: "555-1006" <sip:5551006 at ruralsat-1.myvnc.com>;tag=39b3b10051374e0e
To: <sip:5551006 at ruralsat-1.myvnc.com>
Contact: <sip:5551006 at 213.180.234.84>
Proxy-Authorization: DIGEST username="5551006", realm="asterisk",
algorithm=MD5, uri="sip:ruralsat-1.myvnc.com", nonce="444b39a8",
response="8c47606927c6bbc2355a869b8bde8511"
Call-ID: 8fc4f4f38a6e491c at 10.100.0.69
CSeq: 652 REGISTER
Expires: 180
User-Agent: Grandstream BT100 1.0.4.54
Max-Forwards: 70
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE
Content-Length: 0
13 headers, 0 lines
Using latest request as basis request
Sending to 213.180.234.84 : 5060 (NAT)
Transmitting (NAT):
SIP/2.0 100 Trying
Via: SIP/2.0/UDP
213.180.234.84;branch=z9hG4bK6b7e7e5a73ba2ed7;received=213.180.234.84
From: "555-1006" <sip:5551006 at ruralsat-1.myvnc.com>;tag=39b3b10051374e0e
To: <sip:5551006 at ruralsat-1.myvnc.com>;tag=as7c20ed2a
Call-ID: 8fc4f4f38a6e491c at 10.100.0.69
CSeq: 652 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:5551006 at 209.121.202.21>
Content-Length: 0
to 213.180.234.84:5060
Transmitting (NAT):
SIP/2.0 200 OK
Via: SIP/2.0/UDP
213.180.234.84;branch=z9hG4bK6b7e7e5a73ba2ed7;received=213.180.234.84
From: "555-1006" <sip:5551006 at ruralsat-1.myvnc.com>;tag=39b3b10051374e0e
To: <sip:5551006 at ruralsat-1.myvnc.com>;tag=as7c20ed2a
Call-ID: 8fc4f4f38a6e491c at 10.100.0.69
CSeq: 652 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Expires: 180
Contact: <sip:5551006 at 209.121.202.21>;expires=180
Date: Thu, 10 Jun 2004 00:03:12 GMT
Content-Length: 0
to 213.180.234.84:5060
Sip read:
REGISTER sip:ruralsat-1.myvnc.com SIP/2.0
Via: SIP/2.0/UDP 213.180.234.84;branch=z9hG4bK6b7e7e5a73ba2ed7
From: "555-1006" <sip:5551006 at ruralsat-1.myvnc.com>;tag=39b3b10051374e0e
To: <sip:5551006 at ruralsat-1.myvnc.com>
Contact: <sip:5551006 at 213.180.234.84>
Proxy-Authorization: DIGEST username="5551006", realm="asterisk",
algorithm=MD5, uri="sip:ruralsat-1.myvnc.com", nonce="444b39a8",
response="8c47606927c6bbc2355a869b8bde8511"
Call-ID: 8fc4f4f38a6e491c at 10.100.0.69
CSeq: 652 REGISTER
Expires: 180
User-Agent: Grandstream BT100 1.0.4.54
Max-Forwards: 70
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE
Content-Length: 0
13 headers, 0 lines
Using latest request as basis request
Sending to 213.180.234.84 : 5060 (non-NAT)
Transmitting (NAT):
SIP/2.0 100 Trying
Via: SIP/2.0/UDP
213.180.234.84;branch=z9hG4bK6b7e7e5a73ba2ed7;received=213.180.234.84
From: "555-1006" <sip:5551006 at ruralsat-1.myvnc.com>;tag=39b3b10051374e0e
To: <sip:5551006 at ruralsat-1.myvnc.com>;tag=as0dc636e8
Call-ID: 8fc4f4f38a6e491c at 10.100.0.69
CSeq: 652 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:5551006 at 209.121.202.21>
Content-Length: 0
to 213.180.234.84:5060
Transmitting (NAT):
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP
213.180.234.84;branch=z9hG4bK6b7e7e5a73ba2ed7;received=213.180.234.84
From: "555-1006" <sip:5551006 at ruralsat-1.myvnc.com>;tag=39b3b10051374e0e
To: <sip:5551006 at ruralsat-1.myvnc.com>;tag=as0dc636e8
Call-ID: 8fc4f4f38a6e491c at 10.100.0.69
CSeq: 652 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:5551006 at 209.121.202.21>
Proxy-Authenticate: Digest realm="asterisk", nonce="22bb2127"
Content-Length: 0
to 213.180.234.84:5060
Sip read:
REGISTER sip:ruralsat-1.myvnc.com SIP/2.0
Via: SIP/2.0/UDP 213.180.234.84;branch=z9hG4bK53f96dd6e07e11d6
From: "555-1006" <sip:5551006 at ruralsat-1.myvnc.com>;tag=39b3b10051374e0e
To: <sip:5551006 at ruralsat-1.myvnc.com>
Contact: <sip:5551006 at 213.180.234.84>
Proxy-Authorization: DIGEST username="5551006", realm="asterisk",
algorithm=MD5, uri="sip:ruralsat-1.myvnc.com", nonce="444b39a8",
response="8c47606927c6bbc2355a869b8bde8511"
Call-ID: 8fc4f4f38a6e491c at 10.100.0.69
CSeq: 653 REGISTER
Expires: 180
User-Agent: Grandstream BT100 1.0.4.54
Max-Forwards: 70
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE
Content-Length: 0
13 headers, 0 lines
Using latest request as basis request
Sending to 213.180.234.84 : 5060 (NAT)
Transmitting (NAT):
SIP/2.0 100 Trying
Via: SIP/2.0/UDP
213.180.234.84;branch=z9hG4bK53f96dd6e07e11d6;received=213.180.234.84
From: "555-1006" <sip:5551006 at ruralsat-1.myvnc.com>;tag=39b3b10051374e0e
To: <sip:5551006 at ruralsat-1.myvnc.com>;tag=as0dc636e8
Call-ID: 8fc4f4f38a6e491c at 10.100.0.69
CSeq: 653 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:5551006 at 209.121.202.21>
Content-Length: 0
to 213.180.234.84:5060
Transmitting (NAT):
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
213.180.234.84;branch=z9hG4bK53f96dd6e07e11d6;received=213.180.234.84
From: "555-1006" <sip:5551006 at ruralsat-1.myvnc.com>;tag=39b3b10051374e0e
To: <sip:5551006 at ruralsat-1.myvnc.com>;tag=as0dc636e8
Call-ID: 8fc4f4f38a6e491c at 10.100.0.69
CSeq: 653 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:5551006 at 209.121.202.21>
Content-Length: 0
Jun 10 01:03:13 NOTICE[49156]: chan_sip.c:5623 handle_request: Registration
from '<sip:5551006 at ruralsat-1.myvnc.com>' failed for '213.180.234.84'
to 213.180.234.84:5060
11 headers, 2 lines
Reliably Transmitting:
NOTIFY sip:5551006 at 213.180.234.84 SIP/2.0
Via: SIP/2.0/UDP 209.121.202.21:5060;branch=z9hG4bK6b710cde
From: "asterisk" <sip:asterisk at 209.121.202.21>;tag=as0c3b1a6f
To: <sip:5551006 at 213.180.234.84>
Contact: <sip:asterisk at 209.121.202.21>
Call-ID: 7b57f1a570e56b0d38561cdd60bd85f1 at 209.121.202.21
CSeq: 102 NOTIFY
User-Agent: Asterisk PBX
Event: message-summary
Content-Type: application/simple-message-summary
Content-Length: 36
Messages-Waiting: no
Voicemail: 0/0
(NAT) to 213.180.234.84:5060
Sip read:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 209.121.202.21:5060;branch=z9hG4bK6b710cde
From: "asterisk" <sip:asterisk at 209.121.202.21>;tag=as0c3b1a6f
To: <sip:5551006 at 213.180.234.84>;tag=5231fc7c493bb93b
Call-ID: 7b57f1a570e56b0d38561cdd60bd85f1 at 209.121.202.21
CSeq: 102 NOTIFY
User-Agent: Grandstream BT100 1.0.4.54
Warning: 399 213.180.234.84 "detected NAT type is full cone"
Contact: <sip:5551006 at 213.180.234.84>
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE
Content-Length: 0
11 headers, 0 lines
Sip read:
0 headers, 0 lines
11 headers, 0 liness
Reliably Transmitting:
OPTIONS sip:213.180.234.84 SIP/2.0
Via: SIP/2.0/UDP 209.121.202.21:5060;branch=z9hG4bK3e76065f
From: "asterisk" <sip:asterisk at 209.121.202.21>;tag=as2f3234af
To: <sip:213.180.234.84>
Contact: <sip:asterisk at 209.121.202.21>
Call-ID: 52c4515e297e896006a2227173b83064 at 209.121.202.21
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Date: Thu, 10 Jun 2004 00:03:29 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Content-Length: 0
(no NAT) to 213.180.234.84:5060
Sip read:
0 headers, 0 lines
Sip read:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 209.121.202.21:5060;branch=z9hG4bK3e76065f
From: "asterisk" <sip:asterisk at 209.121.202.21>;tag=as2f3234af
To: <sip:213.180.234.84>;tag=cb5762464776e09d
Call-ID: 52c4515e297e896006a2227173b83064 at 209.121.202.21
CSeq: 102 OPTIONS
User-Agent: Grandstream BT100 1.0.4.54
Warning: 399 213.180.234.84 "detected NAT type is full cone"
Contact: <sip:5551006 at 213.180.234.84>
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE
Content-Length: 0
More information about the asterisk-users
mailing list