Hey thanks to Bwilks, I am now getting this when I call outbound. The below code is blurb from the asterisk console when I call from my softphone to a localnumber. Is this something to do with my provider or is this to do with my outbound plan which looks likes my below example.
Asterisk blurb:
-- Executing [3901550@default:1] Dial("SIP/4001-b7805ba0", "IAX2/FuguPhoneOUT/901550") in new stack
-- Called FuguPhoneOUT/901550
-- Call accepted by 216.187.103.188 (format ulaw)
-- Format for call is ulaw
-- IAX2/FuguPhoneOUT-7 answered SIP/4001-b7805ba0
-- Hungup 'IAX2/FuguPhoneOUT-7'
== Spawn extension (default, 3901550, 1) exited non-zero on 'SIP/4001-b7805ba0'
The number i am trying to call is 3901550, what would hte outbound look like if i were to call 12503901550 which is how we call long distance to this area in Canada too?
;You need the _ to tell Asterisk you are pattern matching
exten => _1NXXNXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:0})
exten => _1NXXNXXXXXX,n,Congestion()
exten => _1NXXNXXXXXX,n,Hangup()
Dowload this book from Digium on page 137 are the details on pattern matching.
Bwilks, you are a god among men. Thanks very much, both of these two small fixes and additional info have saved me from giant headaches. In the next few days I might have a couple questions for you regarding some of the incomign routing I am setting up.