[Asterisk-cvs] asterisk/include/asterisk channel.h,1.21,1.22 pbx.h,1.10,1.11
martinp at lists.digium.com
martinp at lists.digium.com
Mon Sep 22 10:26:00 CDT 2003
Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv1518/include/asterisk
Modified Files:
channel.h pbx.h
Log Message:
Create better 'failed' CDRs for outgoing spool calls with context,extension,priority
Index: channel.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/channel.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- channel.h 12 Sep 2003 16:51:35 -0000 1.21
+++ channel.h 22 Sep 2003 15:27:09 -0000 1.22
@@ -230,6 +230,22 @@
struct chanmon;
+#define LOAD_OH(oh) { \
+ oh.context = context; \
+ oh.exten = exten; \
+ oh.priority = priority; \
+ oh.callerid = callerid; \
+ oh.variable = variable; \
+}
+
+struct outgoing_helper {
+ char *context;
+ char *exten;
+ int priority;
+ char *callerid;
+ char *variable;
+};
+
#define AST_CDR_TRANSFER (1 << 0)
#define AST_CDR_FORWARD (1 << 1)
#define AST_CDR_CALLWAIT (1 << 2)
@@ -326,6 +342,8 @@
* to know if the call was answered or not.
*/
struct ast_channel *ast_request_and_dial(char *type, int format, void *data, int timeout, int *reason, char *callerid);
+
+struct ast_channel *__ast_request_and_dial(char *type, int format, void *data, int timeout, int *reason, char *callerid, struct outgoing_helper *oh);
//! Registers a channel
/*!
Index: pbx.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/pbx.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- pbx.h 13 Sep 2003 20:51:48 -0000 1.10
+++ pbx.h 22 Sep 2003 15:27:09 -0000 1.11
@@ -521,6 +521,7 @@
extern char *pbx_builtin_getvar_helper(struct ast_channel *chan, char *name);
extern void pbx_builtin_setvar_helper(struct ast_channel *chan, char *name, char *value);
extern void pbx_builtin_clear_globals(void);
+extern int pbx_builtin_setvar(struct ast_channel *chan, void *data);
extern void pbx_substitute_variables_helper(struct ast_channel *c,const char *cp1,char *cp2,int count);
int ast_extension_patmatch(const char *pattern, const char *data);
More information about the svn-commits
mailing list