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…