}
if (zchan->type == ZAP_CHAN_TYPE_DQ921) {
- if ((ztp.sig_type != ZT_SIG_HDLCRAW) && (ztp.sig_type != ZT_SIG_HDLCFCS)) {
- zap_log(ZAP_LOG_ERROR, "failure configuring device %s as OpenZAP device %d:%d fd:%d\n", chanpath, zchan->span_id, zchan->chan_id, sockfd);
+ if (
+ (ztp.sig_type != ZT_SIG_HDLCRAW) &&
+ (ztp.sig_type != ZT_SIG_HDLCFCS) &&
+ (ztp.sig_type != ZT_SIG_HARDHDLC)
+ ) {
+ zap_log(ZAP_LOG_ERROR, "Failure configuring device %s as OpenZAP device %d:%d fd:%d, hardware signaling is not HDLC, fix your Zap/DAHDI configuration!\n", chanpath, zchan->span_id, zchan->chan_id, sockfd);
close(sockfd);
continue;
}
ZT_SIG_CLEAR = (1 << 7),
ZT_SIG_HDLCRAW = ((1 << 8) | ZT_SIG_CLEAR),
ZT_SIG_HDLCFCS = ((1 << 9) | ZT_SIG_HDLCRAW),
-ZT_SIG_CAS = (1 << 15)
+ZT_SIG_CAS = (1 << 15),
+ZT_SIG_HARDHDLC = (1 << 19),
} zt_sigtype_t;
typedef enum {