diff options
author | Mark Spencer <markster@digium.com> | 2004-03-20 23:31:40 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-03-20 23:31:40 +0000 |
commit | 7c35f68e29b2612e1884d94a5d2dcc356ec9f192 (patch) | |
tree | 2d3d45e27c80db7e8cadd3ab6eb45ff201e669bf | |
parent | 79668f062403f64aaf410ae49b7e73602a4624e5 (diff) |
Fix milliwatt and musiconhold to know about delivery times
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2508 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | apps/app_milliwatt.c | 2 | ||||
-rwxr-xr-x | indications.c | 2 | ||||
-rwxr-xr-x | res/res_musiconhold.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/apps/app_milliwatt.c b/apps/app_milliwatt.c index a2f92dcf6..78f0604ce 100755 --- a/apps/app_milliwatt.c +++ b/apps/app_milliwatt.c @@ -76,6 +76,8 @@ static int milliwatt_generate(struct ast_channel *chan, void *data, int len, int wf.datalen = len; wf.samples = wf.datalen; wf.src = "app_milliwatt"; + wf.delivery.tv_sec = 0; + wf.delivery.tv_usec = 0; /* create a buffer containing the digital milliwatt pattern */ for(i = 0; i < len; i++) { diff --git a/indications.c b/indications.c index fefec9153..1f8b55555 100755 --- a/indications.c +++ b/indications.c @@ -123,6 +123,8 @@ static int playtones_generator(struct ast_channel *chan, void *data, int len, in ps->f.samples = samples; ps->f.offset = AST_FRIENDLY_OFFSET; ps->f.data = ps->data; + ps->f.delivery.tv_sec = 0; + ps->f.delivery.tv_usec = 0; ast_write(chan, &ps->f); ps->pos += x; diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 450442d4b..7d8918f03 100755 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -461,6 +461,8 @@ static int moh_generate(struct ast_channel *chan, void *data, int len, int sampl f.samples = res / 2; f.data = buf + AST_FRIENDLY_OFFSET / 2; f.offset = AST_FRIENDLY_OFFSET; + f.delivery.tv_sec = 0; + f.delivery.tv_usec = 0; if (ast_write(chan, &f)< 0) { ast_log(LOG_WARNING, "Failed to write frame to '%s': %s\n", chan->name, strerror(errno)); return -1; |