E1/T1 question, are zapata_additional.conf and zapata-auto.conf even used?

Hi I’m using Trixbox 2.6.1 and I’ve got a question about config files.

My zapata.conf is copied from other people’s T1/E1 configs and it looks like the following and it works too:

#################################
;
; Zapata telephony interface
;
; Configuration file

[trunkgroups]

[channels]

language=en
;context=from-zaptel
context=from-pri
;signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes
switchtype=euroisdn
pridialplan=uknown
signalling=pri_cpe ; pri_cpe = PRI slave ; pri_net = PRI master

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
;echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no
channel=>1-10

;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

;Include genzaptelconf configs
#include zapata-auto.conf

group=1

;Include AMP configs
#include zapata_additional.conf
#######################################

Now I was wondering how this even works as there isn’t a “from-pri” context in my extensions.conf file. But this config works. I noticed that when ever I add an analogue extension to trixbox it adds it to zapata_additional.conf however, the above config shows that calling this config is commented out.

So I’m wondering if my settings above are even used as I noticed that zapata-auto.conf has my E1 card configured in it.

########################
; Span 1: WCT1/0 “Wildcard TE122 Card 0” (MASTER)
group=0,11
context=from-zaptel
switchtype = euroisdn
signalling = pri_cpe
channel => 1-15,17-31
group=
context=default
########################

I don’t want to play with our live system by trial and error so I was just keen to know if zapata-auto.conf and zapata_additional.conf are actually used as they are commented out in zapata.conf, and if my “from-pri” context in zapata.conf is correct?

I’ve yet to find any proper documentation on how to set things up correctly and I’d rather know what I’m doing is right, rather than just being lucky that it works.
Thanks,

your calls to zapata_additional.conf and zapata-auto.conf in your provided zapata.conf file are not commented out, the lines starting with #include are the proper format for the include directive to load those files. A comment in the conf files starts with a ; not a #

from-pri as a context is not a default context so maybe some one provided you with some code that you also put in the extensions_custom.conf or you might also be using the customcontext module and it’s used that way?

Many thanks for your reply.

So I’m guessing that my E1 card is actually using the zapata-auto.conf settings and the lines I put in zapata.conf aren’t even being used? I ran

grep “from-pri” etc/asterisk/*

and zapata.conf was the only place it was mentioned so I’m pretty sure it’s not anywhere in my dial plan.