summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-01-08 17:23:29 +0000
committerMark Spencer <markster@digium.com>2005-01-08 17:23:29 +0000
commit51cab9e7cc4f901c5e18558e5fa64d70057ed5b5 (patch)
tree1ab5994592eeb5873de159707ed5e2f649dd3f3f /include
parentc5aedb3086e5d348be0486823cedb7c4ced9ca8e (diff)
Make queue support channel variable inheritance (bug #3274)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rwxr-xr-xinclude/asterisk/channel.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index 908ff5585..765e7ff4d 100755
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -782,6 +782,20 @@ int ast_do_masquerade(struct ast_channel *chan);
/* Find bridged channel */
struct ast_channel *ast_bridged_channel(struct ast_channel *chan);
+/*!
+ \brief Inherits channel variable from parent to child channel
+ \param parent Parent channel
+ \param child Child channel
+
+ Scans all channel variables in the parent channel, looking for those
+ that should be copied into the child channel.
+ Variables whose names begin with a single '_' are copied into the
+ child channel with the prefix removed.
+ Variables whose names begin with '__' are copied into the child
+ channel with their names unchanged.
+*/
+void ast_channel_inherit_variables(const struct ast_channel *parent, struct ast_channel *child);
+
/* Misc. functions below */
/* Helper function for migrating select to poll */