; All calls that have a “1″ at the front are North American
; dialing prefixes, and should be sent to my iconnecthere account.
;
; This is normally the last inclusion context in a larger context,
; since everything “more specific” should have been picked out of the
; dial plan before reaching this point.
;
; These guys have a decent deal on LD minutes; something like $4.95
; for 400 minutes of LD anywhere in the US lower 48 states, and
; they have international plans as well.
;
; They have had some really wacky problems with Asterisk lately, where
; I’ve been getting strange crosstalk RTP sessions from other people’s
; conversations. I thought that crosstalk was something I abandoned
; when I moved away from POTs lines, but apparently not. Anyway, for
; $4.95, it’s not a bad deal.
;
; They also offer optional inbound dialing; see other parts of
; this config file for notes on that.
;
; see sip.conf for details on configuration of outbound iconnecthere
; SIP peer and configs
;
; If we get an error on the dial or if we get a busy, play a congestion tone.
;
exten => _1XXXXXXXXXX,1,Macro(dialiconnect,${EXTEN},70)
exten => _1XXXXXXXXXX,2,Macro(fastbusy)
exten => _1XXXXXXXXXX,103,Macro(fastbusy)
[iax-outbound]
; This context is a hack to get calls to transfer to my “remote” sites, which
; are either remote offices or friends who have kept their dial plans
; in some way non-overlapping with mine. I should be using the “switch”
; parameter for these, but I prefer static mappings for the time being…
;
; I use airport names as standard naming convention, because I’m from
; an ISP background where standardization of large POP layouts is
; fairly important. I use the closest airport to the geographic location
; of the Asterisk server in question. Sometimes this is a large airport
; but it can also be small
;
; All 26xx extensions go to the “HMB1″ location (Half Moon Bay, CA)
exten => _26.,1,Dial(IAX/pdx1@hmb1/${EXTEN})
;
; All 24xx extensions go to the sjc1 location (San Jose, CA)
exten => _24.,1,Dial(IAX/pdx1@sjc1/${EXTEN})
;
; Any calls to 14109850123 go to my testbed platform in Baltimore #1 (Baltimore, MD)
; This is a special case so I can ensure my monkeys are answering.
exten => 14109850123,1,Dial(IAX/pdx1@bwi1/${EXTEN})
;
; All _225x extensions go to the Baltimore location #2 (Baltimore, MD)
exten => _225.,1,Dial(IAX/pdx1@bwi2/${EXTEN})
; The [inbound-analog] context is where calls coming in from the
; zaptel X100P analog circuit are passed. Right now, this
; is a very simple dial plan that rings my two SIP phones.
;
; First, send the call through Zapateller. If there’s no callerid,
; the system will answer the line, play a quick two-tone “re-order”
; signal which will cause many telemarketer systems to register the
; number as “out of order” and remove it from their lists. If the
; caller is a human, they’ll jump to the next step…
;
; Next, if desired, start recording the call with the record-on
; macro. See my notes on legality. Make sure to clean up the
; calls with the record-cleanup macro in the “h” extension.
; Since I don’t have the “called” number at this point (I only
; have “s”) I will fill in what normally is ${EXTEN} in the
; macro call with the static ${MYHOMEPHONE} variable.
; Recording commented out and replaced by NoOp.
;
; The PrivacyManager will only work if the caller has no caller ID
; information in the inbound call. The PrivacyManager application
; will then give the caller 3 attempts to enter in a 10 digit phone
; number. That number then becomes the CallerID, and the call
; process is continued.
;
; Ring both SIP phones in the house that are “general” lines.
;
; If the lines ring for >20 seconds, play an amusing message and
; then dial the “u”navaialable voicemail box.
; If the lines are busy, dial the “b”usy voicemail box.
;
; See the file zapata.conf for how to configure the Zaptel X100P
; to forward calls to this context when called
;
[inbound-analog]
exten => s,1,Zapateller(answer|nocallerid)
exten => s,2,NoOp
;exten => s,2,Macro(record-on,${MYHOMEPHONE},${CALLERIDNUM})
exten => s,3,PrivacyManager
exten => s,4,Dial(${PHONE1}&${PHONE2},15,Ttm)
exten => s,5,Answer
exten => s,6,Wait(1)
exten => s,7,Playback(new/hello)
exten => s,8,Playback(new/marisa-john-not-in-momnt)
exten => s,9,Playback(new/theyre-rattlesnake-wrstling)
exten => s,10,Voicemail(u${PHONE1VM})
exten => s,11,Hangup
exten => s,108,Wait(2)
exten => s,109,Voicemail(b${PHONE1VM})
exten => s,110,Hangup
exten => h,1,Macro(record-cleanup)
; Inbound calls from Gnophone (also known as “iaxtel”) are routed
; to the [from-iaxtel] context. See the iax.conf file to see
; how this is done.
;
; I treat these calls just like most of my [from-sip] calls, and
; dump them here.
;
; Yes, I got 7005551212 in their dialplan; that’s not a ficticious number.
;
[from-iaxtel]
exten => s,1,Dial(${PHONE1},15)
exten => s,2,Voicemail(u${PHONE1VM})
exten => s,3,Hangup
exten => s,102,Voicemail(b${PHONE1VM})
exten => s,103,Hangup
exten => 17005551212,1,Dial(${PHONE1},15)
exten => 17005551212,2,Voicemail(u${PHONE1VM})
exten => 17005551212,3,Hangup
exten => 17005551212,102,Voicemail(b${PHONE1VM})
exten => 17005551212,103,Hangup


