# ----------------------------------------------------------- # /etc/zaptel.conf # # For more options, see /usr/src/zaptel/zaptel.conf.sample # but most of the options shown in that file are for T1 or # PRI implementations, which do not apply in our simple # demonstration. # fxsks = 1 loadzone = us defaultzone = us # # Zaptel Configuration File # This file is parsed by the Zaptel Configurator, ztcfg # First come the span definitions, in the format # span=,,,,[,yellow] # The timing parameter determines the selection of primary, secondary, and # so on sync sources. If this span should be considered a primary sync # source, then give it a value of "1". For a secondary, use "2", and so on. ; /etc/asterisk/zapata.conf ; ; This is the bare bones of what is required to get your X100P ; card working on a "normal" line provided by a local phone ; carrier in North America. For more details on all options, ; see /usr/src/asterisk/configs/zapata.conf.sample but I would ; strongly suggest starting simple with the bare minimum of ; configs and working up from there - PSTN telephony interfaces ; are notoriously touchy with the large number of features ; they offer. ; [channels] language=en context=public signalling=fxs_ks usecallerid=yes echocancel=yes echocancelwhenbridged=yes channel => 1 [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,Zapateller(answer|nocallerid) exten => s,2,Dial(${PHONE1}&${PHONE2},15,Ttm) exten => s,3,Voicemail(u${GENERALVM}) exten => s,4,Hangup exten => s,103,Voicemail(b${GENERALVM}) exten => s,104,Hangup ; If we detect a fax tone send call to extension 22 priority 1 ; 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 [root@localhost leonardo]# modprobe wcfxo [root@localhost leonardo]# modprobe zaptel [root@localhost leonardo]# ztcfg -v Zaptel Configuration ====================== 1 channels configured. [root@localhost leonardo]# asterisk -c Asterisk CVS-HEAD-12/31/04-15:30:58, Copyright (C) 1999-2004 Digium. Written by Mark Spencer ========================================================================= [ Booting..........Jan 5 09:21:24 WARNING[4971]: config.c:356 cfg_process: No ' =' (equal sign) in line 388 of /etc/asterisk/indications.conf ..........Jan 5 09:21:24 WARNING[4971]: chan_skinny.c:2602 reload_config: Unabl e to get our IP address, Skinny disabled .Jan 5 09:21:24 WARNING[4971]: chan_oss.c:240 sound_thread: Read error on sound device: Resource temporarily unavailable ....................Jan 5 09:21:25 NOTICE[4971]: app_queue.c:1747 reload_queue_ members: Queue members sucessfully reloaded from database. .............................................................................. ] Asterisk Ready. *CLI>