Can't dial out!

okay ladies, and gents i have a serious question as to why i cannot dial out here. Incoming no problem outgoing no bueno

you’ll see static extension values in this particular config. I have tried dialing out with an IAX provider and a SIP provider so clearly i am jsut screwing it up.

extensions config first

[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no

[globals]
CONSOLE=Console/dsp				; Console interface for demo
;CONSOLE=Zap/1
;CONSOLE=Phone/phone0
IAXINFO=guest					; IAXtel username/password
;IAXINFO=myuser:mypass
TRUNK=Zap/g2					; Trunk interface
TRUNKMSD=1					; MSD digits to strip (usually 1 or 0)
;TRUNK=IAX2/user:pass@provider
;set IAX2 vars for FWD ; REPLACE THESE WITH YOUR SETTINGS
FWDNUMBER=XXXXX ; your calling number
FWDCIDNAME="biotch"; your caller id
FWDPASSWORD=password ; your password
FWDRINGS=sip/1002 ; the phone to ring
FWDVMBOX=1002 ; the VM box for this user

;[context]
;exten => _393.,1,SetCallerId,"JB"
;exten => _393.,2,Dial(IAX2/xxxxx:password@iax2.fwdnet.net/1002,60,r)
;exten => _393.,3,Congestion

;[fromiaxfwd]
;exten => ${FWDNUMBER},1,Dial(SIP/1002,20,r)
;exten => ${FWDNUMBER},2,Voicemail,u(1002)
;exten => ${FWDNUMBER},102,Voicemail,b(1002)

;[outbound-local]
;extend => _NXXNXXXXXX,1,Dial(SIP/${EXTEND:1}@broadvoice.com)
;extend => _NXXNXXXXXX,2,Congestion()
;extend => _NXXNXXXXXX,102,Congestion()

;[outbound-long-distance]
;extend => _1NXXNXXXXXX,1,Dial(SIP/${EXTEND:1}@broadvoice.com)
;extend => _1NXXNXXXXXX,2,Congestion()
;extend => _1NXXNXXXXXX,102,Congestion()


;[in-broadvoice]
;exten=> 301,1,Answer
;exten=> 301,2,Ringing
;exten=> 301,3,Wait(2)
;exten=> 301,4,Dial(SIP/301,30)
;exten=> 301,5,congestion()
;exten=> 301,102,busy()
;exten => 3109439035,1,Answer
;exten => 3109439035,2,Ringing
;exten => 3109439035,3,Wait(2)
;exten => 3109439035,4,Dial(SIP/301,60)
;exten => 3109439035,5,Congestion()
;exten => 3109439035,102,Congestion()

;[sip-internal]
;exten=> _XXXXXXX,1,SetCallerID,"3109439035"
;exten => _XXXXXXX,1,Dial(${OUTBOUND}/${EXTEN},tT)
;exten => _XXXXXXX,2,Congestion
;exten=> _XXXXXXX,2,Dial(SIP/301)
;exten=> _XXXXXXX,3,congestion()
;exten=> _XXXXXXX,102,busy()
;extend => _1NXXNXXXXXX,1,Dial(SIP/301)
;extend => _1NXXNXXXXXX,2,Congestion()
;extend => _1NXXNXXXXXX,102,Congestion()

[from-broadvoice]
;For incoming calls
;This extension line will ring SIP
;extension 1002 for 60 seconds then hang up. Modify as necessary to fit your dialplan
exten => 1002,1,Dial(SIP/1002,60,tr)
exten => 1002,2,hangup

;For outgoing calls


;Pattern match for local call plan, use appropriate pattern if on nationwide plan.
exten => _1NXXNXXXXXX,1,dial(SIP/1002,60)
exten => _1NXXNXXXXXX,2,congestion()
exten => _1NXXNXXXXXX,102,busy()

now SIP.conf

[general]
context=from-broadvoice
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
pedantic=no
disallow=all
allow=ulaw			
allow=ilbc			
allow=alaw
allow=gsm 
include=fromiaxfwd
port=5060
register => 3109439035:password@sip.broadvoice.com/1002

[iaxfwd]
type=user
context=fromiaxfwd
auth=rsa
inkeys=freeworlddialup

[sip.broadvoice.com]
type=friend
host=sip.broadvoice.com
user=phone
username=3109439035
secret=password
fromdomain=sip.broadvoice.com
fromuser=3109439035
insecure=very
context=from-broadvoice
dtmfmode=inband
canreinvite=no
qualify=yes

[xlite1]
username=1001
type=friend
secret=1001
callerid="uber" <1001>
host=dynamic			; This device needs to register
nat=no			; 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
;mailbox=1234@default,1233@default	; Subscribe to status of multiple mailboxes

;[sip_proxy]
;username=3109439035
;user=3109439035
;type=user
;secret=password
;nat=no
;insecure=very
;host=sip.broadvoice.com
;fromdomain=sip.broadvoice.com
;dtmfmode=inband
;dtmf=inband
;context=in-broadvoice

;[sip_proxy-out]
;username=3109439035
;user=phone
;type=peer
;secret=password
;Qualify=yes
;pedantic=no
;nat=no
;insecure=very
;fromuser=3109430035
;fromdomain=sip.broadvoice.com
;host=sip.broadvoice.com
;call-limit=10
;context=sip-internal
;canreinvite=no
;authname=3109439035

[1002]
username=1002
type=friend
secret=1002
qualify=yes
port=5060
nat=never
mailbox=301@default
host=dynamic
dtmfmode=auto
disallow=all
context=from-broadvoice
canreinvite=no
callerid="borja" <1002>
allow=g729
allow=g723.1
allow=gsm
allow=ulaw
allow=alaw

I know im close i jsut cant see whre im screwing this up…

Your outbound context reads
"EXTEND" which sould be “EXTEN” (remove the “D”)

No, that did nothing that context wasnt actually in use.
I basically get an error saing " if youdlike to make a call hung up and please try again" i changed my extensions config to reflect the following, however same issues cant dial out get same “if youd like to make a call hung up and please try again”

[code]
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no

[globals]
CONSOLE=Console/dsp ; Console interface for demo
;CONSOLE=Zap/1
;CONSOLE=Phone/phone0
IAXINFO=guest ; IAXtel username/password
;IAXINFO=myuser:mypass
TRUNK=Zap/g2 ; Trunk interface
TRUNKMSD=1 ; MSD digits to strip (usually 1 or 0)
;TRUNK=IAX2/user:pass@provider
;set IAX2 vars for FWD ; REPLACE THESE WITH YOUR SETTINGS
FWDNUMBER=xxxxx ; your calling number
FWDCIDNAME=“biotch”; your caller id
FWDPASSWORD=password ; your password
FWDRINGS=sip/1002 ; the phone to ring
FWDVMBOX=1002 ; the VM box for this user

;[context]
;exten => _393.,1,SetCallerId,“JB”
;exten => _393.,2,Dial(IAX2/xxxxxx:password@iax2.fwdnet.net/1002,60,r)
;exten => _393.,3,Congestion

;[fromiaxfwd]
;exten => ${FWDNUMBER},1,Dial(SIP/1002,20,r)
;exten => ${FWDNUMBER},2,Voicemail,u(1002)
;exten => ${FWDNUMBER},102,Voicemail,b(1002)

;[outbound-local]
;extend => _NXXNXXXXXX,1,Dial(SIP/${EXTEN:1}@sip.broadvoice.com)
;extend => _NXXNXXXXXX,2,Congestion()
;extend => _NXXNXXXXXX,102,Congestion()

;[outbound-long-distance]
;extend => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN:1}@sip.broadvoice.com)
;extend => _1NXXNXXXXXX,2,Congestion()
;extend => _1NXXNXXXXXX,102,Congestion()

