Fix the dependancy on libpri in zt_digit
authorMartin Pycko <martinp@digium.com>
Tue, 25 Mar 2003 19:08:46 +0000 (19:08 +0000)
committerMartin Pycko <martinp@digium.com>
Tue, 25 Mar 2003 19:08:46 +0000 (19:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@685 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index c44ef31..1b115d1 100755 (executable)
@@ -673,9 +673,13 @@ static int zt_digit(struct ast_channel *ast, char digit)
        p = ast->pvt->pvt;
        index = zt_get_index(ast, p, 0);
        if (index == SUB_REAL) {
+#ifdef ZAPATA_PRI
                if (p->sig == SIG_PRI && ast->_state == AST_STATE_DIALING) {
                        pri_information(p->pri->pri,p->call,digit);
                } else {
+#else
+               {
+#endif
                        zo.op = ZT_DIAL_OP_APPEND;
                        zo.dialstr[0] = 'T';
                        zo.dialstr[1] = digit;