[asterisk-users] PBX -> PRI -> * -> Telco not working

Mikel Lindsaar raasdnil at gmail.com
Sat Nov 15 13:12:38 CST 2008


Good.  Got the darn thing working.

Problem was the NEC Xen Master does post-connect DTMF to dial.  So I had to
read the digits after connect.

Then, I had to configure the PRI to be pridialplan = unknown

Thanks for your help Tony.

Here is the end result for Google's sake



#############################################
### /etc/dahdi/system.conf
#############################################
#
# Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" (MASTER)
span=1,1,0,ccs,hdb3,crc4
# termtype: te
bchan=1-15,17-31
dchan=16
echocanceller=mg2,1-15,17-31

# Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2"
span=2,2,0,ccs,hdb3,crc4
# termtype: te
bchan=32-46,48-62
dchan=47
echocanceller=mg2,32-46,48-62


# Global data

loadzone = au
defaultzone = au




#############################################
### /etc/asterisk/chan_dahdi.conf
#############################################
[trunkgroups]

[channels]

#include dahdi-channels.conf

usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes


callgroup=1
pickupgroup=1

language=en
hidecallerid=no
callerid=asreceived
restrictcid=no






#############################################
### /etc/asterisk/dahdi-channels.conf
#############################################
; Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" (MASTER)
group=1
context=from-nec
switchtype = euroisdn
signalling = pri_net
channel => 1-15,17-31

; Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2"
group = 2
switchtype = euroisdn
signalling = pri_cpe
pridialplan=unknown
context = from-pstn
channel=>32-46,48-62





#############################################
### extensions.conf (relevant bits)
#############################################

[from-pstn]
exten => _555555XX,1,Dial(DAHDI/g1/${EXTEN},,T)

[from-nec]
exten => s,1,Answer()
exten => s,n,Set(TIMEOUT(digit)=2)
exten => s,n,Set(TIMEOUT(response)=5)
exten => s,n,Read(DialedNumber)
exten => s,n,Dial(DAHDI/g2/${DialedNumber},,Tr)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081116/ecb1f9ab/attachment.htm 


More information about the asterisk-users mailing list