summaryrefslogtreecommitdiff
path: root/main/channel_internal_api.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2013-06-13 11:02:16 +0000
committerJoshua Colp <jcolp@digium.com>2013-06-13 11:02:16 +0000
commit65c492e851639897d8db79741bdcebc3557ad29d (patch)
treeca67c5c9f3765f2dc4a45f2a4bdbc85c8d8b6fdd /main/channel_internal_api.c
parent1e9faaf78a9caa4f03f456bf027aa139c31783f2 (diff)
Add support for requiring that all queued messages on a caching topic have been handled before
retrieving from the cache and also change adding channels to an endpoint to be an immediate operation. Review: https://reviewboard.asterisk.org/r/2599/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@391596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/channel_internal_api.c')
-rw-r--r--main/channel_internal_api.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/main/channel_internal_api.c b/main/channel_internal_api.c
index 4e5284c55..1e21cced0 100644
--- a/main/channel_internal_api.c
+++ b/main/channel_internal_api.c
@@ -1406,8 +1406,7 @@ struct stasis_topic *ast_channel_topic(struct ast_channel *chan)
return chan ? chan->topic : ast_channel_topic_all();
}
-int ast_endpoint_add_channel(struct ast_endpoint *endpoint,
- struct ast_channel *chan)
+int ast_channel_forward_endpoint(struct ast_channel *chan, struct ast_endpoint *endpoint)
{
ast_assert(chan != NULL);
ast_assert(endpoint != NULL);
@@ -1419,8 +1418,6 @@ int ast_endpoint_add_channel(struct ast_endpoint *endpoint,
return -1;
}
- ast_publish_channel_state(chan);
-
return 0;
}