diff options
Diffstat (limited to 'xpp/utils/zapconf')
-rwxr-xr-x | xpp/utils/zapconf | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/xpp/utils/zapconf b/xpp/utils/zapconf index 196e57a..8ddbb81 100755 --- a/xpp/utils/zapconf +++ b/xpp/utils/zapconf @@ -181,19 +181,23 @@ sub gen_zaptel_digital($) { die "Span #$num is analog" unless $span->is_digital(); my $termtype = $span->termtype() || die "$0: Span #$num -- unkown termtype [NT/TE]\n"; my $timing; - my $lbo = 1; + my $lbo = 0; my $framing = $span->framing() || die "$0: No framing information for span #$num\n"; my $coding = $span->coding() || die "$0: No coding information for span #$num\n"; + my $span_crc4 = $span->crc4(); + $span_crc4 = (defined $span_crc4) ? ",$span_crc4" : ''; my $span_yellow = $span->yellow(); $span_yellow = (defined $span_yellow) ? ",$span_yellow" : ''; $timing = ($termtype eq 'NT') ? 0 : $bri_te_last_timing++; - printf "span=%d,%d,%d,%s,%s\n", + printf "span=%d,%d,%d,%s,%s%s%s\n", $num, $timing, $lbo, $framing, - "$coding$span_yellow"; + $coding, + $span_crc4, + $span_yellow; printf "# termtype: %s\n", lc($termtype); printf "bchan=%s\n", bchan_range($span); my $dchan = $span->dchan(); |