[intern-post]
; Make sure that if we are recording the channel, we properly clean up the
; recorded files after a hangup.
exten => h,1,Macro(record-cleanup)
; Send calls to operator (private PSTN gateway, analog line in my house)
include => operator
; Send 911 calls to emergency outbound (private PSTN gateway, analog line in my house)
include => e911
; If someone dials a “9″ in front of their number, send out via analog (private PSTN gateway)
include => forced-analog
; If someone dials an “8″ in front of their number, send to inoc-dba (semi-private directory)
include => inoc-dba-out
; If someone dials a “7″ in front of their number, send to Free World Dialup (free directory)
include => fwd-out
; if someone dials a “6″ in front of their number, send out via iconnect (commercial PSTN gateway)
include => iconnect-forced
; if someone dials a “5″ in front of their number, send out via coloco (private PSTN gateway)
include => coloco-forced
; if someone dials “411″ send them to the appropriate information operator via analog (private PSTN gateway)
include => information
; if someone dials “3″ in front of their number, send out via iptel (free directory)
include => iptel-forced
; handle passing calls to (mostly) _22. numbers via my own IAX peer network (private pbx-pbx network)
; Others probably want to comment this out.
include => iax-outbound
; If someone dials one of the 22xx numbers that are local (SIP phones in my house)
include => local
; If someone dials a number in the local (free) area codes for this server (analog line for my house)
include => pstn-local
; If someone dials a number in the local (toll) area for this server (11NPAXXXYYYY) (analog line for my house)
include => pstn-local-toll
; If someone dials a toll-free number (analog line for my house)
include => toll-free
; If someone dials a number that is local to my Coloco gateway, send it there (private PSTN gateway)
; Others probably want to comment this out.
include => coloco-local
; If someone dials a “1700″ number, send them to the IAXTEL server (free directory)
include => iaxtel-out
[operator]
; Handle calls to the Operator (“0″)
;
; All Operator calls go to the analog line, since
; that is the only place that there is an operator
; on duty. At some point, this extension will lead
; a particular person in the office.
;
; Note that one can reach the operator by dialing “90″
; according to the pattern sets below, but I include
; just a single “0″ as this system will be used by
; persons who are not used to dialing prefixes for
; their phone calls.
;
; I have to build an international dialing plan
; shortly to use a different iconnect account, which
; has international rate plans. Currently, the system
; simply does not allow interational dialing (011…)
; unless it’s sent out to the local analog via the “9″
; prefix below.
;
exten => 0,1,Dial(${DIALOUTANALOG}/${EXTEN},70)
exten => 0,2,Macro(fastbusy)
exten => 0,102,Playback(ss-noservice)
exten => 0,103,Macro(fastbusy)


