I’ve done a bunch of searching on this forum, google, etc. and seen lots of posts and tried all of them (I think) but I still cannot get my asterisk server to register with broadvoice. I get the registration timeout error listed above. The only thing that I have not tried yet is putting the asterisk server outside of my nat firewall and connecting that way. I don’t think that is the problem, though, since I am able to connect to the demo at digium via IAX through the firewall without issue. I was also able to get an xlite phone to register with broadvoice with minimal tinkering. So, I am fairly sure that I am missing something in one of my config files.
I came across one posting from 2004 that stated that asterisk needed a patch to work with broadvoice but it seemed to indicate that the patch had been pulled into the stable branch some time ago. Does anyone know if that is the case?
The relevant sections of my sip.conf and extensions.conf are below as well as the exact error message. I am using asterisk 1.2.10 on debian sarge (asterisk compiled from source NOT the debian packages). Currently I’ve got nat turned off and I’ve got the firewall setup to forward traffic destined for port 5060 to the asterisk server. I’ve tried it both ways (NAT on, NAT off, port forwarding, etc. with no luck). Any pointers or links will be greatly appreciated.
Thanks,
Craig Russell
AirDigitalNetwork.com
[general]
context=default ; Default context for incoming calls
bindport=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
domain=craig-russell.com ; Set default domain for this host
domain=asterisk
domain=192.168.1.13 ; Add IP address as local domain
autodomain=yes ; Turn this on to have Asterisk add local host
pedantic=no ; Enable slow, pedantic checking for Pingtel
videosupport=yes ; Turn on support for SIP video
disallow=all ; First disallow all codecs
allow=ulaw ; Allow codecs in order of preference
allow=ilbc ;
register => 8027121425@sip.broadvoice.com:password@sip.broadvoice.com/8027121425
externip = 64.192.35.61 ; Address that we’re going to put in outbound SIP messages
localnet=192.168.0.0/255.255.0.0; All RFC 1918 addresses are local networks
nat=no ; Global NAT settings (Affects all peers and users)
[8027121425]
; Turn off silence suppression in X-Lite (“Transmit Silence”=YES)!
; Note that Xlite sends NAT keep-alive packets, so qualify=yes is not needed
type=friend
context=default
callerid=“Craig Russell” <2000>
host=dynamic ; This device needs to register
user=8027121425
secret=craig
nat=yes ; X-Lite is behind a NAT router
canreinvite=no ; Typically set to NO if behind NAT
disallow=all
allow=gsm ; GSM consumes far less bandwidth than ulaw
allow=ulaw
allow=alaw
[sip.broadvoice.com]
type=peer
user=phone
host=sip.broadvoice.com
fromdomain=sip.broadvoice.com
fromuser=8027121425
username=8027121425
secret=password
insecure=very
context=default
authname=8027121425
dtmfmode=inband
dtmf=inband
canreinvite=no
qualify=no
exten => 8027121425,1,Answer()
exten => 8027121425,2,Playback(hello-world)
exten => 8027121425,3,Hangup()
Jul 21 11:04:28 NOTICE[2502]: chan_sip.c:5366 sip_reg_timeout: – Registration for '8027121425@sip.broadvoice.com@sip.broadvoice.com’ timed out, trying again (Attempt #19)
Retransmitting #2 (no NAT) to 147.135.20.128:5060:
REGISTER sip:sip.broadvoice.com SIP/2.0
Via: SIP/2.0/UDP 64.192.35.61:5060;branch=z9hG4bK19cc4fdb;rport
From: sip:8027121425@sip.broadvoice.com;tag=as4115312d
To: sip:8027121425@sip.broadvoice.com
Call-ID: 1fc8dc4f4de896927bd9f57f73355788@sip.broadvoice.com
CSeq: 123 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Authorization: Digest username="8027121425@sip.broadvoice.com", realm=“BroadWorks”, algorithm=MD5, uri=“sip:sip.broadvoice.com”, nonce=“BroadWorksXepwqmx92Ttbzxr2BW”, response=“17a32254aea32e9377b8f6bee837545f”, opaque="", qop=auth, cnonce=“5d75975d”, nc=00000010
Expires: 120
Contact: sip:8027121425@64.192.35.61
Event: registration
Content-Length: 0