genzaptelconf is creating /etc/asterisk/zapata-auto.conf like it should and adding in /etc/asterisk/zapata-channels.conf which is screwing up the zaptel channel order:
/etc/asterisk/zapat-auto.conf
; Autogenerated by /usr/local/sbin/genzaptelconf -- do not hand edit
; Zaptel Channels Configurations (zapata.conf)
;
; This is not intended to be a complete zapata.conf. Rather, it is intended
; to be #include-d by /etc/zapata.conf that will include the global settings
;
callerid=asreceived
; Span 1: WCTDM/0 "Wildcard TDM400P REV E/F Board 1" (MASTER)
signalling=fxo_ks
; Note: this is an extension. Create a ZAP extension in AMP for Channel 1
context=from-internal
group=1
channel => 1
signalling=fxo_ks
; Note: this is an extension. Create a ZAP extension in AMP for Channel 2
context=from-internal
group=1
channel => 2
signalling=fxo_ks
; Note: this is an extension. Create a ZAP extension in AMP for Channel 3
context=from-internal
group=1
channel => 3
signalling=fxs_ks
; Note: this is a trunk. Create a ZAP trunk in AMP for Channel 4
context=from-zaptel
group=0
channel => 4
; Span 2: WCT1/0 "Digium Wildcard TE110P T1/E1 Card 0"
; channel 5, WCT1, unhandled for now
; channel 6, WCT1, unhandled for now
; channel 7, WCT1, unhandled for now
; channel 8, WCT1, unhandled for now
; channel 9, WCT1, unhandled for now
; channel 10, WCT1, unhandled for now
; channel 11, WCT1, unhandled for now
; channel 12, WCT1, unhandled for now
; channel 13, WCT1, unhandled for now
; channel 14, WCT1, unhandled for now
; channel 15, WCT1, unhandled for now
; channel 16, WCT1, unhandled for now
; channel 17, WCT1, unhandled for now
; channel 18, WCT1, unhandled for now
; channel 19, WCT1, unhandled for now
; channel 20, WCT1, unhandled for now
; channel 21, WCT1, unhandled for now
; channel 22, WCT1, unhandled for now
; channel 23, WCT1, unhandled for now
; channel 24, WCT1, unhandled for now
; channel 25, WCT1, unhandled for now
; channel 26, WCT1, unhandled for now
; channel 27, WCT1, unhandled for now
; channel 28, WCT1, unhandled for now
/etc/asterisk/zapata-channels.conf
; Autogenerated by /usr/local/sbin/genzaptelconf -- do not hand edit
; Zaptel Channels Configurations (zapata.conf)
;
; This is not intended to be a complete zapata.conf. Rather, it is intended
; to be #include-d by /etc/zapata.conf that will include the global settings
;
; Span 1: WCT1/0 "Digium Wildcard TE110P T1/E1 Card 0" (MASTER)
group=0,11
context=from-pstn
switchtype = national
signalling = pri_cpe
channel => 1-23
group=
context=default
; Span 2: WCTDM/0 "Wildcard TDM400P REV E/F Board 1"
;;; line="25 WCTDM/0/0"
signalling=fxo_ks
callerid="Channel 25" <6025>
mailbox=6025
group=5
context=from-internal
channel => 25
callerid=
mailbox=
group=
context=default
;;; line="26 WCTDM/0/1"
signalling=fxo_ks
callerid="Channel 26" <6026>
mailbox=6026
group=5
context=from-internal
channel => 26
callerid=
mailbox=
group=
context=default
;;; line="27 WCTDM/0/2"
signalling=fxo_ks
callerid="Channel 27" <6027>
mailbox=6027
group=5
context=from-internal
channel => 27
callerid=
mailbox=
group=
context=default
;;; line="28 WCTDM/0/3 RED"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 28
context=default