I'm a real noob too. Here is what I did.
Dial in to your PBX. (PC with a Modem & HyperTerminal with the phone number of your PBX).
Enter the username and password for your Mitel Box. (You may need to contact a Mitel Rep for this.)
Enter menu 13 & 15 to count how many T1 channels are being used.
(Esc+9 to review)
Doing this allowed me to discover a fractionalized T1 so I could setup the Channels correctly.
I.E. Bay 03 Slot 06 has 24 channels using E&M/DID/Loopstart But Bay 02 Slot 03 had only 6 channels using E&M/DID/Loopstart. (Telco connections)
Another T1 line goes over to another deparment. (It was labeled the comments section)
Enter menu 42 (Esc 8 to review/edit T1)
Here is the current Line Coding your PBX is using.
Record the Framing.
Doing this I found the 30 channels were using D4 with B8ZS
My remote Department is using D4 AMI&ZCS
I also discovered 'Incoming/Outgoing Start Type' of Wink - which is useful later in the zapata config file.
Here is my config for a 4 port A104D card:
********************************
ZAPTEL:
span=1,1,0,d4,b8zs
span=2,2,0,d4,b8zs
span=3,0,0,d4,b8zs
span=4,0,0,d4,b8zs
e&m=1-24 #24 channels
e&m=25-30 #Fractionalized T1 6 Channels
clear=31-48 #Clear the rest
e&m=49-72 #24 channels
e&m=73-78 #6 Channels
clear=79-96 #Clear the rest
loadzone = us
defaultzone = us
********************************
ZAPATA
[trunkgroups]
[channels]
;-----------------------------------
context=from-pstn
signalling=em_w
prewink=500
; Based upon our Mitel config
wink=200 ;wink timer
debounce=40 ;debounce timer
flash=300 ;flash timer
group=1
channel => 1-24, 25-30
;----------------------------------------
; Now for the MITEL PBX
context=to-mitel
signalling=em_w
prewink=500
; Based upon our Mitel config
wink=200 ;wink timer
debounce=40 ;debounce timer
flash=300 ;flash timer
group=2
channel => 49-72, 73-78
#include zapata_additional.conf
********************************
Here are some links for your research:
Your Question answered by Diguim:
https://kb.digium.com/entry/52/93/ A Zaptel PRI Explanation:
https://www.asteriskguru.com/tutorials/pri_zaptel.html Sample Zaptel File:
https://asterisk.drunkcoder.com/zaptel.conf Both Zapata and Zaptel Sample:
https://www.asterisk.org/doxygen/1.2/Config_zap.html