;[in-broadvoice]
;exten=> 301,1,Answer
;exten=> 301,2,Ringing
;exten=> 301,3,Wait(2)
;exten=> 301,4,Dial(SIP/301,30)
;exten=> 301,5,congestion()
;exten=> 301,102,busy()
;exten => 3109439035,1,Answer
;exten => 3109439035,2,Ringing
;exten => 3109439035,3,Wait(2)
;exten => 3109439035,4,Dial(SIP/301,60)
;exten => 3109439035,5,Congestion()
;exten => 3109439035,102,Congestion()

;[sip-internal]
;exten=> _XXXXXXX,1,SetCallerID,“3109439035”
;exten => _XXXXXXX,1,Dial(${OUTBOUND}/${EXTEN},tT)
;exten => _XXXXXXX,2,Congestion
;exten=> _XXXXXXX,2,Dial(SIP/301)
;exten=> _XXXXXXX,3,congestion()
;exten=> _XXXXXXX,102,busy()
;extend => _1NXXNXXXXXX,1,Dial(SIP/301)
;extend => _1NXXNXXXXXX,2,Congestion()
;extend => _1NXXNXXXXXX,102,Congestion()

[from-broadvoice]
;For incoming calls
;This extension line will ring SIP
;extension 1002 for 60 seconds then hang up. Modify as necessary to fit your dialplan
exten => 3109439035,1,Answer
exten => 3109439035,2,Ringing
exten => 3109439035,3,Wait(2)
exten => 3109439035,4,Dial(SIP/1002,60)
exten => 3109439035,5,Congestion()
exten => 3109439035,102,Congestion()

