;autogenerated by /usr/sbin/wancfg_dahdi do not hand edit ;autogenrated on 2008-11-07 ;Dahdi Channels Configurations ;For detailed Dahdi options, view /etc/asterisk/chan_dahdi.conf.bak [trunkgroups] [channels] context=default usecallerid=yes hidecallerid=no callwaiting=no usecallingpres=yes callwaitingcallerid=no threewaycalling=no transfer=yes canpark=yes cancallforward=no callreturn=no echocancel=yes echocancelwhenbridged=no relaxdtmf=yes rxgain=0.0 txgain=0.0 group=1 callgroup=1 pickupgroup=1 immediate=no resetinterval=never callerid=asreceived cidsignalling=bell cidstart=ring ;Sangoma A104 port 1 [slot:4 bus:7 span:1] switchtype=national context=from-pri group=0 signalling=pri_cpe channel =>1-23 ;Sangoma A104 port 2 [slot:4 bus:7 span:2] switchtype=national context=from-pbx group=1 signalling=pri_net facilityenable=yes channel =>25-47 ;Sangoma A104 port 3 [slot:4 bus:7 span:3] ; ; The first eight ports will be the Iwatsu voicemail ports. ; context=from-pbx-voicemail group=2 signalling=fxs_gs accountcode=VM channel =>49-56 ; ; The next eight ports are on the second FXO card ; context=from-pstn-pots group=3 signalling=fxs_gs rxgain=2.0 txgain=2.0 accountcode=PSTNPOTS channel =>57-58 ;channel =>57-64 ; ; The next eight ports are on the first FXS card ; context=from-pbx-pots group=4 signalling=fxo_ls rxgain=2.0 txgain=2.0 accountcode=PBXPOTS channel =>65,66 ;channel =>65-72 --- and the associated context [from-pstn-pots] ; ; Although it seemed to be a good idea to route POTS calls to analog ; ports on the Iwatsu, it's been nothing but a royal PITA. Thus, I'm ; going to use the analog ports as a last resort. ; ; ; Wait for two rings so that when calls are transfered to ${ANSWERINGSVC} ; we don't bother our PBX and then bridge the calls. ; exten => s,1,Wait(1); exten => s,n,WaitForRing(0) exten => s,n,WaitForRing(0) exten => s,n,Answer(); exten => s,n,Verbose(4, Context: ${CONTEXT} * Channel: ${CHANNEL} * Callerid: ${CALLERID(all)} * CallerID(num): ${CALLERID(num)} * CallerID(name): ${CALLERID(name)}); exten => s,n,Dial(DAHDI/${PBX}/2652) ; Bridge to T1 exten => s,n,Dial(DAHDI/${PBX_ANALOG}) ; Fallback to the analog lines