summaryrefslogtreecommitdiff
path: root/channel.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-04-17 02:52:53 +0000
committerMark Spencer <markster@digium.com>2003-04-17 02:52:53 +0000
commit5d4c51eeb97ac3d900e04c3ab9f3443d92e09cdc (patch)
treeacf4e5119c589d65d209325f6366c6518e9d9007 /channel.c
parente16a3e6f74b72390ce415dbcbb61290221def4c0 (diff)
Finish implementing prod code
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@861 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channel.c b/channel.c
index 8d235ea3b..52130a879 100755
--- a/channel.c
+++ b/channel.c
@@ -1217,8 +1217,11 @@ int ast_prod(struct ast_channel *chan)
char nothing[128];
/* Send an empty audio frame to get things moving */
if (chan->_state != AST_STATE_UP) {
+ ast_log(LOG_DEBUG, "Prodding channel '%s'\n", chan->name);
a.subclass = chan->pvt->rawwriteformat;
a.data = nothing + AST_FRIENDLY_OFFSET;
+ if (ast_write(chan, &a))
+ ast_log(LOG_WARNING, "Prodding channel '%s' failed\n", chan->name);
}
return 0;
}