Extension.conf, iax.conf and outbound trunk question

Hey everyone,
I am configuring a Asterisk 1.4.13 server on Fedora core and I am having difficulty figuring out the outbound trunk and associative information. This is what I have so far:

extensions.conf

[outbound]
exten => _9NXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})
exten => _9NXXXXXX,n,Congestion()
exten => _9NXXXXXX,n,Hangup()

exten => 911,1,Dial(${OUTBOUNDTRUNK}/911)
exten => 9911,1,Dial(${OUTBOUNDTRUNK}/911

iax.conf - Part of it anyways… just the info from the provider

register= UserName:Passwrd@hanuman.fuguphone.net

[FuguPhoneOUT]
username=Username
type=peer
secret=Password
qualify=5000
nat=yes
insecure=very
host=hanuman.fuguphone.net
dtmfmode=rfc2833
disallow=all
context=outbound ( <-- this is where you adjust context to match your inbound/outbound dialplan)
canreinvite=no
allow=ulaw

[FuguPhoneIN]
username=Username
type=user
secret=Password
qualify=5000
nat=yes
insecure=very
host=hanuman.fuguphone.net
dtmfmode=rfc2833
disallow=all
context=incoming2 ( <-- this is where you adjust context to match your inbound/outbound dialplan)
canreinvite=no
allow=ulaw

Any help would be amazing, so I can set up the outbound calling to begin with :smile:
thanks,

Ronnie

Hi,

If your are using variables like this you need an entry in [globals]

;extensions.conf
[globals]
OUTBOUNDTRUNK=IAX2/FuguPhoneOUT ;${OUTBOUNDTRUNK}

[outbound]
exten => _9NXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})
exten => _9NXXXXXX,n,Congestion()
exten => _9NXXXXXX,n,Hangup()

exten => 911,1,Dial(${OUTBOUNDTRUNK}/911)
exten => 9911,1,Dial(${OUTBOUNDTRUNK}/911)

;iax.conf
register= UserName:Passwrd@hanuman.fuguphone.net

[FuguPhoneOUT]
username=Username
type=peer
secret=Password
qualify=5000
nat=yes
insecure=very
host=hanuman.fuguphone.net
dtmfmode=rfc2833
disallow=all
context=outbound ( <-- this is where you adjust context to match your inbound/outbound dialplan)
canreinvite=no
allow=ulaw

[FuguPhoneIN]
username=Username
type=user
secret=Password
qualify=5000
nat=yes
insecure=very
host=hanuman.fuguphone.net
dtmfmode=rfc2833
disallow=all
context=incoming2 ( <-- this is where you adjust context to match your inbound/outbound dialplan)
canreinvite=no
allow=ulaw