|
|
@ -2977,9 +2977,9 @@ static void send_dtmf_event(const struct ast_channel *chan, const char *directio
|
|
|
|
|
|
|
|
|
|
|
|
static void ast_read_generator_actions(struct ast_channel *chan, struct ast_frame *f)
|
|
|
|
static void ast_read_generator_actions(struct ast_channel *chan, struct ast_frame *f)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (chan->generatordata && !ast_internal_timing_enabled(chan)) {
|
|
|
|
if (chan->generator && chan->generator->generate && chan->generatordata && !ast_internal_timing_enabled(chan)) {
|
|
|
|
void *tmp = chan->generatordata;
|
|
|
|
void *tmp = chan->generatordata;
|
|
|
|
int (*generate)(struct ast_channel *chan, void *tmp, int datalen, int samples) = NULL;
|
|
|
|
int (*generate)(struct ast_channel *chan, void *tmp, int datalen, int samples) = chan->generator->generate;
|
|
|
|
int res;
|
|
|
|
int res;
|
|
|
|
int samples;
|
|
|
|
int samples;
|
|
|
|
|
|
|
|
|
|
|
@ -2998,9 +2998,6 @@ static void ast_read_generator_actions(struct ast_channel *chan, struct ast_fram
|
|
|
|
samples = f->samples;
|
|
|
|
samples = f->samples;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (chan->generator->generate) {
|
|
|
|
|
|
|
|
generate = chan->generator->generate;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* This unlock is here based on two assumptions that hold true at this point in the
|
|
|
|
/* This unlock is here based on two assumptions that hold true at this point in the
|
|
|
|
* code. 1) this function is only called from within __ast_read() and 2) all generators
|
|
|
|
* code. 1) this function is only called from within __ast_read() and 2) all generators
|
|
|
|
* call ast_write() in their generate callback.
|
|
|
|
* call ast_write() in their generate callback.
|
|
|
|