]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
allow HARDHDLC option for dahdi
authorMoises Silva <moy@sangoma.com>
Thu, 3 Dec 2009 18:13:34 +0000 (18:13 +0000)
committerMoises Silva <moy@sangoma.com>
Thu, 3 Dec 2009 18:13:34 +0000 (18:13 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@925 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/ozmod/ozmod_zt/ozmod_zt.c
libs/openzap/src/ozmod/ozmod_zt/ozmod_zt.h

index b8788d2a581ba4eacde229787c03752cbe1128df..3b383d89a4cd1f72c2b990e55c55a89bf19a2beb 100644 (file)
@@ -371,8 +371,12 @@ static unsigned zt_open_range(zap_span_t *span, unsigned start, unsigned end, za
                        }
 
                        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;
                                }
index 14516f6fe911c0c8453955c0e2b585c725519b33..f82cf0ff1080e0bd716cb2a6d31734206ca8e093 100644 (file)
@@ -241,7 +241,8 @@ ZT_SIG_EM                                   = (1 << 6),                                     /* E&M */
 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 {