aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-08 17:23:29 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-08 17:23:29 +0000
commit854a35107ada4702551be3fc1ad09e1fd178fe88 (patch)
tree1ab5994592eeb5873de159707ed5e2f649dd3f3f /include
parentc0807e3f948a8fca7c7f99de18232f2d0585867b (diff)
Make queue support channel variable inheritance (bug #3274)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4709 f38db490-d61c-443f-a65b-d21fe96a405b
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 */