[Asterisk-Users] Asterisk & Broadvoice help??
Shawn Porter
ivr_solutions at rogers.com
Tue Dec 20 09:00:38 MST 2005
Would someone be so kind as to point out what stupid little mistake I have
made. I thought I did everything according to the setup page but I fail to
register.
HOSTS file contains
147.135.8.128 sip.broadvoice.com
SIP.CONF
[general]
context=iaxclients ; Default context for incoming calls
port=5060 ; UDP Port to bind to (SIP standard port is 5060)
bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes ; Enable DNS SRV lookups on outbound calls
; Note: Asterisk only uses the first host
; in SRV records
; Disabling DNS SRV lookups disables the
; ability to place SIP calls based on domain
; names to some other SIP users on the Internet
pedantic=no ; Enable slow, pedantic checking for Pingtel
; and multiline formatted headers for strict
; SIP compatibility (defaults to "no")
disallow=all ; First disallow all codecs
allow=ulaw,alaw,g723,speex.ilbc ; Allow codecs in order of preference
dtmfmode=inband
register =>
7723821447 at sip.broadvoice.com:XXXXXX:7723821447 at sip.broadvoice.com/1001
[1001]
;shawn
type=friend
host=dynamic
;dtmfmode=inband
secret=xxxxxxxx
context=iaxclients
callerid="Oghma Consulting" <647-283-6666>
[666]
type=friend
host=10.0.0.101
canreinvite=no
defaultip=10.0.0.101
context=iaxclients
insecure=very
[sip.broadvoice.com]
type=peer
user=phone
host=sip.broadvoice.com
fromdomain=sip.broadvoice.com
fromuser=7723821447
secret=<xxxxxxx>
username=7723821447
insecure=very
context=iaxclients
authname=7723821447
dtmfmode=inband
dtmf=inband
;Disable canreinvite if you are behind a NAT
canreinvite=no
SIP DEBUG
Asterisk Ready.
*CLI> sip debug
SIP Debugging Enabled
*CLI> Dec 20 10:51:51 NOTICE[14126]: chan_sip.c:4017 sip_reregister: --
Re-registration for 7723821447 at sip.broadvoice.com@sip.broadvoice.com
11 headers, 0 lines
Reliably Transmitting:
REGISTER sip:sip.broadvoice.com SIP/2.0
Via: SIP/2.0/UDP 10.0.0.164:5060;branch=z9hG4bK4168ff8c
From: <sip:7723821447 at sip.broadvoice.com>;tag=as565f9ec4
To: <sip:7723821447 at sip.broadvoice.com>
Call-ID: 6b7a8a774f582502072e1acb2606a178 at sip.broadvoice.com
CSeq: 102 REGISTER
User-Agent: Asterisk PBX
Expires: 120
Contact: <sip:1001 at 10.0.0.164>
Event: registration
Content-Length: 0
(no NAT) to 147.135.8.128:5060
Sip read:
SIP/2.0 401 Unauthorized
Call-ID: 6b7a8a774f582502072e1acb2606a178 at sip.broadvoice.com
CSeq: 102 REGISTER
From: <sip:7723821447 at sip.broadvoice.com>;tag=as565f9ec4
To: <sip:7723821447 at sip.broadvoice.com>
Via: SIP/2.0/UDP sip.broadvoice.com:5060;branch=z9hG4bK4168ff8c
WWW-Authenticate: DIGEST
realm="BroadWorks",algorithm=MD5,nonce="1135093911710"
Content-Length: 0
8 headers, 0 lines
Responding to challenge, registration to domain/host name sip.broadvoice.com
12 headers, 0 lines
Reliably Transmitting:
REGISTER sip:sip.broadvoice.com SIP/2.0
Via: SIP/2.0/UDP 10.0.0.164:5060;branch=z9hG4bK220b3020
From: <sip:7723821447 at sip.broadvoice.com>;tag=as565f9ec4
To: <sip:7723821447 at sip.broadvoice.com>
Call-ID: 6b7a8a774f582502072e1acb2606a178 at sip.broadvoice.com
CSeq: 103 REGISTER
User-Agent: Asterisk PBX
Authorization: Digest username="7723821447", realm="BroadWorks",
algorithm=MD5, uri="sip:sip.broadvoice.com", nonce="1135093911710",
response="2c73b280cd7857c8f6d2b56acd6e71eb", opaque=""
Expires: 120
Contact: <sip:1001 at 10.0.0.164>
Event: registration
Content-Length: 0
(no NAT) to 147.135.8.128:5060
Sip read:
SIP/2.0 401 Unauthorized
Call-ID: 6b7a8a774f582502072e1acb2606a178 at sip.broadvoice.com
CSeq: 103 REGISTER
From: <sip:7723821447 at sip.broadvoice.com>;tag=as565f9ec4
To: <sip:7723821447 at sip.broadvoice.com>
Via: SIP/2.0/UDP sip.broadvoice.com:5060;branch=z9hG4bK220b3020
WWW-Authenticate: DIGEST
realm="BroadWorks",algorithm=MD5,nonce="1135093911970"
Content-Length: 0
8 headers, 0 lines
Responding to challenge, registration to domain/host name sip.broadvoice.com
12 headers, 0 lines
Reliably Transmitting:
REGISTER sip:sip.broadvoice.com SIP/2.0
Via: SIP/2.0/UDP 10.0.0.164:5060;branch=z9hG4bK6666890c
From: <sip:7723821447 at sip.broadvoice.com>;tag=as565f9ec4
To: <sip:7723821447 at sip.broadvoice.com>
Call-ID: 6b7a8a774f582502072e1acb2606a178 at sip.broadvoice.com
CSeq: 104 REGISTER
User-Agent: Asterisk PBX
Authorization: Digest username="7723821447", realm="BroadWorks",
algorithm=MD5, uri="sip:sip.broadvoice.com", nonce="1135093911970",
response="fb0d8ac4bc042e67a716976d4f10004f", opaque=""
Expires: 120
Contact: <sip:1001 at 10.0.0.164>
Event: registration
Content-Length: 0
(no NAT) to 147.135.8.128:5060
Sip read:
SIP/2.0 401 Unauthorized
Call-ID: 6b7a8a774f582502072e1acb2606a178 at sip.broadvoice.com
CSeq: 104 REGISTER
From: <sip:7723821447 at sip.broadvoice.com>;tag=as565f9ec4
To: <sip:7723821447 at sip.broadvoice.com>
Via: SIP/2.0/UDP sip.broadvoice.com:5060;branch=z9hG4bK6666890c
WWW-Authenticate: DIGEST
realm="BroadWorks",algorithm=MD5,nonce="1135093912150"
Content-Length: 0
8 headers, 0 lines
Dec 20 10:51:52 NOTICE[14126]: chan_sip.c:6854 handle_response: Failed to
authenticate on REGISTER to
'<sip:7723821447 at sip.broadvoice.com>;tag=as565f9ec4'
Destroying call '6b7a8a774f582502072e1acb2606a178 at sip.broadvoice.com'
Dec 20 10:52:11 NOTICE[14126]: chan_sip.c:4045 sip_reg_timeout: --
Registration for '7723821447 at sip.broadvoice.com@sip.broadvoice.com' timed
out, trying again
12 headers, 0 lines
Reliably Transmitting:
REGISTER sip:sip.broadvoice.com SIP/2.0
Via: SIP/2.0/UDP 10.0.0.164:5060;branch=z9hG4bK5242a6a3
From: <sip:7723821447 at sip.broadvoice.com>;tag=as1c7995a0
To: <sip:7723821447 at sip.broadvoice.com>
Call-ID: 6b7a8a774f582502072e1acb2606a178 at sip.broadvoice.com
CSeq: 105 REGISTER
User-Agent: Asterisk PBX
Authorization: Digest username="7723821447", realm="BroadWorks",
algorithm=MD5, uri="sip:sip.broadvoice.com", nonce="1135093911970",
response="fb0d8ac4bc042e67a716976d4f10004f", opaque=""
Expires: 120
Contact: <sip:1001 at 10.0.0.164>
Event: registration
Content-Length: 0
(no NAT) to 147.135.8.128:5060
Sip read:
SIP/2.0 401 Unauthorized
Call-ID: 6b7a8a774f582502072e1acb2606a178 at sip.broadvoice.com
CSeq: 105 REGISTER
From: <sip:7723821447 at sip.broadvoice.com>;tag=as1c7995a0
To: <sip:7723821447 at sip.broadvoice.com>
Via: SIP/2.0/UDP sip.broadvoice.com:5060;branch=z9hG4bK5242a6a3
WWW-Authenticate: DIGEST
realm="BroadWorks",algorithm=MD5,nonce="1135093931714"
Content-Length: 0
8 headers, 0 lines
Responding to challenge, registration to domain/host name sip.broadvoice.com
12 headers, 0 lines
Reliably Transmitting:
REGISTER sip:sip.broadvoice.com SIP/2.0
Via: SIP/2.0/UDP 10.0.0.164:5060;branch=z9hG4bK653b4c65
From: <sip:7723821447 at sip.broadvoice.com>;tag=as1c7995a0
To: <sip:7723821447 at sip.broadvoice.com>
Call-ID: 6b7a8a774f582502072e1acb2606a178 at sip.broadvoice.com
CSeq: 106 REGISTER
User-Agent: Asterisk PBX
Authorization: Digest username="7723821447", realm="BroadWorks",
algorithm=MD5, uri="sip:sip.broadvoice.com", nonce="1135093931714",
response="e1976d86e75389b360659f88e5d857a7", opaque=""
Expires: 120
Contact: <sip:1001 at 10.0.0.164>
Event: registration
Content-Length: 0
(no NAT) to 147.135.8.128:5060
Sip read:
SIP/2.0 401 Unauthorized
Call-ID: 6b7a8a774f582502072e1acb2606a178 at sip.broadvoice.com
CSeq: 106 REGISTER
From: <sip:7723821447 at sip.broadvoice.com>;tag=as1c7995a0
To: <sip:7723821447 at sip.broadvoice.com>
Via: SIP/2.0/UDP sip.broadvoice.com:5060;branch=z9hG4bK653b4c65
WWW-Authenticate: DIGEST
realm="BroadWorks",algorithm=MD5,nonce="1135093931896"
Content-Length: 0
8 headers, 0 lines
Responding to challenge, registration to domain/host name sip.broadvoice.com
12 headers, 0 lines
Reliably Transmitting:
REGISTER sip:sip.broadvoice.com SIP/2.0
Via: SIP/2.0/UDP 10.0.0.164:5060;branch=z9hG4bK14caad1b
From: <sip:7723821447 at sip.broadvoice.com>;tag=as1c7995a0
To: <sip:7723821447 at sip.broadvoice.com>
Call-ID: 6b7a8a774f582502072e1acb2606a178 at sip.broadvoice.com
CSeq: 107 REGISTER
User-Agent: Asterisk PBX
Authorization: Digest username="7723821447", realm="BroadWorks",
algorithm=MD5, uri="sip:sip.broadvoice.com", nonce="1135093931896",
response="8178671769a18c1a519f0d5128e77cf9", opaque=""
Expires: 120
Contact: <sip:1001 at 10.0.0.164>
Event: registration
Content-Length: 0
(no NAT) to 147.135.8.128:5060
Sip read:
SIP/2.0 401 Unauthorized
Call-ID: 6b7a8a774f582502072e1acb2606a178 at sip.broadvoice.com
CSeq: 107 REGISTER
From: <sip:7723821447 at sip.broadvoice.com>;tag=as1c7995a0
To: <sip:7723821447 at sip.broadvoice.com>
Via: SIP/2.0/UDP sip.broadvoice.com:5060;branch=z9hG4bK14caad1b
WWW-Authenticate: DIGEST
realm="BroadWorks",algorithm=MD5,nonce="1135093932077"
Content-Length: 0
8 headers, 0 lines
Dec 20 10:52:12 NOTICE[14126]: chan_sip.c:6854 handle_response: Failed to
authenticate on REGISTER to
'<sip:7723821447 at sip.broadvoice.com>;tag=as1c7995a0'
Destroying call '6b7a8a774f582502072e1acb2606a178 at sip.broadvoice.com'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051220/4cc417ba/attachment.htm
More information about the asterisk-users
mailing list