summaryrefslogtreecommitdiff
path: root/main/channel_internal_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/channel_internal_api.c')
-rw-r--r--main/channel_internal_api.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/main/channel_internal_api.c b/main/channel_internal_api.c
index 368940fa1..e3543d8ec 100644
--- a/main/channel_internal_api.c
+++ b/main/channel_internal_api.c
@@ -930,6 +930,10 @@ struct ast_party_connected_line *ast_channel_connected(struct ast_channel *chan)
{
return &chan->connected;
}
+struct ast_party_id ast_channel_connected_effective_id(struct ast_channel *chan)
+{
+ return ast_party_id_merge(&chan->connected.id, &chan->connected.priv);
+}
struct ast_party_dialed *ast_channel_dialed(struct ast_channel *chan)
{
return &chan->dialed;
@@ -938,6 +942,18 @@ struct ast_party_redirecting *ast_channel_redirecting(struct ast_channel *chan)
{
return &chan->redirecting;
}
+struct ast_party_id ast_channel_redirecting_effective_orig(struct ast_channel *chan)
+{
+ return ast_party_id_merge(&chan->redirecting.orig, &chan->redirecting.priv_orig);
+}
+struct ast_party_id ast_channel_redirecting_effective_from(struct ast_channel *chan)
+{
+ return ast_party_id_merge(&chan->redirecting.from, &chan->redirecting.priv_from);
+}
+struct ast_party_id ast_channel_redirecting_effective_to(struct ast_channel *chan)
+{
+ return ast_party_id_merge(&chan->redirecting.to, &chan->redirecting.priv_to);
+}
struct timeval *ast_channel_dtmf_tv(struct ast_channel *chan)
{
return &chan->dtmf_tv;