diff options
author | Mark Spencer <markster@digium.com> | 2006-09-10 20:28:03 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2006-09-10 20:28:03 +0000 |
commit | 59c861bc5ea2892ac8ef2bde638f441a8d712372 (patch) | |
tree | b3ff622b989e92b019a622d03ea24928e20f5e9f | |
parent | 237fbf35fc092545e01bb02c90c9169dc91dbb2b (diff) |
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
-rw-r--r-- | channels/chan_zap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index ad3798646..4dc2f72fd 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); |