Ok. I must be an idiot. I just can’t get Asterisk to work at all. Sometimes my extensions work, sometimes they don’t even connect (right now they don’t seem to want to connect) but even worse, I’ve never had inbound / outbound calls working. Hopefully someone can help. I’ve pasted my sip.conf and extensions.conf for reference. Any help would be fantastic! Feel free to email me at m.moogATthemoog.com as well as posting here. I’d love to get this going!
Some notes: When calling the number from an outside line, I get a “your call can not be completed as dialed 2ii”. Right now, none of tthe softphones will connect and I have no idea why. I notice in one of the configs it mentions a broadvoice trunk… I only see a zap trunk in the system and not matter how many times I delete it it won’t go away. Help!!
sip.conf:
[general]
context=sip.broadvoice.com
pedantic=no
type=user
bindport=5060
bindaddr=0.0.0.0
realm=192.168.100.8
srvlookup=yes
tos=reliability
maxexpiry=180
defaultexpiry=160
musicclass=default
;videosupport=no ;some providers such as broadvoice don’t support this, if enabled no outbound calls will go through
outgoinglimit=2
incominglimit=9999
disallow=all
disallow=gsm
allow=ulaw
allow=alaw
allow=all
;qualify=yes
host=dynamic
nat=yes
canreinvite=no
externip=192.168.100.250
localnet=192.168.100.250/255.255.255.0
register => 4149210030@sip.broadvoice.com:ViTGNFDzgD:4149210030@sip.broadvoice.com
register => 4149210030@sip.broadvoice.com:ViTGNFDzgD:4149210030@sip.broadvoice.com
;Definitions of locally connected SIP phones.
[outbound-broadvoice] ;outbound context
type=peer
user=phone
host=sip.broadvoice.com
fromdomain=sip.broadvoice.com
fromuser=4149210030
secret=xxxxx
username=4149210030
insecure=very
context=sip.broadvoice.com
authname=4149210030
dtmfmode=inband
dtmf=inband
canreinvite=no ;Disable canreinvite if you are behind a NAT
nat=yes
[sip.broadvoice.com] ;inbound context
type=user
user=phone
host=sip.broadvoice.com
fromdomain=sip.broadvoice.com
fromuser=4149210030
secret=xxxxx
username=4149210030
insecure=very
context=sip.broadvoice.com
authname=4149210030
dtmfmode=rfc2833
dtmf=rfc2833
canreinvite=no
nat=yes
extensions.conf
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
[globals]
include=>inbound
include=>outbound
[sip.broadvoice.com] ;This is going to be your inbound trunk, telling all incoming calls where to go
exten=>14149210030 ,1,Goto(extensions|s|1)
exten=>4149210030 ,1,Goto(extensions|s|1)
exten=>9210030 ,1,Goto(extensions|s|1)
[extensions]
include=>international
exten=>s,1,Dial(SIP/6000)
exten=>s,2,Voicemail,u6000@default
exten=>_XXXX,1,Dial(SIP/${EXTEN},30)
exten=>_XXXX,2,Voicemail,u${EXTEN}@default
exten=>*86,1,VoicemailMain,101 ;To check your voicemail by dialing *86
exten=>9999,1,VoicemailMain,101 ;To check your voicemail by dialing 9999
[international]
exten=>_NXXXXXX,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=>_NXXXXXX,3,congestion()
exten=>_NXXXXXX,102, busy()
exten=>_NXXNXXXXXX,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=>_NXXNXXXXXX,3,congestion()
exten=>_NXXNXXXXXX,102, busy()
exten=>_1NXXNXXXXXX,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=>_1NXXNXXXXXX,3,congestion()
exten=>_1NXXNXXXXXX,102, busy()
; This extended Dial Plan will enable International Dialing on The Unlimited World PLUS Plan
; This dial plan enables World Plus countries
; there are no built in ways to prevent calls to cell phone users (except in germany where Cell ;phone prefix’s are
; carried by 1 and has been accounted for)
exten=_01130.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01131.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01132.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01133.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01134.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_011351.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_011352.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_011353.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_011378.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01139.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01141.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_011420.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01143.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01144.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01145.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01146.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01147.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01148.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01149[2-9].,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01154.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01155.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01156.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01160.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01161.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01164.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01165.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01181.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01182.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_011852.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01186.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_011886.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_011972.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_011.,2,congestion() ; No answer, nothing
exten=_011.,102,busy() ; Busy