Thanks to the help hear, I found my outgoing call origination problem with Broadvoice. But somehow when I got that corrected, I lost my abilityu to dial extensions. It says in the asterisk CLI that “extension XXX not found”.
Sip peers shows all extensions registered, and they can all make outgoing calls thru the provider. Do I need something else in my dialplan? Note that before the outoing was working, the extensions worked fine. I am confused why they worked, why they do not now, and what to do!
Here is my sip and extensions:
sip.conf
[authentication]
[general]
disallow=all
allow = ulaw
allow=alaw
allow=gsm
allow=g729
allowoverlap = no
authname = 2122021963
bindaddr = 0.0.0.0
bindport = 5060
context = default
register = 2122021963@sip.broadvoice.com:Password:2122021963@sip.broadvoice.com/707
registerattempts = 20
registertimeout = 30
callerid = “ESFVCI Support”
[sip.broadvoice.com]
disallow=all
allow = ulaw
allow=alaw
allow=gsm
allow=g729
authname=2122021963
context=from-broadvoice
dtmfmode=inband
fromdomain=sip.broadvoice.com
fromuser=2122021963
host=sip.broadvoice.com
;insecure=very
secret=password
type=peer
user=phone
username=2122021963
[706]
callerid = "ESFVCI Support"
canreinvite = no
dtmfmode = rfc2833
host = dynamic
nat = no
secret =
username = 706
type = friend
[708]
type = friend
host = dynamic
dtmfmode = rfc2833
nat = no
username = 708
secret = canreinvite = no
callerid = “ESFVCI Support”
[707]
type = friend
host = dynamic
dtmfmode = rfc2833
nat = no
username = 707
secret =
canreinvite = no
callerid = “VCI”
end sip.conf
============================
begin extensions.conf
[general]
static = yes
writeprotect = no
userscontext = default
clearglobalvars = yes
[default]
; from broadvoice support docs:
exten => _1NXXNXXXXXX, 1, dial(SIP/${EXTEN}@sip.broadvoice.com,30)
exten => _1NXXNXXXXXX, 2, congestion()
exten => _1NXXNXXXXXX, 102, busy()
; end broadvoice docs
[DID_trunk_1]
include = DID_trunk_1_default
[DID_trunk_1_default]
include = DLPN_DialPlan1
[CallingRule_Rule1]
; not real sure how or why I put this in, since using broadvoice for
; all outbound, there is no backup trunk
exten = 1NXXNXXXXXX,1,Macro(trunkdial-failover-0.3,${trunk_1}/${EXTEN:0},trunk_1,)
[DLPN_DialPlan1]
include = CallingRule_Rule1
include = pagegroups
include = conferences
include = default
[from-broadvoice]
; i think the incoming ivr will go here
[pagegroups]
exten = 771,1,Macro(pagingintercom,SIP/706&SIP/708,d)
[conferences]
exten = 751,1,MeetMe(${EXTEN},MsIx)
exten = 752,1,MeetMe(751,MsIxaA)
[globals]
CONSOLE = Console/dsp ; Console interface for demo
;CONSOLE=DAHDI/1
;CONSOLE=Phone/phone0
IAXINFO = guest ; IAXtel username/password
TRUNK = DAHDI/G2 ; Trunk interface
TRUNKMSD = 1 ; MSD digits to strip (usually 1 or 0)
FEATURES =
DIALOPTIONS =
RINGTIME = 20
FOLLOWMEOPTIONS =
PAGING_HEADER = Intercom
GLOBAL_OUTBOUNDCID = 2122021963
GLOBAL_OUTBOUNDCIDNAME = VCI-ESF
trunk_1 = SIP/trunk_1
CID_trunk_1 = VCI-ESF
CID_707 = 707
[macro-stdexten]
; -------------------------------------------------------
; no idea why need this, not referenced that I can find,
; but if i delete it the whole system fails to work
; ----------------------------------------------------------
exten = s,1,Set(_DYNAMIC_FEATURES=${FEATURES})
exten = s,2,GotoIf($["${FOLLOWME${ARG1}}" = “1”]?5:3)
exten = s,3,Dial(${ARG2},${RINGTIME},${DIALOPTIONS})
exten = s,4,Goto(s-${DIALSTATUS},1)
exten = s,5,Macro(stdexten-followme,${ARG1},${ARG2})
exten = s-NOANSWER,1,Voicemail(${ARG1},u)
exten = s-NOANSWER,2,Goto(default,s,1)
exten = s-BUSY,1,Voicemail(${ARG1},b)
exten = s-BUSY,2,Goto(default,s,1)
exten = _s-.,1,Goto(s-NOANSWER,1)
exten = a,1,VoicemailMain(${ARG1})
[macro-stdexten-followme]
; see note above about deleting
exten = s,1,Answer
exten = s,2,Dial(${ARG2},${RINGTIME},${DIALOPTIONS})
exten = s,3,Set(__FMCIDNUM=${CALLERID(num)})
exten = s,4,Set(__FMCIDNAME=${CALLERID(name)})
exten = s,5,Followme(${ARG1},${FOLLOWMEOPTIONS})
exten = s,6,Voicemail(${ARG1},u)
exten = s-NOANSWER,1,Voicemail(${ARG1},u)
exten = s-BUSY,1,Voicemail(${ARG1},b)
exten = s-BUSY,2,Goto(default,s,1)
exten = _s-.,1,Goto(s-NOANSWER,1)
exten = a,1,VoicemailMain(${ARG1})
[macro-pagingintercom]
exten = s,1,SIPAddHeader(Alert-Info: ${PAGING_HEADER})
exten = s,2,Page(${ARG1},${ARG2})
exten = s,3,Hangup
[ringgroups]
[queues]
[voicemenus]
[voicemailgroups]
[directory]
[page_an_extension]
[macro-trunkdial-failover-0.3]
; see note above about deleting
exten = s,1,GotoIf($[${LEN(${FMCIDNUM})} > 6]?1-fmsetcid,1)
exten = s,2,GotoIf($[${LEN(${GLOBAL_OUTBOUNDCIDNAME})} > 1]?1-setgbobname,1)
exten = s,3,Set(CALLERID(num)=${IF($[${LEN(${CID_${CALLERID(num)}})} > 2]?${CID_${CALLERID(num)}}:)})
exten = s,n,GotoIf($[${LEN(${CALLERID(num)})} > 6]?1-dial,1)
exten = s,n,Set(CALLERID(all)=${IF($[${LEN(${CID_${ARG3}})} > 6]?${CID_${ARG3}}:${GLOBAL_OUTBOUNDCID})})
exten = s,n,Goto(1-dial,1)
exten = 1-setgbobname,1,Set(CALLERID(name)=${GLOBAL_OUTBOUNDCIDNAME})
exten = 1-setgbobname,n,Goto(s,3)
exten = 1-fmsetcid,1,Set(CALLERID(num)=${FMCIDNUM})
exten = 1-fmsetcid,n,Set(CALLERID(name)=${FMCIDNAME})
exten = 1-fmsetcid,n,Goto(1-dial,1)
exten = 1-dial,1,Dial(${ARG1})
exten = 1-dial,n,Gotoif(${LEN(${ARG2})} > 0 ?1-${DIALSTATUS},1:1-out,1)
exten = 1-CHANUNAVAIL,1,Dial(${ARG2})
exten = 1-CHANUNAVAIL,n,Hangup()
exten = 1-CONGESTION,1,Dial(${ARG2})
exten = 1-CONGESTION,n,Hangup()
exten = 1-out,1,Hangup()
end extensions.conf
Thanks!