Make chan_zap inform you that your version of zaptel is too old instead of
authorRussell Bryant <russell@russellbryant.com>
Tue, 12 Dec 2006 22:27:22 +0000 (22:27 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 12 Dec 2006 22:27:22 +0000 (22:27 +0000)
just failing to compile.

It seems like the proper way to do this would be in the configure script.
However, that wouldn't help existing checkouts unless we forced the configure
script to be executed after any code was changed.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48416 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 394c12b..c72b30c 100644 (file)
@@ -118,7 +118,7 @@ static struct ast_jb_conf default_jbconf =
 };
 static struct ast_jb_conf global_jbconf;
 
-#if !defined(ZT_SIG_EM_E1) || (defined(HAVE_PRI) && !defined(ZT_SIG_HARDHDLC))
+#if !defined(ZT_TCOP_RELEASE) || (defined(HAVE_PRI) && !defined(ZT_SIG_HARDHDLC))
 #error "Your zaptel is too old.  Please update"
 #endif