;zapata.conf [channels] language=en context=public signalling=fxs_ks callerid=yes usecallerid=yes echocancel=yes echocancelwhenbridged=yes channel => 1 [general] static=yes writeprotect=no [globals] DIALOUTANALOG=Zap/1 CALLFILENAME=foo FOO=foo [public] ; Incoming calls with no destination land here (usually from the PSTN) ; make incoming calls ring on certain phones ; Give access to outgoing lines or internal extensions if authenticated via ; voicemail since authentication is required by that system ; Ring SIP phones that are "general" lines. ; If the lines ring for >20 seconds, play an amusing message and ; then dial the "u"navailable voicemail box. ; If the lines are busy, dial the "b"usy voicemail box. ; exten => s,1,noop(${CALLERIDNUM}) exten => s,2,wait(10) exten => s,3,VoiceMail(u100) exten => s,4,Hangup ; ; ; Dial 2500 from any phone to go to voicemail system ; exten => 2500,1,Wait,2 exten => 2500,2,VoicemailMain exten => 2500,3,Hangup ; ; ; Not all fax machines/fax modems send a fax tone when calling. ; If we get a call from one of those then we can't detect that it's a fax call. ; This only works for devices on Zap channels (Digium cards). ; exten => fax,1,Goto(22,1) ; Hang up the line if the caller doesn't do anything ; exten => t,1,Hangup ; Provide a voicemail * button extension ; exten => a,1,VoicemailMain ; ; NANPA;North American Numbers dialed as 1 + area code ; For example, the New York Public Library dialed as 12123400849 ; 1 (North American call) 212 (New york area code) 3400849 (library's phone ; number) ; WORLD: International Numbers dialed as 011+country code + number ; For example , the Tate Modern Museum in London, U.K. is dialed as ; 011442078878000 ; 011 (International call) 44 (U.K. country code) 2078878000 (museum's number) ; finally, the number just before @voipjet in the Dial string is your VoipJet ; userid# ; [forced-analog] ; This is for failure-case outbound dialing. If for some reason ; the outbound SIP connections aren't working, but aren't giving errors ; (i.e.: my path to larger Internet is dead) then I can short-circuit ; my way to the local analog dial port by dialing "91npaxxxyyyy" and ; the call will be shunted out the analog port. This is for when ; the inevitable cry of "IT DOESN'T WORK!!" is screamed from the ; living room by She Who Makes Calls. ; exten => _9.,1,Dial(${DIALOUTANALOG}/${EXTEN:1},70,Tt) exten => _9.,2,Macro(fastbusy) exten => _9.,102,Macro(fastbusy) ; [information] ; If the user is dialing information (411) then send call ; directly out to the analog line, unless busy, then ; dump at an unavailable recording ; ; If analog line errors out and goes to step 2, play ; fastbusy macro. ; exten => 411,1,Dial(${DIALOUTANALOG}/${EXTEN} exten => 411,2,Macro(fastbusy) exten => 411,102,Playback(ss-noservice) exten => 411,103,Macro(fastbusy) ; [pstn-local] ; Next, check for numbers that are available "locally" out of ; my analog line connected to the house. In area code 503, ; you must dial an area code in front of all numbers, and ; a "1" is not possible in front of local numbers. Annoying. ; ; Thus, this rule matches "15035551212" but will dial "5035551212" ; ; If the first line (DIALOUTANALOG) is busy, then fail over ; and dial out the iconnecthere SIP peer. This ensures harmony ; in the household when She is one one line and I require the phone. :) ; ; Note that the iconnect Dial doesn't strip the first digit, since ; we need the single "1" prefix in those outbound calls. ; ; The list is duplicated for area code "604". ; exten => _1604.,1,Dial(${DIALOUTANALOG}/${EXTEN:1}) exten => _1604.,2,Macro(fastbusy) exten => _1604.,102,Macro(dialiconnect,${EXTEN},70) ; disallow=all ; Prevent all codecs... allow = ulaw ; ...except G.711 ulaw jitterbuffer=yes ; Jitter buffer enabled... dropcount=1 ; ..to drop at most .5% of the Voip Packets