From: Mark Spencer Date: Sun, 10 Sep 2006 20:28:03 +0000 (+0000) Subject: Uhm, make Zap actually work again. Did anybody actually test that code? X-Git-Tag: 1.4.0-beta1~129 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59c861bc5ea2892ac8ef2bde638f441a8d712372;p=thirdparty%2Fasterisk.git Uhm, make Zap actually work again. Did anybody actually test that code? git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42654 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index ad37986461..4dc2f72fd3 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -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);