summaryrefslogtreecommitdiff
path: root/include/asterisk/channel.h
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2005-07-15 23:24:51 +0000
committerRussell Bryant <russell@russellbryant.com>2005-07-15 23:24:51 +0000
commita9c7f50a099906898eacbcf48e57661472c65be8 (patch)
tree1d145d53531c453391f74d30f64b85c38318a447 /include/asterisk/channel.h
parent22b0f5d30691e94b18e152ec44ed90a23f55b266 (diff)
Allow manager originate to specifiy more than one variable to be set.
Allow manager originate and spool files to set writable dialplan functions, including those that use the pipe symbol to seperate arguments. Allow CDR dialplan function to be able to set the account code and userfield. This deprecates the use of the Account header in manager originate and spool files, as well as the SetAccount and SetCDRUserField applications. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/channel.h')
-rwxr-xr-xinclude/asterisk/channel.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index 49a73420e..9dd312466 100755
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -20,6 +20,7 @@
#include "asterisk/frame.h"
#include "asterisk/sched.h"
#include "asterisk/chanvars.h"
+#include "asterisk/config.h"
#include <unistd.h>
#include <setjmp.h>
@@ -387,8 +388,7 @@ struct chanmon;
oh.priority = priority; \
oh.cid_num = cid_num; \
oh.cid_name = cid_name; \
- oh.variable = variable; \
- oh.account = account; \
+ oh.vars = vars; \
}
struct outgoing_helper {
@@ -397,8 +397,7 @@ struct outgoing_helper {
int priority;
const char *cid_num;
const char *cid_name;
- const char *variable;
- const char *account;
+ struct ast_variable *vars;
};
#define AST_CDR_TRANSFER (1 << 0)
@@ -947,6 +946,16 @@ struct ast_channel *ast_bridged_channel(struct ast_channel *chan);
*/
void ast_channel_inherit_variables(const struct ast_channel *parent, struct ast_channel *child);
+/*!
+ \brief adds a list of channel variables to a channel
+ \param chan the channel
+ \param vars a linked list of variables
+
+ Variable names can be for a regular channel variable or a dialplan function
+ that has the ability to be written to.
+*/
+void ast_set_variables(struct ast_channel *chan, struct ast_variable *vars);
+
/* Misc. functions below */
/* Helper function for migrating select to poll */