<div class="gmail_quote">Good. Got the darn thing working.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Problem was the NEC Xen Master does post-connect DTMF to dial. So I had to read the digits after connect.</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">Then, I had to configure the PRI to be pridialplan = unknown</div><div class="gmail_quote"><br></div><div class="gmail_quote">Thanks for your help Tony.</div><div class="gmail_quote">
<br></div><div class="gmail_quote">Here is the end result for Google's sake</div><br><div><br></div><div><br></div><div><div>#############################################<br></div><div>### /etc/dahdi/system.conf</div>
<div>#############################################<br></div><div>#<br></div><div># Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" (MASTER) </div><div>span=1,1,0,ccs,hdb3,crc4</div><div># termtype: te</div><div>bchan=1-15,17-31</div>
<div>dchan=16</div><div>echocanceller=mg2,1-15,17-31</div><div><br></div><div># Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" </div><div>span=2,2,0,ccs,hdb3,crc4</div><div># termtype: te</div><div>bchan=32-46,48-62</div>
<div>dchan=47</div><div>echocanceller=mg2,32-46,48-62</div><div><br></div><div><br></div><div># Global data</div><div><br></div><div>loadzone<span class="Apple-tab-span" style="white-space:pre">        </span>= au</div><div>defaultzone<span class="Apple-tab-span" style="white-space:pre">        </span>= au</div>
<div><br></div><div><br></div><div><br></div><div><br></div><div><div>#############################################<br></div><div>### /etc/asterisk/chan_dahdi.conf<br></div></div><div>#############################################<br>
</div><div>[trunkgroups]</div><div><br></div><div>[channels]</div><div><br></div><div>#include dahdi-channels.conf</div><div><br></div><div>usecallerid=yes</div><div>callwaiting=yes</div><div>usecallingpres=yes</div><div>
callwaitingcallerid=yes</div><div>threewaycalling=yes</div><div>transfer=yes</div><div>canpark=yes</div><div>cancallforward=yes</div><div>callreturn=yes</div><div>echocancel=yes</div><div>echocancelwhenbridged=yes</div><div>
<br></div><div><br></div><div>callgroup=1</div><div>pickupgroup=1</div><div><br></div><div>language=en </div><div>hidecallerid=no </div><div>callerid=asreceived </div><div>restrictcid=no </div><div><br></div><div><br></div>
<div><br></div><div><br></div><div><br></div><div><br></div><div><div>#############################################<br></div><div>### /etc/asterisk/dahdi-channels.conf<br></div></div><div>#############################################<br>
</div><div>; Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" (MASTER) <br></div><div>group=1</div><div>context=from-nec</div><div>switchtype = euroisdn</div><div>signalling = pri_net</div><div>channel => 1-15,17-31</div>
<div><br></div><div>; Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" </div><div>group = 2</div><div>switchtype = euroisdn </div><div>signalling = pri_cpe </div><div>pridialplan=unknown </div><div>context = from-pstn</div>
<div>channel=>32-46,48-62 </div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>#############################################<br></div><div>### extensions.conf (relevant bits)<br></div><div>
<div>#############################################<br></div><div><br></div></div><div><div>[from-pstn]</div><div>exten => _555555XX,1,Dial(DAHDI/g1/${EXTEN},,T)</div><div><br></div><div>[from-nec]</div><div>exten => s,1,Answer()</div>
<div>exten => s,n,Set(TIMEOUT(digit)=2)</div><div>exten => s,n,Set(TIMEOUT(response)=5)</div><div>exten => s,n,Read(DialedNumber)</div><div>exten => s,n,Dial(DAHDI/g2/${DialedNumber},,Tr)</div><div><br></div></div>
<div><br></div></div>