mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
Finish implementing prod code
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@861 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1217,8 +1217,11 @@ int ast_prod(struct ast_channel *chan)
|
|||||||
char nothing[128];
|
char nothing[128];
|
||||||
/* Send an empty audio frame to get things moving */
|
/* Send an empty audio frame to get things moving */
|
||||||
if (chan->_state != AST_STATE_UP) {
|
if (chan->_state != AST_STATE_UP) {
|
||||||
|
ast_log(LOG_DEBUG, "Prodding channel '%s'\n", chan->name);
|
||||||
a.subclass = chan->pvt->rawwriteformat;
|
a.subclass = chan->pvt->rawwriteformat;
|
||||||
a.data = nothing + AST_FRIENDLY_OFFSET;
|
a.data = nothing + AST_FRIENDLY_OFFSET;
|
||||||
|
if (ast_write(chan, &a))
|
||||||
|
ast_log(LOG_WARNING, "Prodding channel '%s' failed\n", chan->name);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user