Changeset 4774

Added ZAP_SIG_HARDHDLC as a valid signaling type for an ISDN channel

Committed by:  coppice
Date:  May 27 2008 * 14:38 (7 months ago)

Affected files:

callweaver/branches/rel/1.2/channels/chan_zap.c (unified diff)

r4723r4774
9595 #define TRUE (!FALSE)
9696 #endif
9797
98 #ifndef ZT_SIG_EM_E1
98 #if !defined(ZT_SIG_EM_E1) || (defined(HAVE_PRI) && !defined(ZT_SIG_HARDHDLC))
9999 #error "Your zaptel is too old. please update"
100100 #endif
101101
------
88888888 cw_log(LOG_ERROR, "Unable to get parameters for D-channel %d (%s)\n", x, strerror(errno));
88898889 return -1;
88908890 }
8891 if (p.sigtype != ZT_SIG_HDLCFCS) {
8891 if ((p.sigtype != ZT_SIG_HDLCFCS) && (p.sigtype != ZT_SIG_HARDHDLC)) {
88928892 zt_close(pri->fds[i]);
88938893 pri->fds[i] = -1;
88948894 cw_log(LOG_ERROR, "D-channel %d is not in HDLC/FCS mode. See /etc/zaptel.conf\n", x);