Configuring DAHDi useing FreePBX 2.10.0.7

Hello, dear FreePBX gurus!
I try to configure DAHDi deiver for my TE210P Digium card and I have some issues. As I see, FreePBX generates 3 additional files in /etc/asterisk directory: chan_dahdi_additional.conf, chan_dahdi_general.conf, chan_dahdi_groups.conf. These files included in chan_dahdi.conf. But only chan_dahdi_groups.conf file contains context in it:

/etc/asterisk/chan_dahdi_groups.conf
; [span_1]
signalling=pri_cpe
switchtype=euroisdn
pridialplan=unknown
prilocaldialplan=unknown
group=1
context=from-internal
channel=1-15,17-31

; [span_2]
signalling=pri_cpe
switchtype=euroisdn
pridialplan=unknown
prilocaldialplan=unknown
group=2
context=from-internal
channel=32-46,48-62

Other two files are empty (they contain only message: “Do NOT edit this file…”).

So, how can I configure these parametres:

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
rxgain=0.0
txgain=0.0
threewaycalling=yes
echocancel=yes
echocancelwhenbridged=yes
faxdetect=both
faxbuffers=>8,full

I’ve read that these parametres should be configured in chan_dahdi.conf for E1. May be these parametres aren’t nessesary? Should I add these parametres in chan_dahdi.conf manually or I can do it useing FreePBX?

Thanks a lot.

Mikle

What order are the includes in chan_dahdi.conf ?

; Copied from DAHDI Module of FreePBX

[general]

#include chan_dahdi_general.conf

[channels]

; include dahdi groups defined by DAHDI module of FreePBX
#include chan_dahdi_groups.conf

; include dahdi extensions defined in FreePBX
#include chan_dahdi_additional.conf

I would add an include from chan_dahdi_custom.conf and put your channels their.

It use to add a dahdi_channels.conf just for that purpose, wonder why dahdigenconf doesn’t do that anymore.

Thank you, SkykingOH.
Of course I can add my own file chan_dahdi_custom.conf and include it in dahdi_channels.conf. It would be better to add #include in this file /var/www/html/admin/modules/dahdiconfig/etc/chan_dahdi.conf because FreePBX copies it to asterisk directory. Also, as you say, there is dahdi-channels.conf file that was generated by dahdigenconf but wasn’t included in dahdi_channels by FreePBX. So, we have 2 different files of channels configuration chan_dahdi_groups.conf and dahdi-channels.conf, generated by FreePBX and dahdigenconfig and only chan_dahdi_groups.conf is used. Besides chan_dahdi_groups.conf doesn’t contain all settings, which I specified in the list above (usecallerid,hidecallerid,callwaiting,usecallingpres…)
So, I suppose that in would have been better configure DAHDi manually than used FreePBX. FreePBX isn’t very usefull in DAHDi configuration. I’m right, aren’t I?

DAHDI configuration turned out pretty simple for me! My worries was just waste of time! All I had to do it’s just configure DAHDi via FreePBX. My configuration became.

/etc/dahdi/systrm.conf

span=1,1,0,CCS,HDB3
span=2,0,0,CCS,HDB3,CRC4
bchan=1-10,32-46,48-62
dchan=16,47
loadzone=ru
defaultzone=ru

/etc/asterisk/chan_dahdi_groups.conf
; [span_1]
signalling=pri_cpe
switchtype=euroisdn
pridialplan=national
prilocaldialplan=national
group=1
context=from-beeline
channel=1-10

; [span_2]
signalling=pri_net
switchtype=euroisdn
pridialplan=unknown
prilocaldialplan=unknown
group=2
context=from-lg
channel=32-46,48-62

It works!