diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-03-20 23:31:40 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-03-20 23:31:40 +0000 |
commit | 8113df26dc123e879ecd76a264c4aecf3ba3eb77 (patch) | |
tree | 2d3d45e27c80db7e8cadd3ab6eb45ff201e669bf /res | |
parent | c9b1bd8b5213b9309b16cb6f42a757b3e79acd3e (diff) |
Fix milliwatt and musiconhold to know about delivery times
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2508 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rwxr-xr-x | res/res_musiconhold.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |