Uhm, make Zap actually work again. Did anybody actually test that code?
authorMark Spencer <markster@digium.com>
Sun, 10 Sep 2006 20:28:03 +0000 (20:28 +0000)
committerMark Spencer <markster@digium.com>
Sun, 10 Sep 2006 20:28:03 +0000 (20:28 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42654 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index ad37986..4dc2f72 100644 (file)
@@ -1822,7 +1822,7 @@ static int zt_call(struct ast_channel *ast, char *rdest, int timeout)
        set_actual_gain(p->subs[SUB_REAL].zfd, 0, p->rxgain, p->txgain, p->law);
 
        mysig = p->sig;
-       if (p->outsigmod)
+       if (p->outsigmod > -1)
                mysig = p->outsigmod;
 
        switch (mysig) {
@@ -3593,7 +3593,7 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast)
 
        index = zt_get_index(ast, p, 0);
        mysig = p->sig;
-       if (p->outsigmod)
+       if (p->outsigmod > -1)
                mysig = p->outsigmod;
        p->subs[index].f.frametype = AST_FRAME_NULL;
        p->subs[index].f.subclass = 0;
@@ -10448,7 +10448,7 @@ static int setup_zap(int reload)
                                        finish = start;
                                        start = x;
                                }
-                               if (cur_outsignalling < 0) cur_outsignalling = cur_signalling;
+
                                for (x = start; x <= finish; x++) {
 #ifdef HAVE_PRI
                                        tmp = mkintf(x, cur_signalling, cur_outsignalling, cur_radio, pri, reload);