mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user