Make queue support channel variable inheritance (bug #3274)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2005-01-08 17:23:29 +00:00
parent c5aedb3086
commit 51cab9e7cc
4 changed files with 64 additions and 39 deletions

View File

@@ -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 */