;For outgoing calls

exten => _1NXXNXXXXXX,1,Dial(SIP/3109439035:password@sip.broadvoice.com,30,tr)
exten => _1NXXNXXXXXX,2,congestion()
exten => _1NXXNXXXXXX,102,busy()

;[test]
;exten => _1XXXXXXXXXX,1,DIAL(IAX2/j_aguilar01@teliax/${EXTEN},30,tr)
;exten => _1NXXNXXXXXX,2,congestion()
;exten => _1NXXNXXXXXX,102,busy()

;exten => 9515439337,1,Answer()
;exten => 9515439337,2,Ringing
;exten => 9515439337,3,Wait()
;exten => 9515439337,4,DIAL(SIP/1001,30)
;exten => 9515439337,5,Congestion()
;exten => 9515439337,102,Congestion()

[in]
exten => 9515439337,1,Answer()
exten => 9515439337,2,Ringing
exten => 9515439337,3,Wait()
exten => 9515439337,4,DIAL(SIP/1001,30)
exten => 9515439337,5,Congestion()
exten => 9515439337,102,Congestion()

[out]
exten => _1NXXNXXXXXX,1,Answer()
exten => _1NXXNXXXXXX,2,Ringing,5
exten => _1NXXNXXXXXX,3,DIAL(SIP/teliax/1001,30,tr)
exten => _1NXXNXXXXXX,102,busy()

Looks like from the sip.conf that the phones go to this context try changing the dial under outgoing calls

[from-broadvoice]
;For incoming calls
;This extension line will ring SIP
;extension 1002 for 60 seconds then hang up. Modify as necessary to fit your dialplan
exten => 3109439035,1,Answer
exten => 3109439035,2,Ringing
exten => 3109439035,3,Wait(2)
exten => 3109439035,4,Dial(SIP/1002,60)
exten => 3109439035,5,Congestion()
exten => 3109439035,102,Congestion()

;For outgoing calls

exten => _1NXXNXXXXXX,1,Dial (Sip/sip.broadvoice.com/${EXTEN})
exten => _1NXXNXXXXXX,2,congestion()
exten => _1NXXNXXXXXX,102,busy()

call fails if i do that…
i get te folowing in console

 -- Executing Dial("SIP/1002-a14d", "SIP/sip.broadvoice.com/1002|30") in new
stack
    -- Called sip.broadvoice.com/1002
    -- Got SIP response 500 "Internal Server Error" back from 147.135.8.128
    -- SIP/sip.broadvoice.com-13f7 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing Congestion("SIP/1002-a14d", "") in new stack
  == Spawn extension (from-broad
okay thats what i actually get
howeer the network isnt busy if i use xlite to connect directly to sip provider it works

the extension at the end causes problems

Executing Dial(“SIP/1002-a14d”, “SIP/sip.broadvoice.com/1002|30”) in new
stack

I dont use broad voice but looks like it dialed 1002 is that the phone number you dialed? Maybe DTMF Problem?

no thats not the number i dial for sure 1002 actualy is the extension which is what i dont get why is it posting my extension there.

Weired I dont use sip but have played with it a few times I use IAX termination for Longdistance here what it look like when I make a call

Executing Dial(“Zap/38-1”, “IAX2/netlD/1270XXXXXXX”) in new stack

Zap 38 being the line Im calling from netld being context for iaxprovider and 1270XXXXXXX the number I dialed

Do you have another number you can call and test maybe a cellphone the you could

exten => _1NXXNXXXXXX,1,Dial (Sip/sip.broadvoice.com/cellphonenumber)

The when you dial a 1NxxNXXXXXX it should dial your cellphone

okay i jsut finished load of a second box, and it work… so its looks liek this is a bug and i dont kowhwot its happening anyway my config work i was jsut gonig nuts cause of an error with loaf