mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-17 02:02:22 +00:00
Create better 'failed' CDRs for outgoing spool calls with context,extension,priority
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -230,6 +230,22 @@ struct ast_channel {
|
||||
|
||||
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)
|
||||
@@ -327,6 +343,8 @@ int ast_device_state(char *device);
|
||||
*/
|
||||
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
|
||||
/*!
|
||||
* \param type type of channel you are registering
|
||||
|
@@ -521,6 +521,7 @@ struct ast_sw *ast_walk_context_switches(struct ast_context *con, struct ast_sw
|
||||
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);
|
||||
|
Reference in New Issue
Block a user