aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authormatteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-16 22:37:31 +0000
committermatteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-16 22:37:31 +0000
commit342cf00fb74d7832598ad2431b3338512273959e (patch)
tree42e44ab95928950f65a80b2dd298dc79f9b82a8e /channel.c
parent40b9926da3752f8e6f5d1a23d4dd8ae8655df2b1 (diff)
dom mar 16 23:37:23 CET 2003
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@647 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/channel.c b/channel.c
index 9a4d2de1e..0a7eed39d 100755
--- a/channel.c
+++ b/channel.c
@@ -1080,7 +1080,7 @@ int ast_indicate(struct ast_channel *chan, int condition)
}
if (ts && ts->data[0]) {
ast_log(LOG_DEBUG, "Driver for channel '%s' does not support indication %d, emulating it\n", chan->name, condition);
- ast_playtones_start(chan,0,ts->data);
+ ast_playtones_start(chan,0,ts->data, 1);
}
else {
/* not handled */
@@ -1164,13 +1164,13 @@ static int do_senddigit(struct ast_channel *chan, char digit)
"!941+1209/50,!0/50", /* * */
"!941+1477/50,!0/50" }; /* # */
if (digit >= '0' && digit <='9')
- ast_playtones_start(chan,0,dtmf_tones[digit-'0']);
+ ast_playtones_start(chan,0,dtmf_tones[digit-'0'], 0);
else if (digit >= 'A' && digit <= 'D')
- ast_playtones_start(chan,0,dtmf_tones[digit-'A'+10]);
+ ast_playtones_start(chan,0,dtmf_tones[digit-'A'+10], 0);
else if (digit == '*')
- ast_playtones_start(chan,0,dtmf_tones[14]);
+ ast_playtones_start(chan,0,dtmf_tones[14], 0);
else if (digit == '#')
- ast_playtones_start(chan,0,dtmf_tones[15]);
+ ast_playtones_start(chan,0,dtmf_tones[15], 0);
else {
/* not handled */
ast_log(LOG_WARNING, "Unable to handle DTMF tone '%c' for '%s'\n", digit, chan->name);
@@ -1942,12 +1942,10 @@ int ast_channel_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags
tackygoto:
/* Don't copy packets if there is a generator on either one, since they're
not supposed to be listening anyway */
- if (!c0->generator && !c1->generator) {
- if (who == c0)
- ast_write(c1, f);
- else
- ast_write(c0, f);
- }
+ if (who == c0)
+ ast_write(c1, f);
+ else
+ ast_write(c0, f);
}
ast_frfree(f);
} else